mirror of
https://github.com/wekan/wekan.git
synced 2026-03-02 11:50:16 +01:00
Create custom fields creation UI added to Board Menu, Model in progress
This commit is contained in:
parent
43a58c92ac
commit
ade3c02122
13 changed files with 239 additions and 0 deletions
31
client/components/sidebar/sidebarCustomFields.jade
Normal file
31
client/components/sidebar/sidebarCustomFields.jade
Normal file
|
|
@ -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'}}")
|
||||
Loading…
Add table
Add a link
Reference in a new issue