firstPHP/form.json

58 lines
1.3 KiB
JSON
Raw Normal View History

2024-03-18 17:52:16 +03:00
{
2024-03-20 17:46:58 +03:00
"meta": {
"action": "some",
"id": "id_form"
2024-03-18 17:52:16 +03:00
},
2024-03-20 17:46:58 +03:00
"data": [
{
"type": "textInput",
"name": "email",
"placeholder": "Email",
2024-03-20 18:31:49 +03:00
"id": "emailId",
2024-03-20 17:46:58 +03:00
"label": {
"title": "Email", "for": "emailId", "class": "form-label"
},
"class": "form-control"
},
{
"type": "textInput",
"name": "phone",
"placeholder": "Телефон",
"class": "form-control",
"style": "color:RED;"
},
2024-03-20 18:31:49 +03:00
{
"type": "select",
"name": "select_city",
"class": "form-control",
"id": "cityId",
"label": {
"title": "Выберите город", "for": "cityId", "class": "form-label"
},
"value": 2,
"options": {"1": "Москва", "2": "Донецк", "3": "Ростов"}
},
2024-03-20 17:46:58 +03:00
{
"type": "textArea",
"name": "description",
"class": "form-control",
"placeholder": "Описание"
2024-03-20 18:31:49 +03:00
},
{
"type": "checkbox",
"name": "agree",
"class": "",
"id": "agreeId",
"label": {
"title": "Согласен с правилами", "for": "agreeId", "class": "form-label"
}
},
{
"type": "button",
"value": "Проверить",
"name": "btn",
"class": "btn btn-primary"
2024-03-20 17:46:58 +03:00
}
]
}