105 lines
3.2 KiB
JSON
105 lines
3.2 KiB
JSON
{
|
||
"module": "pipicar",
|
||
"name": "pipicar.auto_tariffs",
|
||
"type": "crud",
|
||
"title": "Цвета Автомобилей",
|
||
"withHeader": false,
|
||
"data": {
|
||
"table": "pipi_auto_tariffs",
|
||
"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": [
|
||
"add"
|
||
],
|
||
"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"
|
||
}
|