summaryrefslogtreecommitdiffstats
path: root/client/components/swimlanes/swimlaneHeader.jade
blob: 33eb5731f985d9b165ebfa364a3643e8cf61f537 (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
template(name="swimlaneHeader")
  .swimlane-header-wrap.js-swimlane-header(class='{{#if colorClass}}swimlane-{{colorClass}}{{/if}}')
    +inlinedForm
      +editSwimlaneTitleForm
    else
      .swimlane-header(
        class="{{#if currentUser.isBoardMember}}js-open-inlined-form is-editable{{/if}}")
        = title
      .swimlane-header-menu
        unless currentUser.isCommentOnly
          a.fa.fa-plus.js-open-add-swimlane-menu.swimlane-header-plus-icon
          a.fa.fa-navicon.js-open-swimlane-menu

template(name="editSwimlaneTitleForm")
  .list-composer
    input.list-name-input.full-line(type="text" value=title autofocus)
    .edit-controls.clearfix
      button.primary.confirm(type="submit") {{_ 'save'}}
      a.fa.fa-times-thin.js-close-inlined-form

template(name="swimlaneActionPopup")
  unless currentUser.isCommentOnly
    ul.pop-over-list
       li: a.js-set-swimlane-color {{_ 'select-color'}}
    hr
    ul.pop-over-list
      li: a.js-close-swimlane {{_ 'archive-swimlane'}}

template(name="swimlaneAddPopup")
  unless currentUser.isCommentOnly
    form
      input.swimlane-name-input.full-line(type="text" placeholder="{{_ 'add-swimlane'}}"
        autocomplete="off" autofocus)
      .edit-controls.clearfix
        button.primary.confirm(type="submit") {{_ 'add'}}

template(name="setSwimlaneColorPopup")
  form.edit-label
    .palette-colors: each colors
      span.card-label.palette-color.js-palette-color(class="card-details-{{color}}")
        if(isSelected color)
          i.fa.fa-check
    button.primary.confirm.js-submit {{_ 'save'}}
    button.js-remove-color.negate.wide.right {{_ 'unset-color'}}