2014-09-25 23:32:08 +08:00
|
|
|
<div class="user-fields">
|
2014-12-09 05:35:49 +08:00
|
|
|
<h2>{{i18n "admin.user_fields.title"}}</h2>
|
2014-09-25 23:32:08 +08:00
|
|
|
|
2014-12-09 05:35:49 +08:00
|
|
|
<p class="desc">{{i18n "admin.user_fields.help"}}</p>
|
2014-09-25 23:32:08 +08:00
|
|
|
|
2022-07-06 01:41:31 +08:00
|
|
|
{{#if this.model}}
|
|
|
|
{{#each this.sortedFields as |uf|}}
|
2022-07-05 00:01:01 +08:00
|
|
|
<AdminUserFieldItem
|
|
|
|
@userField={{uf}}
|
2022-07-06 01:41:31 +08:00
|
|
|
@fieldTypes={{this.fieldTypes}}
|
2023-08-03 01:43:37 +08:00
|
|
|
@firstField={{this.firstField}}
|
|
|
|
@lastField={{this.lastField}}
|
2023-08-31 17:49:35 +08:00
|
|
|
@destroyAction={{this.destroyField}}
|
|
|
|
@moveUpAction={{this.moveUp}}
|
|
|
|
@moveDownAction={{this.moveDown}}
|
2022-07-05 00:01:01 +08:00
|
|
|
/>
|
2014-09-25 23:32:08 +08:00
|
|
|
{{/each}}
|
|
|
|
{{/if}}
|
|
|
|
|
2022-07-06 01:41:31 +08:00
|
|
|
<DButton
|
|
|
|
@disabled={{this.createDisabled}}
|
2023-08-31 17:49:35 +08:00
|
|
|
@action={{this.createField}}
|
2022-07-06 01:41:31 +08:00
|
|
|
@label="admin.user_fields.create"
|
|
|
|
@icon="plus"
|
2023-08-31 17:49:35 +08:00
|
|
|
class="btn-primary"
|
2022-07-06 01:41:31 +08:00
|
|
|
/>
|
2021-04-13 08:22:00 +08:00
|
|
|
</div>
|