mirror of
https://github.com/zadam/trilium.git
synced 2025-11-14 09:15:50 +01:00
separate cloning dialog
This commit is contained in:
@@ -175,6 +175,7 @@
|
||||
<% include dialogs/help.ejs %>
|
||||
<% include dialogs/note_info.ejs %>
|
||||
<% include dialogs/link_map.ejs %>
|
||||
<% include dialogs/clone_to.ejs %>
|
||||
</div>
|
||||
|
||||
<script type="text/javascript">
|
||||
|
||||
@@ -13,10 +13,10 @@
|
||||
<form id="add-link-form">
|
||||
<div class="modal-body">
|
||||
<div class="form-group">
|
||||
<label for="note-autocomplete">Note</label>
|
||||
<label for="add-link-note-autocomplete">Note</label>
|
||||
|
||||
<div class="input-group">
|
||||
<input id="note-autocomplete" class="form-control" placeholder="search for note by its name">
|
||||
<input id="add-link-note-autocomplete" class="form-control" placeholder="search for note by its name">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -25,7 +25,7 @@
|
||||
<input id="link-title" class="form-control" style="width: 100%;">
|
||||
</div>
|
||||
</div>
|
||||
<div class="modal-footer" style="display: flex; justify-content: space-between;">
|
||||
<div class="modal-footer">
|
||||
<button type="submit" class="btn btn-primary">Add note link <kbd>enter</kbd></button>
|
||||
</div>
|
||||
</form>
|
||||
|
||||
34
src/views/dialogs/clone_to.ejs
Normal file
34
src/views/dialogs/clone_to.ejs
Normal file
@@ -0,0 +1,34 @@
|
||||
<div id="clone-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">Clone note to ...</h5>
|
||||
|
||||
<button type="button" class="help-button" title="Help on links" data-help-page="Cloning-notes">?</button>
|
||||
|
||||
<button type="button" class="close" data-dismiss="modal" aria-label="Close" style="margin-left: 0 !important;">
|
||||
<span aria-hidden="true">×</span>
|
||||
</button>
|
||||
</div>
|
||||
<form id="clone-to-form">
|
||||
<div class="modal-body">
|
||||
<div class="form-group">
|
||||
<label for="clone-to-note-autocomplete">Target parent note</label>
|
||||
|
||||
<div class="input-group">
|
||||
<input id="clone-to-note-autocomplete" class="form-control" placeholder="search for note by its name">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group" title="Cloned note will be shown in note tree with given prefix">
|
||||
<label for="clone-prefix">Prefix (optional)</label>
|
||||
<input id="clone-prefix" class="form-control" style="width: 100%;">
|
||||
</div>
|
||||
</div>
|
||||
<div class="modal-footer">
|
||||
<button type="submit" class="btn btn-primary">Clone to selected note <kbd>enter</kbd></button>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
Reference in New Issue
Block a user