created note info dialog, closes #408

This commit is contained in:
zadam
2019-02-14 20:56:33 +01:00
parent dad47d115f
commit 2a2319d434
6 changed files with 82 additions and 7 deletions

View File

@@ -199,6 +199,7 @@
<a class="dropdown-item" id="show-source-button" data-bind="css: { disabled: type() != 'text' && type() != 'code' && type() != 'relation-map' && type() != 'search' }">Note source</a>
<a class="dropdown-item" id="upload-file-button">Upload file</a>
<a class="dropdown-item" id="export-note-button" data-bind="css: { disabled: type() != 'text' }">Export note</a>
<a class="dropdown-item" id="show-note-info-button">Note info</a>
</div>
</div>
</div>
@@ -226,6 +227,7 @@
<% include dialogs/prompt.ejs %>
<% include dialogs/confirm.ejs %>
<% include dialogs/help.ejs %>
<% include dialogs/note_info.ejs %>
</div>
<webview class="electron-in-page-search-window" nodeintegration disablewebsecurity src="libraries/electron-in-page-search/search-window.html"></webview>

View File

@@ -0,0 +1,39 @@
<div id="note-info-dialog" class="modal fade mx-auto" tabindex="-1" role="dialog">
<div class="modal-dialog" role="document">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title">Note info</h5>
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
<span aria-hidden="true">&times;</span>
</button>
</div>
<div class="modal-body">
<table id="note-info-table">
<tr>
<th>Note ID</th>
<td id="note-info-note-id"></td>
</tr>
<tr>
<th>Date created</th>
<td id="note-info-date-created"></td>
</tr>
<tr>
<th>Date modified</th>
<td id="note-info-date-modified"></td>
</tr>
<tr>
<th>Type</th>
<td id="note-info-type"></td>
</tr>
<tr>
<th>MIME</th>
<td id="note-info-mime"></td>
</tr>
</table>
</div>
<div class="modal-footer">
<button class="btn btn-primary" id="note-info-ok-button">OK</button>
</div>
</div>
</div>
</div>