2017-08-25 02:59:20 +02:00
|
|
|
template(name="customFieldsSidebar")
|
|
|
|
|
ul.sidebar-list
|
2017-08-27 22:31:24 +02:00
|
|
|
each customFields
|
2017-08-25 02:59:20 +02:00
|
|
|
li
|
2017-08-27 22:31:24 +02:00
|
|
|
div.minicard-wrapper.js-minicard
|
|
|
|
|
div.minicard
|
|
|
|
|
a.fa.fa-pencil.js-edit-custom-field.minicard-edit-button
|
|
|
|
|
div.minicard-title
|
2019-05-11 23:40:18 +03:00
|
|
|
+viewer
|
|
|
|
|
=name
|
|
|
|
|
| ({{ type }})
|
2017-08-27 22:31:24 +02:00
|
|
|
|
2017-08-25 02:59:20 +02:00
|
|
|
if currentUser.isBoardMember
|
|
|
|
|
hr
|
|
|
|
|
a.sidebar-btn.js-open-create-custom-field
|
|
|
|
|
i.fa.fa-plus
|
2017-08-27 22:31:24 +02:00
|
|
|
span {{_ 'createCustomField'}}
|
2017-08-25 02:59:20 +02:00
|
|
|
|
|
|
|
|
template(name="createCustomFieldPopup")
|
|
|
|
|
form
|
|
|
|
|
label
|
|
|
|
|
| {{_ 'name'}}
|
2017-08-27 22:31:24 +02:00
|
|
|
unless _id
|
2017-09-18 00:46:17 +02:00
|
|
|
input.js-field-name(type="text" autofocus)
|
2017-08-27 22:31:24 +02:00
|
|
|
else
|
2017-09-18 00:46:17 +02:00
|
|
|
input.js-field-name(type="text" value=name)
|
2017-08-27 22:31:24 +02:00
|
|
|
|
2017-08-25 02:59:20 +02:00
|
|
|
label
|
|
|
|
|
| {{_ 'type'}}
|
2017-09-18 00:46:17 +02:00
|
|
|
select.js-field-type(disabled="{{#if _id}}disabled{{/if}}")
|
2017-08-27 22:31:24 +02:00
|
|
|
each types
|
|
|
|
|
if selected
|
2017-09-18 00:46:17 +02:00
|
|
|
option(value=value selected="selected") {{name}}
|
2017-08-27 22:31:24 +02:00
|
|
|
else
|
2017-09-18 00:46:17 +02:00
|
|
|
option(value=value) {{name}}
|
2020-05-25 14:59:32 +00:00
|
|
|
|
|
|
|
|
div.js-field-settings.js-field-settings-currency(class="{{#if isTypeNotSelected 'currency'}}hide{{/if}}")
|
|
|
|
|
label
|
|
|
|
|
| {{_ 'custom-field-currency-option'}}
|
|
|
|
|
select.js-field-currency
|
2020-05-25 22:05:06 +00:00
|
|
|
each getCurrencyCodes
|
2020-05-25 14:59:32 +00:00
|
|
|
if selected
|
|
|
|
|
option(value=value selected="selected") {{name}}
|
|
|
|
|
else
|
|
|
|
|
option(value=value) {{name}}
|
|
|
|
|
|
2017-09-18 00:46:17 +02:00
|
|
|
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'}}")
|
2018-06-14 14:10:30 +02:00
|
|
|
a.flex.js-field-show-on-card(class="{{#if showOnCard}}is-checked{{/if}}")
|
2017-08-25 02:59:20 +02:00
|
|
|
.materialCheckBox(class="{{#if showOnCard}}is-checked{{/if}}")
|
|
|
|
|
|
|
|
|
|
span {{_ 'show-field-on-card'}}
|
2018-11-05 21:46:57 +01:00
|
|
|
a.flex.js-field-automatically-on-card(class="{{#if automaticallyOnCard}}is-checked{{/if}}")
|
|
|
|
|
.materialCheckBox(class="{{#if automaticallyOnCard}}is-checked{{/if}}")
|
|
|
|
|
|
|
|
|
|
span {{_ 'automatically-field-on-card'}}
|
|
|
|
|
|
2021-01-22 21:28:37 +02:00
|
|
|
a.flex.js-field-always-on-card(class="{{#if alwaysOnCard}}is-checked{{/if}}")
|
|
|
|
|
.materialCheckBox(class="{{#if alwaysOnCard}}is-checked{{/if}}")
|
|
|
|
|
span {{_ 'always-field-on-card'}}
|
|
|
|
|
|
2018-11-05 21:46:57 +01:00
|
|
|
a.flex.js-field-showLabel-on-card(class="{{#if showLabelOnMiniCard}}is-checked{{/if}}")
|
|
|
|
|
.materialCheckBox(class="{{#if showLabelOnMiniCard}}is-checked{{/if}}")
|
|
|
|
|
|
|
|
|
|
span {{_ 'showLabel-field-on-card'}}
|
|
|
|
|
|
2017-09-18 00:46:17 +02:00
|
|
|
button.primary.wide.left(type="button")
|
2017-08-27 22:31:24 +02:00
|
|
|
| {{_ 'save'}}
|
|
|
|
|
if _id
|
2017-09-18 00:46:17 +02:00
|
|
|
button.negate.wide.right.js-delete-custom-field(type="button")
|
2017-08-27 22:31:24 +02:00
|
|
|
| {{_ 'delete'}}
|
|
|
|
|
|
|
|
|
|
template(name="deleteCustomFieldPopup")
|
|
|
|
|
p {{_ "custom-field-delete-pop"}}
|
2018-06-14 14:10:30 +02:00
|
|
|
button.js-confirm.negate.full(type="submit") {{_ 'delete'}}
|