diff options
author | Adam Young <ayoung@redhat.com> | 2010-12-04 00:29:05 -0500 |
---|---|---|
committer | Endi Sukma Dewata <edewata@redhat.com> | 2010-12-06 12:52:47 -0500 |
commit | 10f3c0825bfdffa6035e78066001eb3bdc759143 (patch) | |
tree | e1a2ddef0846e12275cd661752217e461a204b7c /install/static/host.js | |
parent | 37f48c0019c64f20bfc24b021442b643eaf86aab (diff) | |
download | freeipa-10f3c0825bfdffa6035e78066001eb3bdc759143.tar.gz freeipa-10f3c0825bfdffa6035e78066001eb3bdc759143.tar.xz freeipa-10f3c0825bfdffa6035e78066001eb3bdc759143.zip |
entity i18n
Updated the user,group,host, hostgroup, netgroup, service, and all policy
entities to use the newer framework functions, in order to
replaced the old array style definitions which did not support i18n.
update a few of the newer framerwork functions to get the lables from the
meta data.
Fixed the unit tests which were expecting a details facet for users,
no longer automatically created
Diffstat (limited to 'install/static/host.js')
-rw-r--r-- | install/static/host.js | 29 |
1 files changed, 11 insertions, 18 deletions
diff --git a/install/static/host.js b/install/static/host.js index 484b64771..4a60bbccd 100644 --- a/install/static/host.js +++ b/install/static/host.js @@ -87,7 +87,7 @@ function ipa_host_add_dialog(spec) { that.add_field(ipa_text_widget({ 'name': 'fqdn', - 'label': 'Name', + entity_name:'host', 'size': 40, 'undo': false })); @@ -104,10 +104,11 @@ function ipa_host_search_facet(spec) { that.init = function() { - that.create_column({name:'fqdn', label:'Name'}); - that.create_column({name:'description', label:'Description'}); - that.create_column({name:'enrolled', label:'Enrolled?'}); - that.create_column({name:'manages', label:'Manages?'}); + that.create_column({name:'fqdn'}); + that.create_column({name:'description'}); + //TODO use the value of this field to set enrollment status + that.create_column({name:'krblastpwdchange', label:'Enrolled?'}); + that.create_column({name:'nshostlocation'}); that.search_facet_init(); }; @@ -129,25 +130,16 @@ function ipa_host_details_facet(spec) { }); that.add_section(section); - section.create_field({ - 'name': 'fqdn', - 'label': 'Fully Qualified Domain Name' - }); - - section.create_field({ - 'name': 'krbprincipalname', - 'label': 'Kerberos Principal' - }); + section.create_field({'name': 'fqdn'}); + section.create_field({'name': 'krbprincipalname'}); + //TODO add this to the host plugin section.create_field({ 'name': 'serverhostname', 'label': 'Server Host Name' }); - section.create_field({ - 'name': 'description', - 'label': 'Description' - }); + section.create_field({'name': 'description'}); section = ipa_details_list_section({ 'name': 'enrollment', @@ -155,6 +147,7 @@ function ipa_host_details_facet(spec) { }); that.add_section(section); + //TODO add label to messages section.add_field(host_provisioning_status_widget({ 'name': 'provisioning_status', 'label': 'Status', |