finished plugin system base
This commit is contained in:
24
shared/form_templates/form_demo.json
Normal file
24
shared/form_templates/form_demo.json
Normal file
@@ -0,0 +1,24 @@
|
||||
{
|
||||
"form_type": "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": 1024
|
||||
}
|
||||
]
|
||||
}
|
18
shared/form_templates/template_general.json
Normal file
18
shared/form_templates/template_general.json
Normal file
@@ -0,0 +1,18 @@
|
||||
{
|
||||
"form_type": "template_general",
|
||||
"title": "Form",
|
||||
"form": [
|
||||
{
|
||||
"label": "Title",
|
||||
"is_paragraph": false,
|
||||
"required": true,
|
||||
"max_length": 20
|
||||
},
|
||||
{
|
||||
"label": "Text",
|
||||
"is_paragraph": true,
|
||||
"required": true,
|
||||
"max_length": 1024
|
||||
}
|
||||
]
|
||||
}
|
20
shared/form_templates/template_ticket.json
Normal file
20
shared/form_templates/template_ticket.json
Normal file
@@ -0,0 +1,20 @@
|
||||
{
|
||||
"form_type": "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 for what you need help or have issues with and a moderator will reply.",
|
||||
"required": true,
|
||||
"max_length": 1024
|
||||
}
|
||||
]
|
||||
}
|
15
shared/form_templates/template_url.json
Normal file
15
shared/form_templates/template_url.json
Normal file
@@ -0,0 +1,15 @@
|
||||
{
|
||||
"form_type": "template_url",
|
||||
"title": "Submit URL",
|
||||
"form": [
|
||||
{
|
||||
"label": "URL",
|
||||
"is_paragraph": false,
|
||||
"placeholder": "https://",
|
||||
"value": "",
|
||||
"required": true,
|
||||
"min_length": 0,
|
||||
"max_length": 100
|
||||
}
|
||||
]
|
||||
}
|
Reference in New Issue
Block a user