2014-09-25 11:32:08 -04:00
|
|
|
<div class="user-fields">
|
2014-12-08 16:35:49 -05:00
|
|
|
<h2>{{i18n "admin.user_fields.title"}}</h2>
|
2014-09-25 11:32:08 -04:00
|
|
|
|
2014-12-08 16:35:49 -05:00
|
|
|
<p class="desc">{{i18n "admin.user_fields.help"}}</p>
|
2014-09-25 11:32:08 -04:00
|
|
|
|
|
|
|
{{#if model}}
|
2016-12-01 11:33:33 -05:00
|
|
|
{{#each sortedFields as |uf|}}
|
2015-07-30 14:52:53 -04:00
|
|
|
{{admin-user-field-item userField=uf
|
|
|
|
fieldTypes=fieldTypes
|
2016-12-01 11:33:33 -05:00
|
|
|
firstField=sortedFields.firstObject
|
|
|
|
lastField=sortedFields.lastObject
|
2019-01-10 05:06:01 -05:00
|
|
|
destroyAction=(action "destroy")
|
|
|
|
moveUpAction=(action "moveUp")
|
|
|
|
moveDownAction=(action "moveDown")}}
|
2014-09-25 11:32:08 -04:00
|
|
|
{{/each}}
|
|
|
|
{{/if}}
|
|
|
|
|
2015-07-27 14:22:12 -04:00
|
|
|
{{d-button disabled=createDisabled
|
|
|
|
class="btn-primary"
|
2019-01-10 05:06:01 -05:00
|
|
|
action=(action "createField")
|
2015-07-27 14:22:12 -04:00
|
|
|
label="admin.user_fields.create"
|
|
|
|
icon="plus"}}
|
|
|
|
|
2021-02-10 15:53:18 -05:00
|
|
|
</div>
|