mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2025-02-25 18:55:28 -06:00
Replace formatter creation with definition in specs
https://fedorahosted.org/freeipa/ticket/3235
This commit is contained in:
@@ -125,7 +125,7 @@ IPA.dns.zone_entity = function(spec) {
|
|||||||
{
|
{
|
||||||
name: 'idnszoneactive',
|
name: 'idnszoneactive',
|
||||||
label: '@i18n:status.label',
|
label: '@i18n:status.label',
|
||||||
formatter: IPA.boolean_status_formatter()
|
formatter: 'boolean_status'
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
actions: [
|
actions: [
|
||||||
|
|||||||
@@ -42,7 +42,7 @@ IPA.hbac.rule_entity = function(spec) {
|
|||||||
{
|
{
|
||||||
name: 'ipaenabledflag',
|
name: 'ipaenabledflag',
|
||||||
label: '@i18n:status.label',
|
label: '@i18n:status.label',
|
||||||
formatter: IPA.boolean_status_formatter()
|
formatter: 'boolean_status'
|
||||||
},
|
},
|
||||||
'description'
|
'description'
|
||||||
],
|
],
|
||||||
|
|||||||
@@ -50,9 +50,10 @@ IPA.hbac.test_entity = function(spec) {
|
|||||||
{
|
{
|
||||||
name: 'nsaccountlock',
|
name: 'nsaccountlock',
|
||||||
label: '@i18n:status.label',
|
label: '@i18n:status.label',
|
||||||
formatter: IPA.boolean_status_formatter({
|
formatter: {
|
||||||
|
$type: 'boolean_status',
|
||||||
invert_value: true
|
invert_value: true
|
||||||
})
|
}
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}).
|
}).
|
||||||
@@ -69,7 +70,7 @@ IPA.hbac.test_entity = function(spec) {
|
|||||||
{
|
{
|
||||||
name: 'has_keytab',
|
name: 'has_keytab',
|
||||||
label: '@i18n:objects.host.enrolled',
|
label: '@i18n:objects.host.enrolled',
|
||||||
formatter: IPA.boolean_formatter()
|
formatter: 'boolean'
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}).
|
}).
|
||||||
@@ -98,7 +99,7 @@ IPA.hbac.test_entity = function(spec) {
|
|||||||
{
|
{
|
||||||
name: 'ipaenabledflag',
|
name: 'ipaenabledflag',
|
||||||
label: '@i18n:status.label',
|
label: '@i18n:status.label',
|
||||||
formatter: IPA.boolean_status_formatter()
|
formatter: 'boolean_status'
|
||||||
},
|
},
|
||||||
'description'
|
'description'
|
||||||
]
|
]
|
||||||
@@ -116,12 +117,12 @@ IPA.hbac.test_entity = function(spec) {
|
|||||||
{
|
{
|
||||||
name: 'matched',
|
name: 'matched',
|
||||||
label: '@i18n:objects.hbactest.matched',
|
label: '@i18n:objects.hbactest.matched',
|
||||||
formatter: IPA.boolean_formatter()
|
formatter: 'boolean'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: 'ipaenabledflag',
|
name: 'ipaenabledflag',
|
||||||
label: '@i18n:status.label',
|
label: '@i18n:status.label',
|
||||||
formatter: IPA.boolean_status_formatter()
|
formatter: 'boolean_status'
|
||||||
},
|
},
|
||||||
'description'
|
'description'
|
||||||
]
|
]
|
||||||
|
|||||||
@@ -64,7 +64,7 @@ IPA.host.entity = function(spec) {
|
|||||||
{
|
{
|
||||||
name: 'has_keytab',
|
name: 'has_keytab',
|
||||||
label: '@i18n:objects.host.enrolled',
|
label: '@i18n:objects.host.enrolled',
|
||||||
formatter: IPA.boolean_formatter()
|
formatter: 'boolean'
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}).
|
}).
|
||||||
|
|||||||
@@ -260,7 +260,7 @@ IPA.netgroup.details_facet = function(spec) {
|
|||||||
{
|
{
|
||||||
name: 'externalhost',
|
name: 'externalhost',
|
||||||
label: '@i18n:objects.netgroup.external',
|
label: '@i18n:objects.netgroup.external',
|
||||||
formatter: IPA.boolean_formatter(),
|
formatter: 'boolean',
|
||||||
width: '200px'
|
width: '200px'
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
|||||||
@@ -130,7 +130,7 @@ IPA.rule_association_table_widget = function(spec) {
|
|||||||
name: that.external,
|
name: that.external,
|
||||||
label: '@i18n:objects.sudorule.external',
|
label: '@i18n:objects.sudorule.external',
|
||||||
entity: that.other_entity,
|
entity: that.other_entity,
|
||||||
formatter: IPA.boolean_formatter(),
|
formatter: 'boolean',
|
||||||
width: '200px'
|
width: '200px'
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -41,7 +41,7 @@ IPA.selinux.selinuxusermap_entity = function(spec) {
|
|||||||
{
|
{
|
||||||
name: 'ipaenabledflag',
|
name: 'ipaenabledflag',
|
||||||
label: '@i18n:status.label',
|
label: '@i18n:status.label',
|
||||||
formatter: IPA.boolean_status_formatter()
|
formatter: 'boolean_status'
|
||||||
},
|
},
|
||||||
'description'
|
'description'
|
||||||
],
|
],
|
||||||
|
|||||||
@@ -40,7 +40,7 @@ IPA.sudo.rule_entity = function(spec) {
|
|||||||
{
|
{
|
||||||
name: 'ipaenabledflag',
|
name: 'ipaenabledflag',
|
||||||
label: '@i18n:status.label',
|
label: '@i18n:status.label',
|
||||||
formatter: IPA.boolean_status_formatter()
|
formatter: 'boolean_status'
|
||||||
},
|
},
|
||||||
'description'
|
'description'
|
||||||
],
|
],
|
||||||
|
|||||||
@@ -45,9 +45,10 @@ IPA.user.entity = function(spec) {
|
|||||||
{
|
{
|
||||||
name: 'nsaccountlock',
|
name: 'nsaccountlock',
|
||||||
label: '@i18n:status.label',
|
label: '@i18n:status.label',
|
||||||
formatter: IPA.boolean_status_formatter({
|
formatter: {
|
||||||
|
$type: 'boolean_status',
|
||||||
invert_value: true
|
invert_value: true
|
||||||
})
|
}
|
||||||
},
|
},
|
||||||
'uidnumber',
|
'uidnumber',
|
||||||
'mail',
|
'mail',
|
||||||
@@ -111,7 +112,7 @@ IPA.user.entity = function(spec) {
|
|||||||
name: 'krbpasswordexpiration',
|
name: 'krbpasswordexpiration',
|
||||||
label: '@i18n:objects.user.krbpasswordexpiration',
|
label: '@i18n:objects.user.krbpasswordexpiration',
|
||||||
read_only: true,
|
read_only: true,
|
||||||
formatter: IPA.utc_date_formatter()
|
formatter: 'utc_date'
|
||||||
},
|
},
|
||||||
'uidnumber',
|
'uidnumber',
|
||||||
'gidnumber',
|
'gidnumber',
|
||||||
|
|||||||
Reference in New Issue
Block a user