1
0
Fork 0
discourse-custom-wizard-unl.../assets/javascripts/discourse/templates/admin-wizards-custom-fields.hbs

44 Zeilen
996 B
Handlebars

2020-10-17 03:31:07 +02:00
<div class="admin-wizard-controls">
2020-10-20 07:40:23 +02:00
<h3>{{i18n 'admin.wizard.custom_field.nav_label'}}</h3>
2020-10-20 07:40:23 +02:00
<div class="buttons">
{{#if saving}}
{{loading-spinner size="small"}}
{{else}}
{{#if saveIcon}}
{{d-icon saveIcon}}
{{/if}}
{{/if}}
{{d-button
label="admin.wizard.custom_field.save"
action="saveFields"}}
{{d-button
label="admin.wizard.custom_field.add"
icon="plus"
action="addField"}}
</div>
2020-10-17 03:31:07 +02:00
</div>
{{wizard-message
key='create'
url=documentationUrl
component='custom_fields'}}
2020-10-17 03:31:07 +02:00
<div class="admin-wizard-container">
2020-10-20 07:40:23 +02:00
{{#if customFields}}
2020-10-17 03:31:07 +02:00
<table>
<tr>
{{#each fieldKeys as |key|}}
2020-10-20 07:40:23 +02:00
<th>{{i18n (concat "admin.wizard.custom_field." key ".label")}}</th>
2020-10-17 03:31:07 +02:00
{{/each}}
2020-10-20 07:40:23 +02:00
<th></th>
2020-10-17 03:31:07 +02:00
</tr>
{{#each customFields as |field|}}
2020-10-20 07:40:23 +02:00
{{custom-field-input
field=field
removeField=(action 'removeField')}}
2020-10-17 03:31:07 +02:00
{{/each}}
</table>
{{/if}}
</div>