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
|
mixin view-field-label
+view('field-label', 'Field label')
.c-box
+field-label('First name')
+text-field(placeholder='Placeholder')
br
+field-label('Password', 'At least 6 characters required')
+text-field(placeholder='Placeholder' type='password')
br
+field-label('Password', 'At least 6 characters required')(invalid=true)
+text-field(placeholder='Placeholder' type='password' invalid=true)
br
+field-label('First name')(disabled=true)
+text-field(placeholder='Placeholder' disabled=true)
br
+field-label('Password', 'At least 6 characters required')(disabled=true)
+text-field(placeholder='Placeholder' type='password' disabled=true)
br
+field-label('Password', 'At least 6 characters required')(invalid=true disabled=true)
+text-field(placeholder='Placeholder' type='password' invalid=true disabled=true)
.c-box
+field-label('First name')(align='start' labelWidth='100px')
+text-field(placeholder='Placeholder')
br
+field-label('Password', 'At least 6 characters required')(align='start' labelWidth='100px')
+text-field(placeholder='Placeholder' type='password')
br
+field-label('Password', 'At least 6 characters required')(align='start' labelWidth='100px' invalid=true)
+text-field(placeholder='Placeholder' type='password' invalid=true)
br
+field-label('First name')(align='start' labelWidth='100px' disabled=true)
+text-field(placeholder='Placeholder' disabled=true)
br
+field-label('Password', 'At least 6 characters required')(align='start' labelWidth='100px' disabled=true)
+text-field(placeholder='Placeholder' type='password' disabled=true)
br
+field-label('Password', 'At least 6 characters required')(align='start' labelWidth='100px' invalid=true disabled=true)
+text-field(placeholder='Placeholder' type='password' invalid=true disabled=true)
.c-box
+field-label('First name')(align='end' labelWidth='100px')
+text-field(placeholder='Placeholder')
br
+field-label('Password', 'At least 6 characters required')(align='end' labelWidth='100px')
+text-field(placeholder='Placeholder' type='password')
br
+field-label('Password', 'At least 6 characters required')(align='end' labelWidth='100px' invalid=true)
+text-field(placeholder='Placeholder' type='password' invalid=true)
br
+field-label('First name')(align='end' labelWidth='100px' disabled=true)
+text-field(placeholder='Placeholder' disabled=true)
br
+field-label('Password', 'At least 6 characters required')(align='end' labelWidth='100px' disabled=true)
+text-field(placeholder='Placeholder' type='password' disabled=true)
br
+field-label('Password', 'At least 6 characters required')(align='end' labelWidth='100px' invalid=true disabled=true)
+text-field(placeholder='Placeholder' type='password' invalid=true disabled=true)
|