diff options
author | Endi S. Dewata <edewata@redhat.com> | 2011-02-03 21:42:50 -0600 |
---|---|---|
committer | Adam Young <ayoung@redhat.com> | 2011-02-07 11:31:17 -0500 |
commit | 348d734c59432a740b52924ac18ff47b30dad54e (patch) | |
tree | 7ed5d13f7a8f16dce89e6889366f9b661ef41cf1 /install/ui/hbacsvc.js | |
parent | a6849ef2ba5611ac44b612b2c0552c685b22aa3a (diff) | |
download | freeipa-348d734c59432a740b52924ac18ff47b30dad54e.tar.gz freeipa-348d734c59432a740b52924ac18ff47b30dad54e.tar.xz freeipa-348d734c59432a740b52924ac18ff47b30dad54e.zip |
Restructuring details page.
Previously the IPA.details_list_section can only be used with widgets
that generates <dd> tag because it uses the following structure:
<dl>
<dt>Telephone Number:</dt>
<span name="teleponenumber">
<dd>111-1111</dd>
<dd>222-2222</dd>
</span>
</dl>
The <dd> tag was previously used to handle multi-valued attributes.
Since multi-valued attributes are now handled by the recently added
IPA.multivalued_text_widget, the structure can be changed as follows:
<dl>
<dt>Telephone Number:</dt>
<dd>
<span name="telephonenumber">
<div>111-1111</div>
<div>222-2222</div>
</span>
</dd>
</dl>
This allows IPA.details_list_section to be used with any widgets
without requiring the <dd> tag.
Diffstat (limited to 'install/ui/hbacsvc.js')
-rw-r--r-- | install/ui/hbacsvc.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/install/ui/hbacsvc.js b/install/ui/hbacsvc.js index f5104ce2..1c204967 100644 --- a/install/ui/hbacsvc.js +++ b/install/ui/hbacsvc.js @@ -105,8 +105,8 @@ IPA.hbacsvc_details_facet = function (spec) { }); that.add_section(section); - section.create_field({'name': 'cn'}); - section.create_field({'name': 'description'}); + section.text({name: 'cn'}); + section.text({name: 'description'}); that.details_facet_init(); }; |