trilium/src/views/dialogs/add_link.ejs

54 lines
2.7 KiB
Plaintext
Raw Normal View History

2018-11-08 00:16:33 +08:00
<div id="add-link-dialog" class="modal 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 mr-auto">Add note link</h5>
2018-12-23 17:57:40 +08:00
<button type="button" class="help-button" title="Help on links" data-help-page="Links">?</button>
2018-12-23 17:57:40 +08:00
<button type="button" class="close" data-dismiss="modal" aria-label="Close" style="margin-left: 0 !important;">
<span aria-hidden="true">&times;</span>
</button>
</div>
2018-12-23 17:57:40 +08:00
<form id="add-link-form">
<div class="modal-body">
<div id="add-link-type-div" class="radio">
<label title="Add HTML link to the selected note at cursor in active note">
2018-12-23 17:57:40 +08:00
<input type="radio" name="add-link-type" value="html"/>
add normal HTML link</label>
<label title="Add selected note as a child of active note">
<input type="radio" name="add-link-type" value="selected-to-active"/>
add selected note to active note</label>
2018-12-23 17:57:40 +08:00
<label title="Add active note as a child of the selected note">
<input type="radio" name="add-link-type" value="active-to-selected"/>
add active note to selected note</label>
2018-12-23 17:57:40 +08:00
</div>
<div class="form-group">
<label for="note-autocomplete">Note</label>
<div class="input-group">
<input id="note-autocomplete" class="form-control" placeholder="search for note by its name">
</div>
</div>
<div class="form-group" id="add-link-title-form-group">
<label for="link-title">Link title</label>
<input id="link-title" class="form-control" style="width: 100%;">
</div>
<div class="form-group" id="add-link-prefix-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" style="display: flex; justify-content: space-between;">
<button type="submit" class="btn btn-primary">Add note link <kbd>enter</kbd></button>
</div>
</form>
</div>
</div>
</div>