diff options
author | Pouyan Savoli <papoola@hotmail.com> | 2017-09-18 00:46:17 +0200 |
---|---|---|
committer | Pouyan Savoli <papoola@hotmail.com> | 2017-09-22 22:59:32 +0200 |
commit | 3753337d60e17e5e72ec071aa4a1b28e36297d15 (patch) | |
tree | 81363c3fb7d1af2c90e7a3e2b1233412569bd52d /client/components/sidebar/sidebarCustomFields.jade | |
parent | caad952bc1b29bb925c1347a14daa5d1ec8ada81 (diff) | |
download | wekan-3753337d60e17e5e72ec071aa4a1b28e36297d15.tar.gz wekan-3753337d60e17e5e72ec071aa4a1b28e36297d15.tar.bz2 wekan-3753337d60e17e5e72ec071aa4a1b28e36297d15.zip |
dropdown items
Diffstat (limited to 'client/components/sidebar/sidebarCustomFields.jade')
-rw-r--r-- | client/components/sidebar/sidebarCustomFields.jade | 23 |
1 files changed, 13 insertions, 10 deletions
diff --git a/client/components/sidebar/sidebarCustomFields.jade b/client/components/sidebar/sidebarCustomFields.jade index e17bb75d..def083e9 100644 --- a/client/components/sidebar/sidebarCustomFields.jade +++ b/client/components/sidebar/sidebarCustomFields.jade @@ -19,31 +19,34 @@ template(name="createCustomFieldPopup") label | {{_ 'name'}} unless _id - input.js-field-name(type="text" name="field-name" autofocus) + input.js-field-name(type="text" autofocus) else - input.js-field-name(type="text" name="field-name" value=name) + input.js-field-name(type="text" value=name) label | {{_ 'type'}} - select.js-field-type(name="field-type" disabled="{{#if _id}}disabled{{/if}}") + select.js-field-type(disabled="{{#if _id}}disabled{{/if}}") each types if selected - option(value=type selected="selected") {{name}} + option(value=value selected="selected") {{name}} else - option(value=type) {{name}} + option(value=value) {{name}} + div.js-field-settings.js-field-settings-dropdown(class="{{#if isTypeNotSelected 'dropdown'}}hide{{/if}}") + label + | {{_ 'custom-field-dropdown-options'}} + each dropdownItems.get + input.js-dropdown-item(type="text" value=name placeholder="") + input.js-dropdown-item.last(type="text" value="" placeholder="{{_ 'custom-field-dropdown-options-placeholder'}}") a.flex.js-field-show-on-card .materialCheckBox(class="{{#if showOnCard}}is-checked{{/if}}") span {{_ 'show-field-on-card'}} - button.primary.wide.left(type="submit") + button.primary.wide.left(type="button") | {{_ 'save'}} if _id - button.negate.wide.right.js-delete-custom-field + button.negate.wide.right.js-delete-custom-field(type="button") | {{_ 'delete'}} -template(name="editCustomFieldPopup") - | {{> createCustomFieldPopup}} - template(name="deleteCustomFieldPopup") p {{_ "custom-field-delete-pop"}} button.js-confirm.negate.full(type="submit") {{_ 'delete'}}
\ No newline at end of file |