diff options
author | amadilsons <joao.amado.95@gmail.com> | 2017-10-04 11:12:52 +0200 |
---|---|---|
committer | amadilsons <joao.amado.95@gmail.com> | 2017-10-04 11:12:52 +0200 |
commit | 089dbf0cf6a3e144d0271a8666d58e689f8c8dba (patch) | |
tree | c77d1063e881065f5faf70fe397fd14bbfc8f368 /client/components/lists/listHeader.jade | |
parent | a918d36533bd61765f954f60c0e3af78b014907a (diff) | |
download | wekan-089dbf0cf6a3e144d0271a8666d58e689f8c8dba.tar.gz wekan-089dbf0cf6a3e144d0271a8666d58e689f8c8dba.tar.bz2 wekan-089dbf0cf6a3e144d0271a8666d58e689f8c8dba.zip |
on its way
Diffstat (limited to 'client/components/lists/listHeader.jade')
-rw-r--r-- | client/components/lists/listHeader.jade | 26 |
1 files changed, 20 insertions, 6 deletions
diff --git a/client/components/lists/listHeader.jade b/client/components/lists/listHeader.jade index 5d352b2e..97dbf1c8 100644 --- a/client/components/lists/listHeader.jade +++ b/client/components/lists/listHeader.jade @@ -6,9 +6,9 @@ template(name="listHeader") h2.list-header-name( class="{{#if currentUser.isBoardMember}}js-open-inlined-form is-editable{{/if}}") = title - if hasWipLimit + if isWipLimitEnabled span - | (#{wipLimit}) + | (#{wipLimit.value}) if showCardsCountForList cards.count = cards.count span.lowercase @@ -37,7 +37,7 @@ template(name="listActionPopup") li: a.js-select-cards {{_ 'list-select-cards'}} hr ul.pop-over-list - li: a.js-set-wip-limit {{#if hasWipLimit}}{{_ 'edit-wip-limit'}}{{else}}{{_ 'setWipLimitPopup-title'}}{{/if}} + li: a.js-set-wip-limit {{#if isWipLimitEnabled }}EDIT{{else}}{{_ 'setWipLimitPopup-title'}}{{/if}} hr ul.pop-over-list li: a.js-close-list {{_ 'archive-list'}} @@ -74,6 +74,20 @@ template(name="listDeletePopup") template(name="setWipLimitPopup") #js-wip-limit-edit lable {{_ 'set-wip-limit-value'}} - p - input.wip-limit-value(type="number" value="#{wipLimit}" min="0" max="99" onkeydown="return false") - input.wip-limit-apply(type="submit" value="{{_ 'apply'}}") + {{one}} + ul.pop-over-list + li: a.js-enable-wip-limit Enable WIP Limit + if isWipLimitEnabled + i.fa.fa-check + + if isWipLimitEnabled + p + input.wip-limit-value(type="number" value="#{wipLimit.value}" min="1" max="99" onkeydown="return false") + input.wip-limit-apply(type="submit" value="{{_ 'apply'}}") + input.wip-limit-error + +template(name="wipLimitErrorPopup") + .wip-limit-invalid + p The number of tasks in this list is higher than the WIP limit you've defined. + p Please move some tasks out of this list, or set a higher WIP limit. + button.full.js-back-view(type="submit") {{_ 'cancel'}} |