diff options
author | Pouyan Savoli <papoola@hotmail.com> | 2017-09-14 00:50:05 +0200 |
---|---|---|
committer | Pouyan Savoli <papoola@hotmail.com> | 2017-09-22 22:59:32 +0200 |
commit | caad952bc1b29bb925c1347a14daa5d1ec8ada81 (patch) | |
tree | 73b88d891f3204485d4aa3ea996ea2dba620a8ce /client/components/cards/cardCustomFields.jade | |
parent | 6ff89b43b61ace7ea26d50f091ea6b714fa79c84 (diff) | |
download | wekan-caad952bc1b29bb925c1347a14daa5d1ec8ada81.tar.gz wekan-caad952bc1b29bb925c1347a14daa5d1ec8ada81.tar.bz2 wekan-caad952bc1b29bb925c1347a14daa5d1ec8ada81.zip |
text custom fields are now editable using inlinedForm
Diffstat (limited to 'client/components/cards/cardCustomFields.jade')
-rw-r--r-- | client/components/cards/cardCustomFields.jade | 20 |
1 files changed, 13 insertions, 7 deletions
diff --git a/client/components/cards/cardCustomFields.jade b/client/components/cards/cardCustomFields.jade index 3c885b93..6515aa79 100644 --- a/client/components/cards/cardCustomFields.jade +++ b/client/components/cards/cardCustomFields.jade @@ -5,7 +5,7 @@ template(name="cardCustomFieldsPopup") a.name.js-select-field(href="#") span.full-name = name - if isCardMember + if hasCustomField i.fa.fa-check hr a.quiet-button.full.js-configure-custom-fields @@ -14,10 +14,16 @@ template(name="cardCustomFieldsPopup") template(name="cardCustomFieldText") if canModifyCard - .item-title.js-open-inlined-form.is-editable - if value + +inlinedForm(classNames="js-card-customfield-text") + +editor(autofocus=true) = value - else - | {{_ 'edit'}} - else - .item-title {{value}}
\ No newline at end of file + .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'}}
\ No newline at end of file |