<div id="add-link-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">Add link</h5>

                <button type="button" class="help-button" title="Help on links" data-help-page="Links">?</button>

                <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="add-link-form">
                <div class="modal-body">
                    <div class="form-group">
                        <label for="add-link-note-autocomplete">Note</label>

                        <div class="input-group">
                            <input id="add-link-note-autocomplete" class="form-control" placeholder="search for note by its name">
                        </div>
                    </div>

                    <div id="add-link-title-settings">
                        <div class="form-check add-link-title-radios">
                            <input class="form-check-input" type="radio" name="link-type" value="reference-link" id="add-link-reference-link" checked>
                            <label class="form-check-label" for="add-link-reference-link">
                                link title mirrors the note's current title
                            </label>
                        </div>
                        <div class="form-check add-link-title-radios">
                            <input class="form-check-input" type="radio" name="link-type" value="hyper-link" id="add-link-hyper-link">
                            <label class="form-check-label" for="add-link-hyper-link">
                                link title can be changed arbitrarily
                            </label>
                        </div>

                        <div class="form-group" id="add-link-title-form-group">
                            <br/>
                            <label for="link-title">Link title</label>
                            <input id="link-title" class="form-control" style="width: 100%;">
                        </div>
                    </div>
                </div>
                <div class="modal-footer">
                    <button type="submit" class="btn btn-primary">Add link <kbd>enter</kbd></button>
                </div>
            </form>
        </div>
    </div>
</div>
