summaryrefslogtreecommitdiffstats
path: root/client/components/cards/cardCustomFields.jade
blob: 6515aa79bb74ed452b1fa7900f91c39847ea550e (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
template(name="cardCustomFieldsPopup")
    ul.pop-over-list
        each board.customFields
            li.item(class="")
                a.name.js-select-field(href="#")
                    span.full-name
                        = name
                    if hasCustomField
                        i.fa.fa-check
    hr
    a.quiet-button.full.js-configure-custom-fields
        i.fa.fa-cog
        span {{_ 'configure-custom-fields'}}

template(name="cardCustomFieldText")
    if canModifyCard
        +inlinedForm(classNames="js-card-customfield-text")
            +editor(autofocus=true)
                = value
            .edit-controls.clearfix
                button.primary(type="submit") {{_ 'save'}}
                a.fa.fa-times-thin.js-close-inlined-form
        else
            a.js-open-inlined-form
                if value
                    +viewer
                        = value
                else
                    | {{_ 'edit'}}