Replace IPA.get_command_option calls in specs with provider strings

https://fedorahosted.org/freeipa/ticket/3235
This commit is contained in:
Petr Vobornik
2013-05-06 16:22:27 +02:00
parent 60b3208cf5
commit e4150918f6
7 changed files with 11 additions and 13 deletions
+2 -4
View File
@@ -135,13 +135,11 @@ IPA.automount.map_entity = function(spec) {
fields: [
{
name: 'key',
label: IPA.get_command_option(
'automountmap_add_indirect', 'key').label
label: '@mc-opt:automountmap_add_indirect:key:label'
},
{
name: 'parentmap',
label: IPA.get_command_option(
'automountmap_add_indirect', 'parentmap').label
label: '@mc-opt:automountmap_add_indirect:parentmap:label'
}
]
}
+1 -1
View File
@@ -319,7 +319,7 @@ IPA.dns.zone_entity = function(spec) {
{
$type: 'force_dnszone_add_checkbox',
name: 'force',
metadata: IPA.get_command_option('dnszone_add', 'force')
metadata: '@mc-opt:dnszone_add:force'
}
]
}
+3 -3
View File
@@ -50,7 +50,7 @@ IPA.entitle.entity = function(spec) {
fields: [
{
name: 'uuid',
label: IPA.get_command_option('entitle_register', 'ipaentitlementid').label,
label: '@mc-opt:entitle_register:ipaentitlementid:label',
read_only: true
},
{
@@ -124,13 +124,13 @@ IPA.entitle.entity = function(spec) {
},
{
name: 'password',
label: IPA.get_command_option('entitle_register', 'password').label,
label: '@mc-opt:entitle_register:password:label',
$type: 'password'
}
/* currently not supported
, {
name: 'ipaentitlementid',
label: IPA.get_command_option('entitle_register', 'ipaentitlementid').label
label: '@mc-opt:entitle_register:ipaentitlementid:label'
}
*/
]
+1 -1
View File
@@ -117,7 +117,7 @@ IPA.group.entity = function(spec) {
columns: [
{
name: 'ipaexternalmember',
label: IPA.get_command_option('group_add_member', 'ipaexternalmember').label
label: '@mc-opt:group_add_member:ipaexternalmember:label'
}
]
+2 -2
View File
@@ -233,12 +233,12 @@ IPA.host.entity = function(spec) {
{
name: 'ip_address',
validators: [ 'ip_address' ],
metadata: IPA.get_command_option('host_add', 'ip_address')
metadata: '@mc-opt:host_add:ip_address'
},
{
$type: 'force_host_add_checkbox',
name: 'force',
metadata: IPA.get_command_option('host_add', 'force')
metadata: '@mc-opt:host_add:force'
}
]
}
+1 -1
View File
@@ -214,7 +214,7 @@ IPA.service.entity = function(spec) {
{
$type: 'checkbox',
name: 'force',
metadata: IPA.get_command_option('service_add', 'force')
metadata: '@mc-opt:service_add:force'
}
]
}
+1 -1
View File
@@ -680,7 +680,7 @@ IPA.sudo.options_section = function(spec) {
that.table.create_column({
name: 'ipasudoopt',
label: IPA.get_command_option('sudorule_add_option', 'ipasudoopt').label,
label: '@mc-opt:sudorule_add_option:ipasudoopt:label',
entity: that.entity,
primary_key: true
});