converted move to dialog to new pattern

This commit is contained in:
zadam
2022-06-16 14:08:33 +02:00
parent 683b4ac73a
commit 40bbe380d3
6 changed files with 105 additions and 96 deletions

View File

@@ -26,7 +26,6 @@
<%- include('dialogs/info.ejs') %>
<%- include('dialogs/prompt.ejs') %>
<%- include('dialogs/confirm.ejs') %>
<%- include('dialogs/move_to.ejs') %>
<%- include('dialogs/delete_notes.ejs') %>
<script type="text/javascript">

View File

@@ -1,31 +0,0 @@
<div id="move-to-dialog" class="modal mx-auto" tabindex="-1" role="dialog">
<div class="modal-dialog modal-lg" style="max-width: 1000px" role="document">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title mr-auto">Move notes to ...</h5>
<button type="button" class="close" data-dismiss="modal" aria-label="Close" style="margin-left: 0 !important;">
<span aria-hidden="true">&times;</span>
</button>
</div>
<form id="move-to-form">
<div class="modal-body">
<h5>Notes to move</h5>
<ul id="move-to-note-list" style="max-height: 200px; overflow: auto;"></ul>
<div class="form-group">
<label for="move-to-note-autocomplete">Target parent note</label>
<div class="input-group">
<input id="move-to-note-autocomplete" class="form-control" placeholder="search for note by its name">
</div>
</div>
</div>
<div class="modal-footer">
<button type="submit" class="btn btn-primary">Move to selected note <kbd>enter</kbd></button>
</div>
</form>
</div>
</div>
</div>