summaryrefslogtreecommitdiffstats
path: root/install/ui/src/freeipa/selinux.js
diff options
context:
space:
mode:
authorPetr Vobornik <pvoborni@redhat.com>2013-04-16 12:59:38 +0200
committerPetr Vobornik <pvoborni@redhat.com>2013-05-06 16:22:26 +0200
commite100ba7e2b14b74ed548ee0dd6ba1093b17dd795 (patch)
tree6b675d9643a74b717ecb70e0c642405818311472 /install/ui/src/freeipa/selinux.js
parent1221fca6628450c6cd3031b377c7426fa4b1b0ad (diff)
downloadfreeipa-e100ba7e2b14b74ed548ee0dd6ba1093b17dd795.tar.gz
freeipa-e100ba7e2b14b74ed548ee0dd6ba1093b17dd795.tar.xz
freeipa-e100ba7e2b14b74ed548ee0dd6ba1093b17dd795.zip
Replace build logic in widget and field builder by new builder
https://fedorahosted.org/freeipa/ticket/3235
Diffstat (limited to 'install/ui/src/freeipa/selinux.js')
-rw-r--r--install/ui/src/freeipa/selinux.js30
1 files changed, 15 insertions, 15 deletions
diff --git a/install/ui/src/freeipa/selinux.js b/install/ui/src/freeipa/selinux.js
index ee84c3548..f6af458eb 100644
--- a/install/ui/src/freeipa/selinux.js
+++ b/install/ui/src/freeipa/selinux.js
@@ -112,7 +112,7 @@ IPA.selinux_details_facet = function(spec) {
widget: 'general.cn'
},
{
- type: 'textarea',
+ $type: 'textarea',
name: 'description',
widget: 'general.description'
},
@@ -121,7 +121,7 @@ IPA.selinux_details_facet = function(spec) {
widget: 'general.ipaselinuxuser'
},
{
- type: 'entity_select',
+ $type: 'entity_select',
name: 'seealso',
widget: 'general.seealso'
}
@@ -129,7 +129,7 @@ IPA.selinux_details_facet = function(spec) {
spec.widgets = [
{
- type: 'details_table_section',
+ $type: 'details_table_section',
name: 'general',
label: '@i18n:details.general',
widgets: [
@@ -137,7 +137,7 @@ IPA.selinux_details_facet = function(spec) {
name: 'cn'
},
{
- type: 'textarea',
+ $type: 'textarea',
name: 'description'
},
{
@@ -145,7 +145,7 @@ IPA.selinux_details_facet = function(spec) {
widget: 'general.ipaselinuxuser'
},
{
- type: 'entity_select',
+ $type: 'entity_select',
name: 'seealso',
other_entity: 'hbacrule',
other_field: 'cn'
@@ -160,18 +160,18 @@ IPA.selinux_details_facet = function(spec) {
spec.fields.push(
{
- type: 'radio',
+ $type: 'radio',
name: 'usercategory',
widget: 'user.rule.usercategory'
},
{
- type: 'rule_association_table',
+ $type: 'rule_association_table',
name: 'memberuser_user',
widget: 'user.rule.memberuser_user',
priority: IPA.selinux.remove_method_priority
},
{
- type: 'rule_association_table',
+ $type: 'rule_association_table',
name: 'memberuser_group',
widget: 'user.rule.memberuser_group',
priority: IPA.selinux.remove_method_priority
@@ -200,7 +200,7 @@ IPA.selinux_details_facet = function(spec) {
],
widgets: [
{
- type: 'rule_association_table',
+ $type: 'rule_association_table',
id: entity_name+'-memberuser_user',
name: 'memberuser_user',
add_method: 'add_user',
@@ -209,7 +209,7 @@ IPA.selinux_details_facet = function(spec) {
remove_title: '@i18n:association.remove.member'
},
{
- type: 'rule_association_table',
+ $type: 'rule_association_table',
id: entity_name+'-memberuser_group',
name: 'memberuser_group',
add_method: 'add_user',
@@ -229,18 +229,18 @@ IPA.selinux_details_facet = function(spec) {
spec.fields.push(
{
- type: 'radio',
+ $type: 'radio',
name: 'hostcategory',
widget: 'host.rule.hostcategory'
},
{
- type: 'rule_association_table',
+ $type: 'rule_association_table',
name: 'memberhost_host',
widget: 'host.rule.memberhost_host',
priority: IPA.selinux.remove_method_priority
},
{
- type: 'rule_association_table',
+ $type: 'rule_association_table',
name: 'memberhost_hostgroup',
widget: 'host.rule.memberhost_hostgroup',
priority: IPA.selinux.remove_method_priority
@@ -273,7 +273,7 @@ IPA.selinux_details_facet = function(spec) {
],
widgets: [
{
- type: 'rule_association_table',
+ $type: 'rule_association_table',
id: entity_name+'-memberuser_user',
name: 'memberhost_host',
add_method: 'add_host',
@@ -282,7 +282,7 @@ IPA.selinux_details_facet = function(spec) {
remove_title: '@i18n:association.remove.member'
},
{
- type: 'rule_association_table',
+ $type: 'rule_association_table',
id: entity_name+'-memberuser_group',
name: 'memberhost_hostgroup',
add_method: 'add_host',