mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-12-02 20:07:52 -05:00
ac2f5cbdab
Also updated it to remove deprecations and item controller
16 lines
472 B
Handlebars
16 lines
472 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 model as |uf|}}
|
|
{{admin-user-field-item userField=uf fieldTypes=fieldTypes destroyAction="destroy"}}
|
|
{{/each}}
|
|
{{/if}}
|
|
|
|
<button {{bind-attr disabled="createDisabled"}} class='btn btn-primary' {{action "createField"}}>
|
|
{{fa-icon "plus"}}
|
|
{{i18n 'admin.user_fields.create'}}
|
|
</button>
|
|
</div>
|