You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
38 lines
729 B
38 lines
729 B
|
|
module.exports = function (pCtx, coll) {
|
|
|
|
coll.formCreate = [
|
|
{
|
|
size: '',
|
|
list: [
|
|
{ field: 'name', label: 'Nom', type: 'text', rules: {required: 'Nom manquant'} }
|
|
]
|
|
}
|
|
]
|
|
|
|
coll.form = [
|
|
{
|
|
label: 'General',
|
|
field: '',
|
|
form: [
|
|
{
|
|
size: '',
|
|
list: [
|
|
{ field: 'name', label: 'Nom', type: 'text' },
|
|
{ field: 'description', label: 'Description', type: 'textarea' }
|
|
]
|
|
},
|
|
{
|
|
size: '',
|
|
list: [
|
|
{ field: 'preview', label: 'Preview', type: 'media' }
|
|
]
|
|
}
|
|
]
|
|
}
|
|
]
|
|
|
|
coll.listingHeader = [
|
|
{ text: 'Nom', align: 'left', value: 'name' }
|
|
]
|
|
}
|