discourse/app/assets/javascripts/admin/addon/templates/user-fields.hbs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

25 lines
816 B
Handlebars
Raw Normal View History

<div class="user-fields">
<h2>{{i18n "admin.user_fields.title"}}</h2>
<p class="desc">{{i18n "admin.user_fields.help"}}</p>
{{#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
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>