forked from atk4/agiletoolkit-css
-
Notifications
You must be signed in to change notification settings - Fork 0
/
playground-forms.jade
341 lines (339 loc) · 11.9 KB
/
playground-forms.jade
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
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
section#forms
h2 Forms
h3 Regular Form
.atk-box.atk-col-6
form.atk-form.atk-cells-group.atk-cells-gutter-large.atk-valign-top
.atk-cells.atk-push
.atk-cell.atk-text-nowrap
label.atk-input-label
strong Input:
.atk-cell.atk-jackscrew
input(type="text",size="9",class="atk-push-xsmall")
div.atk-text-dimmed.atk-size-milli Some Text
.atk-cells.atk-push
.atk-cell.atk-text-nowrap
label.atk-input-label
strong Password:
.atk-cell.atk-jackscrew
input(type="password",class="atk-jackscrew atk-push-xsmall")
.atk-cells.atk-push
.atk-cell.atk-text-nowrap
label.atk-input-label
strong About:
.atk-cell.atk-jackscrew
textarea(class="atk-jackscrew")
.atk-cells.atk-push
.atk-cell
.atk-cell.atk-jackscrew
.atk-input-radio.atk-push-xsmall
span
input(type='checkbox')
label
| Accept
a(href='#') Terms & Conditions
| .
p.atk-effect-danger
span.icon-attention
| Please accept Terms & Conditions to continue.
.atk-cells
.atk-cell
.atk-cell.atk-actions.atk-jackscrew
button.atk-button Submit
button.atk-button Cancel
h3 Compact Form
.atk-box.atk-col-6
form.atk-form.atk-cells-group.atk-cells-gutter-large
.atk-cells.atk-push-small
.atk-cell.atk-text-nowrap
label.atk-input-label
strong Input:
.atk-cell.atk-jackscrew
input(type="text",size="9")
.atk-cells.atk-push-small
.atk-cell.atk-text-nowrap
label.atk-input-label
strong Password:
.atk-cell.atk-jackscrew
input(type="password",class="atk-jackscrew")
.atk-cells
.atk-cell
.atk-cell.atk-actions.atk-jackscrew
button.atk-button Submit
button.atk-button Cancel
h3 Stacked Form
.atk-box.atk-col-6
form.atk-form
.atk-push-xsmall
label
strong Input:
.atk-push
input(type='text',class='atk-jackscrew')
.atk-push-xsmall
label
strong Password:
.atk-push
input(type='password',class='atk-jackscrew')
.atk-actions
button.atk-button Okay
button.atk-button Cancel
h3 Stacked Compact Form
.atk-box.atk-col-10
form.atk-form
.atk-push-small
div.atk-push-small
label
strong Input:
input(type='text',class='atk-jackscrew')
.atk-push-small.atk-effect-danger
div.atk-push-xsmall
label
strong Password:
input(type='password',class='atk-jackscrew atk-push-xsmall')
p
span.icon-attention
| This is error
.atk-cells.atk-push-small.atk-cells-gutter-small.atk-effect-danger
.atk-cell
input(type="text")
.atk-cell
select
option Option #1
option Option #2
.atk-actions
button.atk-button Okay
button.atk-button Cancel
h3 Minimal Form
.atk-box.atk-col-3
form.atk-form
.atk-push-xsmall
input(type='text',class='atk-jackscrew',placeholder="Username")
.atk-push-xsmall
input(type='password',class='atk-jackscrew',placeholder="Password")
button.atk-button.atk-swatch-green.atk-jackscrew Okay
//- h3 Hybrid Form
//- p
//- span.atk-label.atk-effect-info .atk-form-hybrid
//- | allows to assign
//- span.atk-label.atk-effect-info .atk-form-*
//- | classes to
//- span.atk-label.atk-effect-info .atk-form-fieldset
//- | .
//- .atk-box.atk-col-6
//- .atk-form.atk-form-hybrid
//- form
//- .atk-form-fieldset
//- .atk-cells.atk-cells-gutter-large
//- .atk-cell
//- label Input:
//- .atk-cell.atk-jackscrew
//- input(type='text')
//- .atk-cells.atk-cells-gutter-large
//- .atk-cell
//- label Password:
//- .atk-cell
//- span.atk-input-icon
//- input(type='password')
//- a.icon-help-circled-1(href='javascript:void(0)')
//- .atk-form-fieldset.atk-form-stacked
//- .atk-cells
//- .atk-cell
//- label Textarea:
//- .atk-cell.atk-jackscrew
//- textarea(rows='3')
//- .atk-cells
//- .atk-cell
//- .atk-cell.atk-actions
//- button.atk-button Okay
//- button.atk-button Cancel
//- p
//- span.atk-label.atk-effect-info .atk-form-fieldset
//- | and
//- span.atk-label.atk-effect-info .atk-actions
//- | combined with grid system's
//- span.atk-label.atk-effect-info .atk-col-*
//- | classes.
//- .atk-box
//- .atk-form.atk-form-hybrid
//- form.atk-row
//- .atk-form-fieldset.atk-col-6
//- .atk-cells.atk-cells-gutter-large
//- .atk-cell
//- label
//- | Input:
//- span.atk-form-mandatory *
//- | :
//- .atk-cell.atk-jackscrew
//- input(type='text')
//- .atk-cells.atk-cells-gutter-large
//- .atk-cell
//- label Password:
//- .atk-cell
//- span.atk-input-icon
//- input(type='password')
//- a.icon-help-circled-1(href='javascript:void(0)')
//- .atk-cells.atk-cells-gutter-large
//- .atk-cell
//- label Dropdown:
//- .atk-cell
//- select(name='speed')
//- option(value='Slower') Slower
//- option(value='Slow') Slow
//- option(value='Medium', selected='selected') Medium Roast
//- option(value='Fast') Fast
//- option(value='Faster') Faster
//- .atk-cells.atk-cells-gutter-large
//- .atk-cell.atk-text-nowrap
//- span.atk-label.atk-effect-warning
//- span.icon-attention
//- label Combo Input #1:
//- .atk-cell.atk-jackscrew
//- .atk-cells.atk-input-combo
//- .atk-cell
//- a.atk-button(href='javascript:void(0)')
//- span.icon-plus-1
//- .atk-cell.atk-jackscrew
//- input(type='text')
//- .atk-cells.atk-cells-gutter-large
//- .atk-cell.atk-text-nowrap
//- label Combo Input #2:
//- .atk-cell.atk-jackscrew
//- .atk-cells.atk-input-combo
//- .atk-cell.atk-jackscrew
//- input(type='text')
//- .atk-cell
//- a.atk-button(href='javascript:void(0)')
//- span.icon-calendar
//- .atk-cells.atk-cells-gutter-large
//- .atk-cell
//- label Combo Input #3:
//- .atk-cell.atk-jackscrew
//- .atk-cells.atk-input-combo
//- .atk-cell
//- a.atk-button(href='javascript:void(0)')
//- span.icon-minus-1
//- .atk-cell.atk-jackscrew
//- input(type='text')
//- .atk-cell
//- a.atk-button(href='javascript:void(0)')
//- span.icon-plus-1
//- .atk-cell
//- a.atk-button(href='javascript:void(0)')
//- span.icon-trash
//- .atk-cells.atk-cells-gutter-large
//- .atk-cell
//- label Textarea:
//- .atk-cell
//- textarea(rows='3')
//- .atk-cells.atk-cells-gutter-large
//- .atk-cell
//- label Checkbox:
//- .atk-cell.atk-jackscrew
//- .atk-input-radio
//- span
//- input(type='checkbox')
//- label
//- | Pellentesque a ligula dignissim, accumsan est sit amet, aliquet risus. Phasellus eget rutrum diam. Cras condimentum ornare dapibus.
//- .atk-cells.atk-cells-gutter-large
//- .atk-cell
//- label
//- | Input
//- span.atk-form-mandatory *
//- | :
//- .atk-cell.atk-jackscrew
//- input(type='text')
//- p.atk-text-dimmed This is a form Comment.
//- .atk-cells.atk-cells-gutter-large.atk-form-error
//- .atk-cell.atk-text-nowrap
//- label Input with error:
//- .atk-cell.atk-jackscrew
//- input(type='text')
//- p.atk-effect-danger This is a form error.
//- .atk-form-fieldset.atk-form-stacked.atk-col-6
//- .atk-cells
//- .atk-cell
//- label File Upload:
//- .atk-cell
//- input(type='file')
//- .atk-cells
//- .atk-cell
//- label Textarea:
//- .atk-cell
//- textarea(rows='5')
//- .atk-cells
//- .atk-cell
//- label Horizontal Radio Buttons:
//- .atk-cell
//- .atk-input-radio
//- span
//- input(type='radio')
//- label Blueberry
//- span
//- input(type='radio')
//- label Raspberry
//- span
//- input(type='radio')
//- label Strawberry
//- span
//- input(type='radio')
//- label Cherry
//- span
//- input(type='radio')
//- label Cranberry
//- span
//- input(type='radio')
//- label Gooseberry
//- .atk-cells
//- .atk-cell
//- label Vertical Radio Buttons:
//- .atk-cell
//- .atk-input-radio.atk-input-radio-stacked
//- span
//- input(type='radio')
//- label Blueberry
//- span
//- input(type='radio')
//- label Raspberry
//- span
//- input(type='radio')
//- label Strawberry
//- span
//- input(type='radio')
//- label Cherry
//- span
//- input(type='radio')
//- label Cranberry
//- span
//- input(type='radio')
//- label Gooseberry
//- .atk-cells
//- .atk-cell
//- label
//- | Vertical Radio Buttons with
//- span.atk-label.atk-effect-info .atk-cells
//- | component:
//- .atk-cell
//- .atk-input-radio.atk-input-radio-stacked.atk-cells
//- .atk-cell
//- span
//- input(type='radio')
//- label Blueberry
//- span
//- input(type='radio')
//- label Raspberry
//- span
//- input(type='radio')
//- label Strawberry
//- .atk-cell
//- span
//- input(type='radio')
//- label Cherry
//- span
//- input(type='radio')
//- label Cranberry
//- span
//- input(type='radio')
//- label Gooseberry
//- .atk-col-12.atk-actions.atk-text-right
//- hr
//- button.atk-button.atk-button-blank Cancel
//- button.atk-button.atk-swatch-green Okay