9fc34a7d5e
This reverts commit d4033c32c4.
77 lines
1.4 KiB
JavaScript
77 lines
1.4 KiB
JavaScript
export default {
|
|
alias: 'application',
|
|
|
|
tabs: [
|
|
{
|
|
name: 'general',
|
|
label: '@ui.tab_general'
|
|
},
|
|
{
|
|
name: 'domains',
|
|
label: '@application.tab_domains',
|
|
count: x => x.domains.length
|
|
},
|
|
{
|
|
name: 'features',
|
|
label: '@application.tab_features',
|
|
count: x => x.features.length
|
|
}
|
|
],
|
|
|
|
labelTemplate(field)
|
|
{
|
|
return "@application.fields." + field;
|
|
},
|
|
|
|
descriptionTemplate(field)
|
|
{
|
|
return "@application.fields." + field + "_text";
|
|
},
|
|
|
|
fields: [
|
|
{
|
|
field: 'name',
|
|
display: 'text',
|
|
label: '@ui.name',
|
|
required: true,
|
|
maxLength: 50
|
|
},
|
|
{
|
|
field: 'fullName',
|
|
display: 'text',
|
|
maxLength: 120
|
|
},
|
|
{
|
|
field: 'email',
|
|
display: 'text',
|
|
required: true,
|
|
maxLength: 120
|
|
},
|
|
{
|
|
field: 'imageId',
|
|
display: 'media',
|
|
type: 'image',
|
|
class: 'my-image'
|
|
},
|
|
{
|
|
field: 'iconId',
|
|
display: 'media',
|
|
type: 'image'
|
|
},
|
|
{
|
|
tab: 'domains',
|
|
field: 'domains',
|
|
display: 'inputList',
|
|
required: true,
|
|
limit: 10,
|
|
addLabel: '@application.fields.domains_add',
|
|
helpText: '@application.fields.domains_help'
|
|
},
|
|
{
|
|
tab: 'features',
|
|
field: 'features',
|
|
display: 'custom',
|
|
path: '@zero/pages/settings/application-features.vue'
|
|
}
|
|
]
|
|
}; |