summaryrefslogtreecommitdiffstats
path: root/tpl/views/action-button.pug
blob: faa53bcc2287cd4fbca54c03b6d59eea385a5eb5 (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
59
60
61
62
63
64
mixin view-action-button 
    +view('action-button', 'Action button')
        .c-box
            +action-button= 'Idle'
            = ' '
            +action-button(selected=true)= 'Selected'
            = ' '
            +action-button(disabled=true)= 'Disabled'
            = ' '
            +action-button(selected=true disabled=true)= 'Selected + disabled'
            br
            br
            +action-button(icon='trash')= 'Idle'
            = ' '
            +action-button(icon='trash' selected=true)= 'Selected'
            = ' '
            +action-button(icon='trash' disabled=true)= 'Disabled'
            = ' '
            +action-button(icon='trash' selected=true disabled=true)= 'Selected + disabled'
            br
            br
            +action-button(icon='trash')
            = ' '
            +action-button(icon='trash' selected=true)
            = ' '
            +action-button(icon='trash' disabled=true)
            = ' '
            +action-button(icon='trash' selected=true disabled=true)

        .c-box
            +action-button(quiet=true )= 'Idle'
            = ' '
            +action-button(quiet=true selected=true)= 'Selected'
            = ' '
            +action-button(quiet=true disabled=true)= 'Disabled'
            = ' '
            +action-button(quiet=true selected=true disabled=true)= 'Selected + disabled'
            br
            br
            +action-button(quiet=true icon='trash')= 'Idle'
            = ' '
            +action-button(quiet=true icon='trash' selected=true)= 'Selected'
            = ' '
            +action-button(quiet=true icon='trash' disabled=true)= 'Disabled'
            = ' '
            +action-button(quiet=true icon='trash' selected=true disabled=true)= 'Selected + disabled'
            br
            br
            +action-button(quiet=true icon='trash')
            = ' '
            +action-button(quiet=true icon='trash' selected=true)
            = ' '
            +action-button(quiet=true icon='trash' disabled=true)
            = ' '
            +action-button(quiet=true icon='trash' selected=true disabled=true)

        .c-box
            +action-button= 'Idle'
            = ' '
            +action-button(icon='trash')
            = ' '
            +action-button
                = 'Idle'
                +badge('primary')= '12'