mirror of
https://github.com/discourse/discourse.git
synced 2024-11-28 22:29:34 +08:00
ac2f5cbdab
Also updated it to remove deprecations and item controller
17 lines
472 B
Handlebars
17 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>
|