diff options
author | Adam Young <ayoung@redhat.com> | 2010-09-07 10:08:19 -0400 |
---|---|---|
committer | Adam Young <ayoung@redhat.com> | 2010-09-07 10:08:19 -0400 |
commit | dde15772700da41ec931bb55087fbec6f30fab55 (patch) | |
tree | 890bd7ecd8bb4d906c4b670b772b2a960c50f3c1 /install/static/host.js | |
parent | e93932b3235fc27b31a59c0cb77250acf15d3f31 (diff) | |
download | freeipa-dde15772700da41ec931bb55087fbec6f30fab55.tar.gz freeipa-dde15772700da41ec931bb55087fbec6f30fab55.tar.xz freeipa-dde15772700da41ec931bb55087fbec6f30fab55.zip |
associations
-Refactored the associations code into a set of objects that are configured by the entities
-Added support for associations that can be done in a single rpc
-hostgroup to host and group to user associations working
-Restructed sampledata so that the file is matched automatically by the RPC method name
-The new ipa_cmd/sampledata scheme insists on there being sample data for any commands or the ipa_command fails.
-Added sampledata files for all the calls we make
-renamed several of the sampledata files to match their rpc calls
-Started a pattern of refactoring where all the forms for the entity fall under a single object
Diffstat (limited to 'install/static/host.js')
-rw-r--r-- | install/static/host.js | 16 |
1 files changed, 9 insertions, 7 deletions
diff --git a/install/static/host.js b/install/static/host.js index b249c9b5e..dba4f35e7 100644 --- a/install/static/host.js +++ b/install/static/host.js @@ -1,10 +1,10 @@ function setupHost(facet){ if (facet == "details"){ - hostDetailsForm.setup(); + hostDetailsForm.setup(); }else if (facet == "add"){ - hostBuilder.setup(); + hostBuilder.setup(); }else{ - hostSearchForm.setup(); + hostSearchForm.setup(); } } @@ -17,11 +17,13 @@ var host_details_list = [['host', 'Host Details', [ ['krbprincipalname', 'Kerberos Principal'], ['serverhostname', 'Server Host Name'] ]]]; - -var hostDetailsForm = new DetailsForm("host",host_details_list,"fqdn","sampledata/hostshow.json") ; +var hostFacets = ["details","hostgroup", "hostgroupmembership"]; -var hostDetailsColumns = [ +var hostDetailsForm = new DetailsForm("host",host_details_list,"fqdn", + hostFacets ) ; + +var hostSearchColumns = [ {title:"Host",column:"fqdn",render: function(current,cell){ renderPkeyColumn(hostDetailsForm,current,cell); }}, @@ -29,4 +31,4 @@ var hostDetailsColumns = [ {title:"Enrolled?", render: renderUnknownColumn}, {title:"Manages?", render: renderUnknownColumn} ]; -var hostSearchForm = new SearchForm("host", "find", hostDetailsColumns,"sampledata/hostlist.json"); +var hostSearchForm = new SearchForm("host", "find", hostSearchColumns); |