select template when creating note, closes #2813

This commit is contained in:
zadam
2022-06-02 14:16:49 +02:00
parent b204014a11
commit 93f0596b16
12 changed files with 214 additions and 47 deletions

View File

@@ -41,6 +41,7 @@
<%- include('dialogs/delete_notes.ejs') %>
<%- include('dialogs/password_not_set.ejs') %>
<%- include('dialogs/bulk_assign_attributes.ejs') %>
<%- include('dialogs/note_type_chooser.ejs') %>
<script type="text/javascript">
global = globalThis; /* fixes https://github.com/webpack/webpack/issues/10035 */

View File

@@ -0,0 +1,34 @@
<style>
#note-type-dropdown {
position: relative;
font-size: large;
padding: 20px;
width: 100%;
margin-top: 15px;
max-height: 80vh;
overflow: auto;
}
</style>
<div id="note-type-chooser-dialog" class="modal mx-auto" tabindex="-1" role="dialog">
<div class="modal-dialog" style="max-width: 500px;" role="document">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title mr-auto">Choose note type</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>
<div class="modal-body">
Choose note type / template of the new note:
<div class="dropdown">
<button id="note-type-dropdown-trigger" type="button" style="display: none;" data-toggle="dropdown">Dropdown trigger</button>
<div id="note-type-dropdown" class="dropdown-menu"></div>
</div>
</div>
</div>
</div>
</div>