summaryrefslogtreecommitdiffstats
path: root/client/components/cards/labels.jade
blob: 31bd4d067061dfe4cb199d287ff67af0d9e08e53 (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
template(name="formLabel")
  label(for="labelName") {{_ 'name'}}
  input.js-label-name#labelName(type="text" name="name" value=name autofocus)

  label {{_ "select-color"}}
  .palette-colors: each labels
    span.card-label.palette-color.js-palette-color(class="card-label-{{color}}")
      if(isSelected color)
        i.fa.fa-check

template(name="createLabelPopup")
  form.create-label
    with(color=defaultColor)
      +formLabel
    button.primary.wide(type="submit") {{_ 'create'}}

template(name="editLabelPopup")
  form.edit-label
    +formLabel
    button.primary.wide.left(type="submit") {{_ 'save'}}
    button.js-delete-label.negate.wide.right {{_ 'delete'}}

template(name="deleteLabelPopup")
  p {{_ "label-delete-pop"}}
  button.js-confirm.negate.full(type="submit") {{_ 'delete'}}

template(name="cardLabelsPopup")
  ul.edit-labels-pop-over
    each board.labels
      li
        a.card-label-edit-button.fa.fa-pencil.js-edit-label
        span.card-label.card-label-selectable.js-select-label(class="card-label-{{color}}"
          class="{{# if isLabelSelected ../_id }}active{{/if}}")
            = name
            if(isLabelSelected ../_id)
              i.card-label-selectable-icon.fa.fa-check
  a.quiet-button.full.js-add-label {{_ 'label-create'}}