2022-07-14 11:56:11 -04:00
|
|
|
<DModalBody
|
|
|
|
@title={{theme-prefix "discourse_table_builder.edit.modal.title"}}
|
|
|
|
@class="table-editor-modal"
|
|
|
|
>
|
2022-07-16 14:00:05 -04:00
|
|
|
<div class="edit-reason">
|
|
|
|
<DButton
|
|
|
|
@icon="info-circle"
|
|
|
|
@title={{theme-prefix
|
|
|
|
"discourse_table_builder.edit.modal.trigger_reason"
|
|
|
|
}}
|
|
|
|
@action={{action "showEditReasonField"}}
|
|
|
|
@class="btn btn-icon btn-flat no-text btn-edit-reason"
|
|
|
|
/>
|
|
|
|
{{#if showEditReason}}
|
|
|
|
<TextField
|
|
|
|
@value={{this.editReason}}
|
|
|
|
@placeholderKey={{theme-prefix
|
|
|
|
"discourse_table_builder.edit.modal.reason"
|
|
|
|
}}
|
|
|
|
/>
|
|
|
|
{{/if}}
|
|
|
|
</div>
|
|
|
|
<div id="spreadsheet" tabindex="1" class="jexcel_container"></div>
|
2022-07-14 11:56:11 -04:00
|
|
|
</DModalBody>
|
|
|
|
|
|
|
|
<div class="modal-footer">
|
|
|
|
<DButton
|
|
|
|
@class="btn-edit-table"
|
|
|
|
@label={{theme-prefix "discourse_table_builder.edit.modal.create"}}
|
|
|
|
@icon="pencil-alt"
|
|
|
|
@action={{action "editTable"}}
|
|
|
|
/>
|
|
|
|
<DButton
|
|
|
|
@class="btn-flat"
|
|
|
|
@label={{theme-prefix "discourse_table_builder.edit.modal.cancel"}}
|
|
|
|
@action={{action "cancelTableEdit"}}
|
|
|
|
/>
|
2022-07-18 14:18:58 -04:00
|
|
|
</div>
|