summaryrefslogtreecommitdiffstats
path: root/tpl/views/field-label.pug
blob: 37ffb1adb066a67dcb0f9ff4674e698ea499caf9 (plain) (blame)
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='left' labelWidth='100px')
                +text-field(placeholder='Placeholder')
            br
            +field-label('Password', 'At least 6 characters required')(align='left' labelWidth='100px')
                +text-field(placeholder='Placeholder' type='password')
            br
            +field-label('Password', 'At least 6 characters required')(align='left' labelWidth='100px' invalid=true)
                +text-field(placeholder='Placeholder' type='password' invalid=true)
            br
            +field-label('First name')(align='left' labelWidth='100px' disabled=true)
                +text-field(placeholder='Placeholder' disabled=true)
            br
            +field-label('Password', 'At least 6 characters required')(align='left' labelWidth='100px' disabled=true)
                +text-field(placeholder='Placeholder' type='password' disabled=true)
            br
            +field-label('Password', 'At least 6 characters required')(align='left' labelWidth='100px' invalid=true disabled=true)
                +text-field(placeholder='Placeholder' type='password' invalid=true disabled=true)

        .c-box
            +field-label('First name')(align='right' labelWidth='100px')
                +text-field(placeholder='Placeholder')
            br
            +field-label('Password', 'At least 6 characters required')(align='right' labelWidth='100px')
                +text-field(placeholder='Placeholder' type='password')
            br
            +field-label('Password', 'At least 6 characters required')(align='right' labelWidth='100px' invalid=true)
                +text-field(placeholder='Placeholder' type='password' invalid=true)
            br
            +field-label('First name')(align='right' labelWidth='100px' disabled=true)
                +text-field(placeholder='Placeholder' disabled=true)
            br
            +field-label('Password', 'At least 6 characters required')(align='right' labelWidth='100px' disabled=true)
                +text-field(placeholder='Placeholder' type='password' disabled=true)
            br
            +field-label('Password', 'At least 6 characters required')(align='right' labelWidth='100px' invalid=true disabled=true)
                +text-field(placeholder='Placeholder' type='password' invalid=true disabled=true)