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
|
|
|
|
|
|
|
{{#if model}}
|
2016-12-02 00:33:33 +08:00
|
|
|
{{#each sortedFields as |uf|}}
|
2015-07-31 02:52:53 +08:00
|
|
|
{{admin-user-field-item userField=uf
|
|
|
|
fieldTypes=fieldTypes
|
2016-12-02 00:33:33 +08:00
|
|
|
firstField=sortedFields.firstObject
|
|
|
|
lastField=sortedFields.lastObject
|
2019-01-10 18:06:01 +08:00
|
|
|
destroyAction=(action "destroy")
|
|
|
|
moveUpAction=(action "moveUp")
|
|
|
|
moveDownAction=(action "moveDown")}}
|
2014-09-25 23:32:08 +08:00
|
|
|
{{/each}}
|
|
|
|
{{/if}}
|
|
|
|
|
2022-06-30 18:30:50 +08:00
|
|
|
<DButton @disabled={{createDisabled}} @class="btn-primary" @action={{action "createField"}} @label="admin.user_fields.create" @icon="plus" />
|
2015-07-28 02:22:12 +08:00
|
|
|
|
2021-04-13 08:22:00 +08:00
|
|
|
</div>
|