master
Rustem 2025-06-02 10:22:45 +05:00
parent 7f72804ce0
commit c18348a43d
1 changed files with 21 additions and 40 deletions

View File

@ -35,9 +35,6 @@
"phone": { "phone": {
"type": "string" "type": "string"
}, },
"status": {
"type": "string"
},
"user_name": { "user_name": {
"type": "string" "type": "string"
}, },
@ -70,12 +67,11 @@
{ "name": "car_id", "caption": "Машина" }, { "name": "car_id", "caption": "Машина" },
{ "name": "user_id", "caption": "Пользователь" }, { "name": "user_id", "caption": "Пользователь" },
{ "name": "phone", "caption": "Телефон" }, { "name": "phone", "caption": "Телефон" },
{ "name": "status", "caption": "Статус" },
{ "name": "user_name", "caption": "Имя" }, { "name": "user_name", "caption": "Имя" },
{ "name": "user_surname", "caption": "Фамилия" }, { "name": "user_surname", "caption": "Фамилия" },
{ "name": "user_email", "caption": "Email" }, { "name": "user_email", "caption": "Email" },
{ "name": "started_at", "caption": "Начало" }, { "name": "started_at", "caption": "Начало" },
{ "name": "ended_at", "caption": "Окончания" } { "name": "ended_at", "caption": "Окончание" }
], ],
"action": { "action": {
"head": [ "head": [
@ -118,8 +114,7 @@
}, },
{ {
"cols": [ "cols": [
{ "size": 6, "input": { "name": "phone", "label": "Телефон" } }, { "size": 6, "input": { "name": "phone", "label": "Телефон" } }
{ "size": 6, "input": { "name": "status", "label": "Статус" } }
] ]
}, },
{ {
@ -136,7 +131,7 @@
}, },
{ {
"cols": [ "cols": [
{ "size": 6, "input": { "name": "ended_at", "label": "Окончания" } }, { "size": 6, "input": { "name": "ended_at", "label": "Окончание" } },
{ "size": 6, "input": { "name": "photos", "label": "Фотографии", "type": "files"} } { "size": 6, "input": { "name": "photos", "label": "Фотографии", "type": "files"} }
] ]
} }
@ -157,25 +152,20 @@
}, },
{ {
"cols": [ "cols": [
{ "size": 6, "input": { "name": "phone", "label": "Телефон" } }, { "size": 4, "input": { "name": "phone", "label": "Телефон" } },
{ "size": 6, "input": { "name": "status", "label": "Статус" } } { "size": 4, "input": { "name": "user_name", "label": "Имя" } },
{ "size": 4, "input": { "name": "user_surname", "label": "Фамилия" } }
] ]
}, },
{ {
"cols": [ "cols": [
{ "size": 6, "input": { "name": "user_name", "label": "Имя" } }, { "size": 4, "input": { "name": "user_email", "label": "Email" } },
{ "size": 6, "input": { "name": "user_surname", "label": "Фамилия" } } { "size": 4, "input": { "name": "started_at", "label": "Начало" } },
{ "size": 4, "input": { "name": "ended_at", "label": "Окончание" } }
] ]
}, },
{ {
"cols": [ "cols": [
{ "size": 6, "input": { "name": "user_email", "label": "Email" } },
{ "size": 6, "input": { "name": "started_at", "label": "Начало" } }
]
},
{
"cols": [
{ "size": 6, "input": { "name": "ended_at", "label": "Окончания" } },
{ "size": 6, "input": { "name": "photos", "label": "Фотографии", "type": "files"} } { "size": 6, "input": { "name": "photos", "label": "Фотографии", "type": "files"} }
] ]
} }
@ -200,25 +190,20 @@
}, },
{ {
"cols": [ "cols": [
{ "size": 6, "input": { "name": "phone", "label": "Телефон" } }, { "size": 4, "input": { "name": "phone", "label": "Телефон" } },
{ "size": 6, "input": { "name": "status", "label": "Статус" } } { "size": 4, "input": { "name": "user_name", "label": "Имя" } },
{ "size": 4, "input": { "name": "user_surname", "label": "Фамилия" } }
] ]
}, },
{ {
"cols": [ "cols": [
{ "size": 6, "input": { "name": "user_name", "label": "Имя" } }, { "size": 4, "input": { "name": "user_email", "label": "Email" } },
{ "size": 6, "input": { "name": "user_surname", "label": "Фамилия" } } { "size": 4, "input": { "name": "started_at", "label": "Начало" } },
{ "size": 4, "input": { "name": "ended_at", "label": "Окончание" } }
] ]
}, },
{ {
"cols": [ "cols": [
{ "size": 6, "input": { "name": "user_email", "label": "Email" } },
{ "size": 6, "input": { "name": "started_at", "label": "Начало" } }
]
},
{
"cols": [
{ "size": 6, "input": { "name": "ended_at", "label": "Окончания" } },
{ "size": 6, "input": { "name": "photos", "label": "Фотографии", "type": "files"} } { "size": 6, "input": { "name": "photos", "label": "Фотографии", "type": "files"} }
] ]
} }
@ -228,24 +213,20 @@
"type": "logic", "type": "logic",
"name": "App.Modules.applications.Logic.Approve", "name": "App.Modules.applications.Logic.Approve",
"label": "Подтвердить заявку", "label": "Подтвердить заявку",
"icon": "bi bi-check",
"btn": "btn btn-success", "btn": "btn btn-success",
"condition": "status,==,pending" "condition": "status,==,pending"
}, },
{ {
"type": "logic", "type": "logic",
"name": "App.Modules.applications.Logic.Extend", "name": "App.Modules.applications.Logic.Cancel",
"label": "Продлить аренду", "label": "Отменить заявку",
"icon": "bi bi-check", "btn": "btn btn-danger"
"btn": "btn btn-success",
"condition": "status,==,approved"
}, },
{ {
"type": "logic", "type": "logic",
"name": "App.Modules.applications.Logic.Cancel", "name": "App.Modules.applications.Logic.Extend",
"label": "Отменить заявку", "label": "Продлить аренду",
"icon": "bi bi-check", "btn": "btn btn-success"
"btn": "btn btn-danger"
}, },
"struct:crud.form.submit.save", "struct:crud.form.submit.save",
"struct:crud.form.submit.close" "struct:crud.form.submit.close"