discourse/app/assets/javascripts/admin/addon/components/modal/form-template-validation-op...

26 lines
659 B
Handlebars

<DModal
class="form-templates__validation-options admin-form-template-validation-options-modal"
@title={{i18n "admin.form_templates.validations_modal.modal_title"}}
@closeModal={{@closeModal}}
>
<:body>
<table>
<thead>
<tr>
{{#each this.tableHeaders as |header|}}
<th>{{header}}</th>
{{/each}}
</tr>
</thead>
<tbody>
{{#each this.validations as |item|}}
<tr>
<td><pre>{{item.key}}</pre></td>
<td>{{item.type}}</td>
<td>{{item.description}}</td>
</tr>
{{/each}}
</tbody>
</table>
</:body>
</DModal>