discourse/app/assets/javascripts/admin/templates/user-fields.hbs
Joffrey JAFFEUX f9648de897
DEV: upgrades from Ember 2.13 to Ember 3.5.1 (#6808)
Co-Authored-By: Bianca Nenciu <nbianca@users.noreply.github.com>
Co-Authored-By: David Taylor <david@taylorhq.com>
2019-01-10 11:06:01 +01:00

25 lines
816 B
Handlebars

<div class='user-fields'>
<h2>{{i18n 'admin.user_fields.title'}}</h2>
<p class="desc">{{i18n 'admin.user_fields.help'}}</p>
{{#if model}}
{{#each sortedFields as |uf|}}
{{admin-user-field-item userField=uf
fieldTypes=fieldTypes
firstField=sortedFields.firstObject
lastField=sortedFields.lastObject
destroyAction=(action "destroy")
moveUpAction=(action "moveUp")
moveDownAction=(action "moveDown")}}
{{/each}}
{{/if}}
{{d-button disabled=createDisabled
class="btn-primary"
action=(action "createField")
label="admin.user_fields.create"
icon="plus"}}
</div>