<div id="import-dialog" class="modal fade mx-auto" tabindex="-1" role="dialog">
    <div class="modal-dialog modal-lg" role="document">
        <div class="modal-content">
            <div class="modal-header">
                <h5 class="modal-title">Import into note</h5>
                <button type="button" class="close" data-dismiss="modal" aria-label="Close">
                    <span aria-hidden="true">&times;</span>
                </button>
            </div>
            <form id="import-form">
                <div class="modal-body">
                    <div class="form-group">
                        <label for="import-file-upload-input"><strong>Choose import file</strong></label>

                        <input type="file" id="import-file-upload-input" class="form-control-file" multiple />

                        <p>Content of the file will be imported as child note(s) into <strong class="import-note-title"></strong>.
                    </div>

                    <div class="form-group">
                        <strong>Options:</strong>

                        <div class="checkbox">
                            <label data-toggle="tooltip" title="Trilium <code>.zip</code> export files can contain executable scripts which may contain harmful behavior. Safe import will deactivate automatic execution of all imported scripts. Uncheck &quot;Safe import&quot; only if the imported tar archive is supposed to contain executable scripts and you completely trust the contents of the import file.">
                                <input id="safe-import-checkbox" value="1" type="checkbox" checked>
                                <span>Safe import</span>
                            </label>
                        </div>

                        <div class="checkbox">
                            <label data-toggle="tooltip" title="If this is checked then Trilium will read <code>.zip</code>, <code>.enex</code> and <code>.opml</code> files and create notes from files insides those archives. If unchecked, then Trilium will attach the archives themselves to the note.">
                                <input id="explode-archives-checkbox" value="1" type="checkbox" checked>
                                <span>Read contents of <code>.zip</code>, <code>.enex</code> and <code>.opml</code> archives.</span>
                            </label>
                        </div>

                        <div class="checkbox" id="shrink-images-wrapper">
                            <label data-toggle="tooltip" title="<p>If you check this option, Trilium will attempt to shrink the imported images by scaling and optimization which may affect the perceived image quality. If unchecked, images will be imported without changes.</p><p>This doesn't apply to <code>.zip</code> imports with metadata since it is assumed these files are already optimized.</p>">
                                <input id="shrink-images-checkbox" value="1" type="checkbox" checked> <span>Shrink images</span>
                            </label>
                        </div>

                        <div class="checkbox">
                            <label>
                                <input id="text-imported-as-text-checkbox" value="1" type="checkbox" checked>

                                Import HTML, Markdown and TXT as text notes if it's unclear from metadata
                            </label>
                        </div>

                        <div class="checkbox">
                            <label>
                                <input id="code-imported-as-code-checkbox" value="1" type="checkbox" checked> Import recognized code files (e.g. <code>.json</code>) as code notes if it's unclear from metadata
                            </label>
                        </div>

                        <div class="checkbox">
                            <label>
                                <input id="replace-underscores-with-spaces-checkbox" value="1" type="checkbox" checked>

                                Replace underscores with spaces in imported note names
                            </label>
                        </div>
                    </div>
                </div>
                <div class="modal-footer">
                    <button class="btn btn-primary" id="import-button">Import</button>
                </div>
            </form>
        </div>
    </div>
</div>
