added modal json template files

This commit is contained in:
2024-02-26 19:53:05 +01:00
parent 3c524e2f27
commit 47b5214fdb
5 changed files with 57 additions and 4 deletions

View File

@@ -0,0 +1,24 @@
{
"form_id": "form_demo",
"title": "Demo form",
"form": [
{
"label": "This is a simple textline",
"is_paragraph": false,
"placeholder": "...and it is required!",
"value": "",
"required": true,
"min_length": 0,
"max_length": 20
},
{
"label": "This is a paragraph",
"is_paragraph": true,
"placeholder": "...and it is not required!",
"value": "We already have some input here",
"required": false,
"min_length": 0,
"max_length": 2000
}
]
}

View File

@@ -0,0 +1,18 @@
{
"form_id": "template_general",
"title": "Form",
"form": [
{
"label": "Title",
"is_paragraph": false,
"required": true,
"max_length": 20
},
{
"label": "Text",
"is_paragraph": true,
"required": true,
"max_length": 2000
}
]
}

View File

@@ -0,0 +1,20 @@
{
"form_id": "template_ticket",
"title": "Submit your Ticket",
"mods_can_comment": true,
"form": [
{
"label": "Title",
"is_paragraph": false,
"required": true,
"max_length": 20
},
{
"label": "Ticket information",
"is_paragraph": true,
"placeholder": "Fill in what you need or have issues with and a moderator will reply.",
"required": true,
"max_length": 2000
}
]
}

View File

@@ -0,0 +1,15 @@
{
"form_id": "template_url",
"title": "Submit URL",
"form": [
{
"label": "URL",
"is_paragraph": false,
"placeholder": "https://example.com",
"value": "",
"required": true,
"min_length": 0,
"max_length": 100
}
]
}