2023-09-14 20:14:44 +02:00
|
|
|
<DModal @closeModal={{@closeModal}} @title={{this.title}}>
|
|
|
|
{{#if loading}}
|
|
|
|
<LoadingSpinner size="large" />
|
|
|
|
{{else}}
|
|
|
|
<div class="edit-directory-columns-container">
|
2023-09-14 20:21:10 +02:00
|
|
|
{{#each @model.columns as |column|}}
|
2023-09-14 20:14:44 +02:00
|
|
|
<div class="edit-directory-column">
|
|
|
|
<div class="left-content">
|
|
|
|
<label class="column-name">
|
|
|
|
<Input @type="checkbox" @checked={{column.enabled}} />
|
|
|
|
{{directory-table-header-title
|
|
|
|
field=column.label
|
|
|
|
translated=true
|
|
|
|
}}
|
|
|
|
</label>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
{{/each}}
|
|
|
|
</div>
|
|
|
|
{{/if}}
|
|
|
|
<div class="modal-footer">
|
|
|
|
<DButton
|
|
|
|
class="btn-primary"
|
|
|
|
@label="directory.edit_columns.save"
|
|
|
|
@action={{action "save"}}
|
|
|
|
/>
|
|
|
|
|
|
|
|
<DButton
|
|
|
|
class="btn-secondary reset-to-default"
|
|
|
|
@label="directory.edit_columns.reset_to_default"
|
|
|
|
@action={{action "resetToDefault"}}
|
|
|
|
/>
|
|
|
|
</div>
|
2023-09-14 20:16:59 +02:00
|
|
|
</DModal>
|