summaryrefslogtreecommitdiffstats
path: root/client/components/cards/cardCustomFields.jade
diff options
context:
space:
mode:
Diffstat (limited to 'client/components/cards/cardCustomFields.jade')
-rw-r--r--client/components/cards/cardCustomFields.jade29
1 files changed, 26 insertions, 3 deletions
diff --git a/client/components/cards/cardCustomFields.jade b/client/components/cards/cardCustomFields.jade
index 6515aa79..9e9f7d84 100644
--- a/client/components/cards/cardCustomFields.jade
+++ b/client/components/cards/cardCustomFields.jade
@@ -8,11 +8,14 @@ template(name="cardCustomFieldsPopup")
if hasCustomField
i.fa.fa-check
hr
- a.quiet-button.full.js-configure-custom-fields
+ a.quiet-button.full.js-settings
i.fa.fa-cog
- span {{_ 'configure-custom-fields'}}
+ span {{_ 'settings'}}
-template(name="cardCustomFieldText")
+template(name="cardCustomField")
+ +Template.dynamic(template=getTemplate)
+
+template(name="cardCustomField-text")
if canModifyCard
+inlinedForm(classNames="js-card-customfield-text")
+editor(autofocus=true)
@@ -26,4 +29,24 @@ template(name="cardCustomFieldText")
+viewer
= value
else
+ | {{_ 'edit'}}
+
+template(name="cardCustomField-dropdown")
+ if canModifyCard
+ +inlinedForm(classNames="js-card-customfield-dropdown")
+ select.inline
+ each items
+ if($eq data.value this._id)
+ option(value=_id selected="selected") {{name}}
+ else
+ option(value=_id) {{name}}
+ .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
+ = selectedItem
+ else
| {{_ 'edit'}} \ No newline at end of file