-
Notifications
You must be signed in to change notification settings - Fork 2
/
config.yaml
191 lines (187 loc) · 5 KB
/
config.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
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
meta:
title: 'Form example'
css: custom.css
logo: logo.png
email:
subject: 'Email subject'
recipients:
- recipient1@example.com
- recipient2@example.com
cc:
- fieldset0.fieldset_dynamic.email1
export: i_will_be_moved.txt
saveButton: true
tooltip_style: 'border: 1px solid cyan'
language: de
form:
fieldset0:
type: fieldset
column: is-full
children:
radioset1:
type: radioset
label: 'Toggle different fieldsets (hidden fieldsets lose all their values when the form is submitted/saved!)'
column: is-half
alignment: vertical
validation:
required: false
choices:
- 'Static elements'
- 'Dynamic elements'
- 'Fieldset columns'
hr0:
type: hr
column: is-full
color: '#f5f5f5'
height: 2
fieldset_static:
type: fieldset
label: 'Static form elements'
column: is-half
toggle:
field: fieldset0.radioset1
value: 'Static elements'
children:
markdown0:
type: markdown
label: markdown
markdown: 'Hello _Markdown_!'
image0:
type: image
label: Image
src: logo.png
download0:
type: download
label: 'Download logo.png from data dir'
href: logo.png
hidden:
type: hidden
value: 'I am not visable'
fieldset_dynamic:
type: fieldset
label: 'Dynamic elements'
column: is-half
toggle:
field: fieldset0.radioset1
value: 'Dynamic elements'
children:
textinput1:
type: textinput
label: 'Textinput'
validation:
match: /[a-zA-Z0-9]/
required: false
tooltip: 'Optional input\nAllowed characters: a-Z, 0-9'
numberinput1:
type: numberinput
label: Numberinput
textarea1:
type: textarea
label: 'Textarea'
rows: 8
date1:
type: date
label: 'Date'
time1:
type: time
label: 'Time'
datetime1:
type: datetime
label: 'Datetime'
email1:
type: email
label: 'Email (cc)'
radioset1:
type: radioset
alignment: vertical
label: 'Radioset'
choices:
- 'Choice #1'
- 'Choice #2'
- 'Choice #3'
modal: |
###This is a modal. {.title .is-1}
With paragraphs.
![](logo.png)
And images.
Any markdown goes.
tooltip: 'Optional input\nAllowed characters: a-Z, 0-9'
dropdown1:
type: dropdown
label: 'Dropdown'
empty_label: 'Please choose'
choices:
- 'Choice #1'
- 'Choice #2'
- 'Choice #3'
checklist1:
type: checklist
alignment: vertical
label: 'Checklist'
choices:
- 'Choice #1'
- 'Choice #2 [a nice link](https://www.cosmocode.de)'
- 'Choice #3'
upload1:
type: upload
label: 'Upload'
validation:
filesize: 2MB
fileext: jpg, pdf, txt
signature:
type: signature
label: signature
height: 400
width: 600
fieldset4:
type: fieldset
column: is-full
label: 'Fieldset forcing 100% width for its children'
toggle:
field: fieldset0.radioset1
value: 'Fieldset columns'
children:
fieldset5:
type: fieldset
column: is-half
children:
fieldset5a:
type: fieldset
label: 'Fieldset 2/6 width'
column: is-two-thirds
children:
textarea3:
type: textarea
validation:
required: false
fieldset5b:
type: fieldset
label: 'Fieldset 1/6 width'
column: is-one-third
children:
textarea4:
type: textarea
validation:
required: false
fieldset6:
type: fieldset
column: is-half
children:
fieldset6a:
type: fieldset
label: 'Fieldset 1/4 width'
column: is-half
children:
textarea4:
type: textarea
validation:
required: false
fieldset6b:
type: fieldset
label: 'Fieldset 1/4 width'
column: is-half
children:
textarea4:
type: textarea
validation:
required: false