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
|
|
|
|
2022-07-05 13:41:31 -04:00
|
|
|
{{#if this.model}}
|
|
|
|
{{#each this.sortedFields as |uf|}}
|
2022-07-04 12:01:01 -04:00
|
|
|
<AdminUserFieldItem
|
|
|
|
@userField={{uf}}
|
2022-07-05 13:41:31 -04:00
|
|
|
@fieldTypes={{this.fieldTypes}}
|
|
|
|
@firstField={{this.sortedFields.firstObject}}
|
|
|
|
@lastField={{this.sortedFields.lastObject}}
|
2023-03-15 05:42:12 -04:00
|
|
|
@destroyAction={{action "destroyField"}}
|
2022-07-04 12:01:01 -04:00
|
|
|
@moveUpAction={{action "moveUp"}}
|
|
|
|
@moveDownAction={{action "moveDown"}}
|
|
|
|
/>
|
2014-09-25 11:32:08 -04:00
|
|
|
{{/each}}
|
|
|
|
{{/if}}
|
|
|
|
|
2022-07-05 13:41:31 -04:00
|
|
|
<DButton
|
|
|
|
@disabled={{this.createDisabled}}
|
|
|
|
@class="btn-primary"
|
|
|
|
@action={{action "createField"}}
|
|
|
|
@label="admin.user_fields.create"
|
|
|
|
@icon="plus"
|
|
|
|
/>
|
2015-07-27 14:22:12 -04:00
|
|
|
|
2021-04-12 20:22:00 -04:00
|
|
|
</div>
|