trilium/src/views/dialogs/sql_console.ejs

29 lines
1.1 KiB
Text
Raw Normal View History

<div id="sql-console-dialog" class="modal fade mx-auto" tabindex="-1" role="dialog">
2018-12-23 17:57:40 +08:00
<div class="modal-dialog modal-lg" style="max-width: 1000px;" role="document">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title">SQL console</h5>
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
<span aria-hidden="true">&times;</span>
</button>
</div>
<div class="modal-body">
<div>
Tables:
<span id="sql-console-tables"></span>
</div>
2018-12-23 17:57:40 +08:00
<div id="sql-console-query"></div>
2018-12-23 17:57:40 +08:00
<div style="text-align: center">
<button class="btn btn-danger" id="sql-console-execute">Execute <kbd>CTRL+ENTER</kbd></button>
</div>
2018-12-23 17:57:40 +08:00
<table id="sql-console-results" class="table table-striped" style="overflow: scroll; width: 100%;">
<thead></thead>
<tbody></tbody>
</table>
</div>
</div>
</div>
</div>