Files
mixtape/zero.Web.UI/App/renderers/application.js
T

77 lines
1.4 KiB
JavaScript
Raw Normal View History

2020-05-28 16:12:55 +02:00
export default {
2020-06-24 15:28:34 +02:00
alias: 'application',
2020-06-23 12:23:23 +02:00
tabs: [
{
name: 'general',
label: '@ui.tab_general'
},
{
name: 'domains',
label: '@application.tab_domains',
count: x => x.domains.length
},
2020-06-23 12:23:23 +02:00
{
name: 'features',
label: '@application.tab_features',
count: x => x.features.length
}
2020-06-23 12:23:23 +02:00
],
2020-05-28 16:12:55 +02:00
labelTemplate(field)
{
return "@application.fields." + field;
},
descriptionTemplate(field)
{
return "@application.fields." + field + "_text";
},
fields: [
{
field: 'name',
display: 'text',
label: '@ui.name',
2020-09-09 13:43:01 +02:00
required: true,
maxLength: 50
2020-05-28 16:12:55 +02:00
},
{
field: 'fullName',
2020-09-09 13:43:01 +02:00
display: 'text',
maxLength: 120
2020-05-28 16:12:55 +02:00
},
{
field: 'email',
display: 'text',
2020-09-09 13:43:01 +02:00
required: true,
maxLength: 120
2020-05-28 16:12:55 +02:00
},
{
field: 'imageId',
display: 'media',
2020-06-23 12:23:23 +02:00
type: 'image',
class: 'my-image'
2020-05-28 16:12:55 +02:00
},
{
field: 'iconId',
display: 'media',
type: 'image'
},
{
tab: 'domains',
2020-05-28 16:12:55 +02:00
field: 'domains',
2020-06-23 12:23:23 +02:00
display: 'inputList',
2020-09-09 13:43:01 +02:00
required: true,
2020-05-28 16:12:55 +02:00
limit: 10,
addLabel: '@application.fields.domains_add',
helpText: '@application.fields.domains_help'
},
{
tab: 'features',
field: 'features',
display: 'custom',
2020-06-23 12:23:23 +02:00
path: '@zero/pages/settings/application-features.vue'
2020-05-28 16:12:55 +02:00
}
]
};