summaryrefslogtreecommitdiffstats
path: root/install/ui/aci.js
diff options
context:
space:
mode:
authorAdam Young <ayoung@redhat.com>2011-03-31 15:32:29 -0400
committerAdam Young <ayoung@redhat.com>2011-03-31 17:29:33 -0400
commit6948c0813dff35afadd63bc0647271f00bfc566f (patch)
tree19a212045037900336bcf2cd963491f87a85a9d9 /install/ui/aci.js
parentef57ee0d936a910407a940273f1dbd9ff084fffa (diff)
downloadfreeipa-6948c0813dff35afadd63bc0647271f00bfc566f.tar.gz
freeipa-6948c0813dff35afadd63bc0647271f00bfc566f.tar.xz
freeipa-6948c0813dff35afadd63bc0647271f00bfc566f.zip
code review fixes
this version includes using spec for detail_facets
Diffstat (limited to 'install/ui/aci.js')
-rw-r--r--install/ui/aci.js49
1 files changed, 25 insertions, 24 deletions
diff --git a/install/ui/aci.js b/install/ui/aci.js
index d51741245..e7e0c563d 100644
--- a/install/ui/aci.js
+++ b/install/ui/aci.js
@@ -38,13 +38,13 @@ IPA.entity_factories.permission = function() {
},
{
factory: IPA.target_section,
- section: 'target',
+ name: 'target',
label: IPA.messages.objects.permission.target,
undo: false
}]}).
- details_facet([
+ details_facet({sections:[
{
- section:'identity',
+ name:'identity',
fields: [{
factory: IPA.text_widget,
name: 'cn',
@@ -52,15 +52,15 @@ IPA.entity_factories.permission = function() {
}]
},
{
- section:'rights',
+ name:'rights',
factory:IPA.rights_section
},
{
- section:'target',
+ name:'target',
factory:IPA.target_section,
label: IPA.messages.objects.permission.target
- }]).
- standard_associations().
+ }]}).
+ standard_association_facets().
build();
};
@@ -71,12 +71,13 @@ IPA.entity_factories.privilege = function() {
search_facet({
columns:['cn','description'],
add_fields:['cn', 'description']}).
- details_facet([
- {
- section:'identity',
+ details_facet({
+ sections:
+ [{
+ name:'identity',
label: IPA.messages.details.identity,
fields:['cn','description']
- }]).
+ }]}).
association_facet({
name: 'member_role',
add_method: 'add_privilege',
@@ -88,7 +89,7 @@ IPA.entity_factories.privilege = function() {
add_method: 'add_permission',
remove_method: 'remove_permission'
}).
- standard_associations().
+ standard_association_facets().
build();
};
@@ -100,17 +101,17 @@ IPA.entity_factories.role = function() {
search_facet({
columns:['cn','description'],
add_fields:['cn', 'description']}).
- details_facet([
+ details_facet({sections:[
{
- section:'identity',
+ name:'identity',
label:IPA.messages.objects.role.identity,
- fields:['cn','description']}]).
+ fields:['cn','description']}]}).
association_facet({
name: 'memberof_privilege',
add_method: 'add_privilege',
remove_method: 'remove_privilege'
}).
- standard_associations().
+ standard_association_facets().
build();
};
@@ -127,9 +128,9 @@ IPA.entity_factories.selfservice = function() {
name:'attrs',
undo: false
}]}).
- details_facet([
- {
- section:'general',
+ details_facet({
+ sections:[{
+ name:'general',
label: IPA.messages.details.general,
fields: [
'aciname',
@@ -137,7 +138,7 @@ IPA.entity_factories.selfservice = function() {
factory:IPA.attributes_widget,
object_type:'user',
name:'attrs'
- }]}]).
+ }]}]}).
build();
};
@@ -163,9 +164,9 @@ IPA.entity_factories.delegation = function() {
name: 'attrs', object_type: 'user',
join: true, undo: false
}]}).
- details_facet([
+ details_facet({sections:[
{
- section:'general',
+ name:'general',
label: IPA.messages.details.general,
fields:[
'aciname',
@@ -182,8 +183,8 @@ IPA.entity_factories.delegation = function() {
factory:IPA.attributes_widget,
name: 'attrs', object_type: 'user',
join: true
- }]}]).
- standard_associations().
+ }]}]}).
+ standard_association_facets().
build();
};