diff options
author | Endi S. Dewata <edewata@redhat.com> | 2011-09-10 11:54:02 -0500 |
---|---|---|
committer | Endi S. Dewata <edewata@redhat.com> | 2011-09-23 13:13:10 +0000 |
commit | 390d017e321fd5ed56af094cf1f1c74f64e95735 (patch) | |
tree | ea90b38f292170059dd757f59ef6b757c5b9b5a5 /install/ui/entity.js | |
parent | a90e50cdf759a1b436381f0e9e91caf2d4288636 (diff) | |
download | freeipa.git-390d017e321fd5ed56af094cf1f1c74f64e95735.tar.gz freeipa.git-390d017e321fd5ed56af094cf1f1c74f64e95735.tar.xz freeipa.git-390d017e321fd5ed56af094cf1f1c74f64e95735.zip |
Modified dialog to use sections.
The IPA.dialog has been modified to store sections instead of fields.
If there is no sections specified, it will create a default section.
The adder dialog for automount map has been modified such that the
fields related to indirect map are stored in a section which will
only be visible when the map type is set to indirect.
The adder dialog for host has been modified such that it uses a
custom section for hostname and DNS zone and standard section for
the other fields.
Ticket #1394
Diffstat (limited to 'install/ui/entity.js')
-rw-r--r-- | install/ui/entity.js | 19 |
1 files changed, 0 insertions, 19 deletions
diff --git a/install/ui/entity.js b/install/ui/entity.js index 15e45aad..1ae233fe 100644 --- a/install/ui/entity.js +++ b/install/ui/entity.js @@ -885,25 +885,6 @@ IPA.entity_builder = function(){ section = IPA.details_table_section(spec); } facet.add_section(section); - var fields = spec.fields; - if (fields) { - for (var i=0; i<fields.length; i++) { - var field_spec = fields[i]; - var field; - - if (field_spec instanceof Object) { - field_spec.entity = entity; - var factory = field_spec.factory || IPA.text_widget; - field = factory(field_spec); - } else { - field = IPA.text_widget({ - name: field_spec, - entity: entity - }); - } - section.add_field(field); - } - } }; function add_redirect_info(facet_name){ |