discourse-table-builder/javascripts/discourse/templates/modal/table-editor-modal.hbs

27 lines
813 B
Handlebars
Raw Normal View History

<DModalBody
@title={{theme-prefix "discourse_table_builder.edit.modal.title"}}
@class="table-editor-modal"
>
{{! TODO: Parse .md to json and fill table }}
{{! TODO: Fix instances where multiple tables in a single post }}
{{! TODO better id name }}
<div id="spreadsheet" tabindex="1" class="jexcel_container"></div>
</DModalBody>
<div class="modal-footer">
{{! TODO Fix submitOnEnter property always true before adding back "btn-primary" class to edit button}}
<DButton
@class="btn 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"}}
/>
</div>