diff --git a/install/static/details.js b/install/static/details.js index 61c557969..7dfc00430 100644 --- a/install/static/details.js +++ b/install/static/details.js @@ -475,8 +475,9 @@ function ipa_details_facet(spec) { var section = that.sections[i]; $('

', { - 'name': section.name, - 'html': that.get_section_header_prefix(true) + ' ' + section.label + name: section.name, + title: section.label, + html: that.get_section_header_prefix(true) + ' ' + section.label }).appendTo(details); var div = $('
', { @@ -579,8 +580,9 @@ function ipa_button(spec) { spec = spec || {}; var button = $('', { - 'id': spec.id, - 'html': spec.label, + id: spec.id, + html: spec.label, + title: spec.title || spec.label, 'class': 'ui-state-default ui-corner-all input_link' }); diff --git a/install/static/rule.js b/install/static/rule.js index 885edaa0a..96b5ab338 100755 --- a/install/static/rule.js +++ b/install/static/rule.js @@ -38,7 +38,12 @@ function ipa_rule_details_section(spec){ if (that.text) container.append(that.text); - var span = $('', { 'name': that.field_name }).appendTo(container); + var param_info = ipa_get_param_info(that.entity_name, that.field_name); + + var span = $('', { + name: that.field_name, + title: param_info.doc + }).appendTo(container); if (that.options.length) { for (var i=0; i', { 'name': table.field_name }).appendTo(span); + param_info = ipa_get_param_info(that.entity_name, table.field_name); + + var table_span = $('', { + name: table.field_name, + title: param_info ? param_info.doc : table.field_name + }).appendTo(span); var field = that.get_field(table.field_name); field.create(table_span); diff --git a/install/static/sudorule.js b/install/static/sudorule.js index bc1ba95bf..ec90bf618 100755 --- a/install/static/sudorule.js +++ b/install/static/sudorule.js @@ -435,16 +435,22 @@ function ipa_sudorule_details_general_section(spec){ 'style': 'width: 100%;' }).appendTo(container); + var param_info = ipa_get_param_info(that.entity_name, 'cn'); + var tr = $('').appendTo(table); var td = $('', { - 'style': 'width: 100px; text-align: right;', - 'html': 'Name:' + style: 'width: 100px; text-align: right;', + html: param_info.label+':', + title: param_info ? param_info.doc : 'cn' }).appendTo(tr); td = $('').appendTo(tr); - var span = $('', { 'name': 'cn' }).appendTo(td); + var span = $('', { + name: 'cn', + title: param_info ? param_info.doc : 'cn' + }).appendTo(td); $('', { 'type': 'text', @@ -461,16 +467,22 @@ function ipa_sudorule_details_general_section(spec){ 'html': 'undo' }).appendTo(span); + param_info = ipa_get_param_info(that.entity_name, 'description'); + tr = $('').appendTo(table); td = $('', { - 'style': 'text-align: right; vertical-align: top;', - 'html': 'Description:' + style: 'text-align: right; vertical-align: top;', + html: param_info.label+':', + title: param_info ? param_info.doc : 'description' }).appendTo(tr); td = $('').appendTo(tr); - span = $('', { 'name': 'description' }).appendTo(td); + span = $('', { + name: 'description', + title: param_info ? param_info.doc : 'description' + }).appendTo(td); $('