forked from scan5415/grav-plugin-form-database
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathblueprints.yaml
80 lines (79 loc) · 2.13 KB
/
blueprints.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
name: Form Database
version: 2.0.0
description: Save Forms in a MySQL Database
icon: plug
author:
name: Bruno Baudry
email: [email protected]
homepage: https://github.com/gamahachaa/grav-plugin-form-database
demo: http://learn.getgrav.org
keywords: grav, plugin, form, database
bugs: https://github.com/gamahachaa/grav-plugin-form-database
readme: https://github.com/gamahachaa/grav-plugin-form-database/blob/develop/README.md
license: MIT
dependencies:
- { name: grav, version: '>=1.6.0' }
- { name: database, version: '>=1.0.0' }
- { name: form, version: '>=2.0.0' }
form:
validation: strict
fields:
enabled:
type: toggle
label: Plugin status
highlight: 1
default: 0
options:
1: Enabled
0: Disabled
validate:
type: bool
engine:
type: radio
label: DB Engine
default: sqlite
options:
sqlite: SQLite
mysql: MySQL
pgsql: Postgre
validate.required: true
server:
type: text
label: Servername or path
help: IP or Name of DB Servername or path to the SQLite db
validate.required: true
size: medium
port:
type: text
size: x-small
label: Server Port (MySQL or PG)
default: '3306'
username:
type: text
label: Username (required for MySQL or PG)
size: medium
help: Username (required for MySQL or PG)
password:
type: password
label: Password (required for MySQL or PG)
size: medium
help: Password (required for MySQL or PG)
db:
type: text
size: small
label: Database name
help: If not set here, don't forget to set it in your form's action otherwise an exception will be thrown
table:
type: text
label: Table name
size: small
help: If not set here, don't forget to set it in your form's action otherwise an exception will be thrown
array_separator:
default: ';'
type: text
label: "Separator to join results in a string (expl: for checkboxes)"
size: x-small
validate:
pattern: "\\W"
max: 1
min: 1