pipicar/modules/auto_bodywork/app.json

103 lines
3.2 KiB
JSON

{
"module": "pipicar",
"name": "pipicar.auto_bodywork",
"type": "crud",
"title": "Классы автомобилей",
"withHeader": false,
"data": {
"table": "pipi_auto_bodywork",
"pk": "id",
"limit": 25,
"segment": true,
"timestamp": false,
"fields": {
"id": {
"type": "pk"
},
"name": {
"type": "string"
}
}
},
"ui": {
"grid": {
"title": "Кузовы автомобилей",
"component": "App.components.Grid",
"cols": [
{
"name": "name",
"caption": "Название кузова"
}
],
"action": {
"head": [],
"row": [
"edit",
"delete"
]
},
"filter": {
"template": "app.base.crud.filter",
"rows": [
{
"cols": [
{
"size": 6,
"input": {
"name": "name",
"label": "Название кузова"
}
}
]
}
]
}
},
"forms": {
"add": {
"title": "Добавление кузова",
"template": "app.base.crud.form",
"component": "App.components.Show",
"form": {
"submits": "struct:crud.form.edit.submits",
"rows": [
{
"cols": [
{
"size": 12,
"input": {
"name": "name",
"label": "Название кузова"
}
}
]
}
]
}
},
"edit": {
"title": "Редактирование кузова",
"template": "app.base.crud.form",
"component": "App.components.Show",
"form": {
"rows": [
{
"cols": [
{
"size": 12,
"input": {
"name": "name",
"label": "Название кузова"
}
}
]
}
],
"submits": "struct:crud.form.edit.submits"
}
}
}
},
"actions": "struct:crud.actions"
}