summaryrefslogtreecommitdiffstats
path: root/client/components/rules/triggers/cardTriggers.jade
blob: a459a7e020b4be44641d131979913dd9a8e49164 (plain)
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
template(name="cardTriggers")
  div.trigger-item
    div.trigger-content
      div.trigger-text 
        | {{{_'r-when-a-label-is'}}}
      div.trigger-dropdown
        select(id="label-action")
          option(value="added") {{{_'r-added-to'}}}
          option(value="removed") {{{_'r-removed-from'}}}
      div.trigger-text 
        | {{{_'r-a-card'}}}
    div.trigger-button.js-add-gen-label-trigger.js-goto-action
      i.fa.fa-plus

  div.trigger-item
    div.trigger-content
      div.trigger-text 
        | {{{_'r-when-the-label-is'}}}
      div.trigger-dropdown
        select(id="spec-label")
          each labels
            option(value="#{_id}")
              = name
      div.trigger-text 
        | is
      div.trigger-dropdown
        select(id="spec-label-action")
          option(value="added") {{{_'r-added-to'}}}
          option(value="removed") {{{_'r-removed-from'}}}
      div.trigger-text 
        | {{{_'r-a-card'}}}
    div.trigger-button.js-add-spec-label-trigger.js-goto-action
      i.fa.fa-plus

  div.trigger-item
    div.trigger-content
      div.trigger-text 
        | {{{_'r-when-a-member'}}}
      div.trigger-dropdown
        select(id="gen-member-action")
          option(value="added") {{{_'r-added-to'}}}
          option(value="removed") {{{_'r-removed-from'}}}
      div.trigger-text 
        | {{{_'r-a-card'}}}
    div.trigger-button.js-add-gen-member-trigger.js-goto-action
      i.fa.fa-plus


  div.trigger-item
    div.trigger-content
      div.trigger-text 
        | {{{_'r-when-the-member'}}}
      div.trigger-dropdown
        input(id="spec-member",type=text,placeholder="{{{_'r-name'}}}") 
      div.trigger-text 
        | {{{_'r-is'}}}
      div.trigger-dropdown
        select(id="spec-member-action")
          option(value="added") {{{_'r-added-to'}}}
          option(value="removed") {{{_'r-removed-from'}}}
      div.trigger-text 
        | {{{_'r-a-card'}}}
    div.trigger-button.js-add-spec-member-trigger.js-goto-action
      i.fa.fa-plus

  div.trigger-item
    div.trigger-content
      div.trigger-text 
        | {{{_'r-when-a-attach'}}}
      div.trigger-text 
        | {{{_'r-is'}}}
      div.trigger-dropdown
        select(id="attach-action")
          option(value="added") {{{_'r-added-to'}}}
          option(value="removed") {{{_'r-removed-from'}}}
      div.trigger-text 
        | {{{_'r-a-card'}}}
    div.trigger-button.js-add-attachment-trigger.js-goto-action
      i.fa.fa-plus