0
0
Fork 1
Spiegel von https://github.com/paviliondev/discourse-custom-wizard.git synchronisiert 2024-11-15 06:12:54 +01:00
discourse-custom-wizard/assets/javascripts/discourse/templates/admin-wizards-custom-fields.hbs

41 Zeilen
919 B
Handlebars

2020-10-17 03:31:07 +02:00
<div class="admin-wizard-controls">
2021-04-12 16:19:53 +02:00
<h3>{{i18n "admin.wizard.custom_field.nav_label"}}</h3>
2020-10-20 07:40:23 +02:00
<div class="buttons">
{{d-button
label="admin.wizard.custom_field.add"
icon="plus"
action="addField"}}
</div>
2020-10-17 03:31:07 +02:00
</div>
{{wizard-message
2020-11-10 01:56:11 +01:00
key=messageKey
opts=messageOpts
type=messageType
url=documentationUrl
2021-04-12 16:19:53 +02:00
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>
2021-04-12 16:19:53 +02:00
<thead>
<tr>
{{#each fieldKeys as |key|}}
<th>{{i18n (concat "admin.wizard.custom_field." key ".label")}}</th>
{{/each}}
<th></th>
</tr>
</thead>
<tbody>
{{#each customFields as |field|}}
{{custom-field-input
field=field
removeField=(action "removeField")
saveField=(action "saveField")}}
2020-10-17 03:31:07 +02:00
{{/each}}
2021-04-12 16:19:53 +02:00
</tbody>
2020-10-17 03:31:07 +02:00
</table>
{{/if}}
</div>