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"
|
2023-07-10 08:55:54 +02:00
|
|
|
action=(action "addField")
|
|
|
|
}}
|
2020-10-20 07:40:23 +02:00
|
|
|
</div>
|
2020-10-17 03:31:07 +02:00
|
|
|
</div>
|
|
|
|
|
2020-11-08 04:24:20 +01:00
|
|
|
{{wizard-message
|
2024-11-22 16:45:50 +01:00
|
|
|
key=this.messageKey
|
|
|
|
opts=this.messageOpts
|
|
|
|
type=this.messageType
|
|
|
|
url=this.documentationUrl
|
2023-07-10 08:55:54 +02:00
|
|
|
component="custom_fields"
|
|
|
|
}}
|
2020-11-08 04:24:20 +01:00
|
|
|
|
2020-10-17 03:31:07 +02:00
|
|
|
<div class="admin-wizard-container">
|
2024-11-22 16:45:50 +01:00
|
|
|
{{#if this.customFields}}
|
2020-10-17 03:31:07 +02:00
|
|
|
<table>
|
2021-04-12 16:19:53 +02:00
|
|
|
<thead>
|
|
|
|
<tr>
|
2024-11-22 16:45:50 +01:00
|
|
|
{{#each this.fieldKeys as |key|}}
|
2021-04-12 16:19:53 +02:00
|
|
|
<th>{{i18n (concat "admin.wizard.custom_field." key ".label")}}</th>
|
|
|
|
{{/each}}
|
|
|
|
<th></th>
|
|
|
|
</tr>
|
|
|
|
</thead>
|
|
|
|
<tbody>
|
2024-11-22 16:45:50 +01:00
|
|
|
{{#each this.customFields as |field|}}
|
2021-04-12 16:19:53 +02:00
|
|
|
{{custom-field-input
|
|
|
|
field=field
|
|
|
|
removeField=(action "removeField")
|
2023-07-10 08:55:54 +02:00
|
|
|
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}}
|
2023-07-10 08:55:54 +02:00
|
|
|
</div>
|