diff options
author | Pouyan Savoli <papoola@hotmail.com> | 2017-08-25 02:59:20 +0200 |
---|---|---|
committer | Pouyan Savoli <papoola@hotmail.com> | 2017-09-22 22:59:32 +0200 |
commit | ade3c02122d262c72bd7c4fd1cbcab8e136184ba (patch) | |
tree | a87395d7e048b1d16f9fb636884bf2cd503d475f /client/components/sidebar/sidebarCustomFields.jade | |
parent | 43a58c92ac3862668ef87d20fe7b09470e26cf66 (diff) | |
download | wekan-ade3c02122d262c72bd7c4fd1cbcab8e136184ba.tar.gz wekan-ade3c02122d262c72bd7c4fd1cbcab8e136184ba.tar.bz2 wekan-ade3c02122d262c72bd7c4fd1cbcab8e136184ba.zip |
Create custom fields creation UI added to Board Menu, Model in progress
Diffstat (limited to 'client/components/sidebar/sidebarCustomFields.jade')
-rw-r--r-- | client/components/sidebar/sidebarCustomFields.jade | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/client/components/sidebar/sidebarCustomFields.jade b/client/components/sidebar/sidebarCustomFields.jade new file mode 100644 index 00000000..33688441 --- /dev/null +++ b/client/components/sidebar/sidebarCustomFields.jade @@ -0,0 +1,31 @@ +template(name="customFieldsSidebar") + ul.sidebar-list + each customsFields + li + a.name + span.sidebar-list-item-description + {{_ 'some name'}} + if currentUser.isBoardMember + hr + a.sidebar-btn.js-open-create-custom-field + i.fa.fa-plus + span {{_ 'Create Custom Field'}} + +template(name="createCustomFieldPopup") + form + label + | {{_ 'name'}} + input.js-field-name(type="text" name="field-name" autofocus) + label + | {{_ 'type'}} + select.js-field-type(name="field-type") + option(value="string") String + option(value="number") Number + option(value="checkbox") Checkbox + option(value="date") Date + option(value="DropdownList") Dropdown List + a.flex.js-field-show-on-card + .materialCheckBox(class="{{#if showOnCard}}is-checked{{/if}}") + + span {{_ 'show-field-on-card'}} + input.primary.wide(type="submit" value="{{_ 'save'}}")
\ No newline at end of file |