diff options
author | Endi S. Dewata <edewata@redhat.com> | 2010-12-06 16:30:10 -0600 |
---|---|---|
committer | Adam Young <ayoung@redhat.com> | 2010-12-06 20:16:15 -0500 |
commit | 6350686710c49b632ea7b1085e4db6755056d263 (patch) | |
tree | 6a12fdda5ec6f84a9d4654fff57e81ffcdd9730b /install/static/user.js | |
parent | ca436d9ec3210e0c573ea96ae7d6fe71dc9bf943 (diff) | |
download | freeipa.git-6350686710c49b632ea7b1085e4db6755056d263.tar.gz freeipa.git-6350686710c49b632ea7b1085e4db6755056d263.tar.xz freeipa.git-6350686710c49b632ea7b1085e4db6755056d263.zip |
Dialog i18n
The ipa_add_dialog has been fixed to initialize the fields which
will get the labels from metadata. Hard-coded labels have been
removed from field declarations.
The superior() method has been removed because it doesn't work with
multi-level inheritance. Superclass method for now is called using
<class name>_<method> (e.g. widget_init).
Diffstat (limited to 'install/static/user.js')
-rw-r--r-- | install/static/user.js | 15 |
1 files changed, 7 insertions, 8 deletions
diff --git a/install/static/user.js b/install/static/user.js index 8eb41206..3e1174ca 100644 --- a/install/static/user.js +++ b/install/static/user.js @@ -45,14 +45,13 @@ function ipa_user(){ 'name': 'add', 'title': 'Add User' }); - that.add_dialog(dialog); + + dialog.add_field(ipa_text_widget({ name: 'uid', undo: false })); + dialog.add_field(ipa_text_widget({ name: 'givenname', undo: false })); + dialog.add_field(ipa_text_widget({ name: 'sn', undo: false })); dialog.init(); - dialog.add_field(ipa_text_widget({ name: 'uid',entity_name:'user' })); - dialog.add_field(ipa_text_widget({ name: 'givenname', - entity_name:'user' })); - dialog.add_field(ipa_text_widget({ name: 'sn',entity_name:'user' })); - + /*eventually, we need to call entity.create_association_facets(); but we are currently defining the associator using the global @@ -60,7 +59,7 @@ function ipa_user(){ that.entity_init(); - } + }; function details_facet(spec) { spec = spec || {}; @@ -110,7 +109,7 @@ IPA.add_entity(ipa_user()); ipa_entity_set_association_definition('user', { 'group': { associator: 'serial' }, - 'netgroup': { associator: 'serial' }, + 'netgroup': { associator: 'serial' } }); /* ATTRIBUTE CALLBACKS */ |