pipicar/modules/faq/app.json

150 lines
4.9 KiB
JSON

{
"module": "pipicar",
"name": "pipicar.faq",
"type": "crud",
"title": "FAQ",
"withHeader": false,
"data": {
"table": "pipi_faq",
"pk": "id",
"limit": 25,
"segment": true,
"timestamp": false,
"fields": {
"id": {
"type": "pk"
},
"text": {
"type": "text"
},
"category": {
"type": "string"
},
"subcategory": {
"type": "string"
}
}
},
"ui": {
"grid": {
"title": "FAQ",
"component": "App.components.Grid",
"cols": [
{
"name": "category",
"caption": "Категория"
},
{
"name": "subcategory",
"caption": "Подкатегория"
}
],
"action": {
"head": [
"add"
],
"row": [
"edit",
"delete"
]
},
"filter": {
"template": "app.base.crud.filter",
"rows": [
{
"cols": [
{
"size": 6,
"input": {
"name": "category",
"label": "Категория"
}
},
{
"size": 6,
"input": {
"name": "subcategory",
"label": "Подкатегория"
}
}
]
}
]
}
},
"forms": {
"add": {
"title": "FAQ",
"template": "app.base.crud.form",
"component": "App.components.Show",
"form": {
"submits": "struct:crud.form.edit.submits",
"rows": [
{
"cols": [
{
"size": 6,
"input": {
"name": "category",
"label": "Категория"
}
},
{
"size": 6,
"input": {
"name": "subcategory",
"label": "Подкатегория"
}
},
{
"size": 12,
"input": {
"name": "text",
"label": "Текст"
}
}
]
}
]
}
},
"edit": {
"title": "Редактирование типа",
"template": "app.base.crud.form",
"component": "App.components.Show",
"form": {
"rows": [
{
"cols": [
{
"size": 6,
"input": {
"name": "category",
"label": "Категория"
}
},
{
"size": 6,
"input": {
"name": "subcategory",
"label": "Подкатегория"
}
},
{
"size": 12,
"input": {
"name": "text",
"label": "Текст"
}
}
]
}
],
"submits": "struct:crud.form.edit.submits"
}
}
}
},
"actions": "struct:crud.actions"
}