2022-07-11 18:05:50 -04:00
|
|
|
<DModalBody
|
|
|
|
@title={{theme-prefix "discourse_table_builder.edit.modal.title"}}
|
|
|
|
@class="table-editor-modal"
|
|
|
|
>
|
|
|
|
{{! TODO: Parse .md to json and fill table }}
|
2022-07-12 18:27:03 -04:00
|
|
|
{{! TODO: Fix instances where multiple tables in a single post }}
|
|
|
|
|
|
|
|
{{! TODO better id name }}
|
2022-07-13 18:42:13 -04:00
|
|
|
<div id="spreadsheet" tabindex="1" class="jexcel_container"></div>
|
2022-07-11 18:05:50 -04:00
|
|
|
|
|
|
|
</DModalBody>
|
|
|
|
|
|
|
|
<div class="modal-footer">
|
2022-07-13 18:42:13 -04:00
|
|
|
{{! TODO Fix submitOnEnter property always true before adding back "btn-primary" class to edit button}}
|
2022-07-11 18:05:50 -04:00
|
|
|
<DButton
|
2022-07-13 18:42:13 -04:00
|
|
|
@class="btn btn-edit-table"
|
2022-07-11 18:05:50 -04:00
|
|
|
@label={{theme-prefix "discourse_table_builder.edit.modal.create"}}
|
2022-07-12 18:27:03 -04:00
|
|
|
@icon="pencil-alt"
|
2022-07-11 18:05:50 -04:00
|
|
|
@action={{action "editTable"}}
|
|
|
|
/>
|
|
|
|
|
|
|
|
<DButton
|
|
|
|
@class="btn-flat"
|
|
|
|
@label={{theme-prefix "discourse_table_builder.edit.modal.cancel"}}
|
|
|
|
@action={{action "cancelTableEdit"}}
|
|
|
|
/>
|
|
|
|
</div>
|