summaryrefslogtreecommitdiffstats
path: root/client/components/lists/body.jade
blob: 3e7692062974d40ef8305c1fe2006acf8b3a1754 (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
template(name="listBody")
  .list-body.js-perfect-scrollbar
    .minicards.clearfix.js-minicards
      if cards.count
        +inlinedForm(autoclose=false position="top")
          +addCardForm(listId=_id position="top")
      each cards
        +minicard(this)
      if currentUser.isBoardMember
        +inlinedForm(autoclose=false position="bottom")
          +addCardForm(listId=_id position="bottom")
        else
          if newCardFormIsVisible.get
            a.open-card-composer.js-open-inlined-form
              i.fa.fa-plus
              | {{_ 'add-card'}}

template(name="addCardForm")
  .minicard.js-composer
    .minicard-labels.js-minicard-composer-labels
    .minicard-details.clearfix
      textarea.minicard-composer-textarea.js-card-title(autofocus)
        = getCache
      .minicard-members.js-minicard-composer-members
  .add-controls.clearfix
    button.primary.confirm(type="submit") {{_ 'add'}}
    a.fa.fa-times-thin.js-close-inlined-form