aboutsummaryrefslogtreecommitdiff
path: root/import.html
diff options
context:
space:
mode:
authorneodarz <neodarz@neodarz.net>2017-05-24 15:23:11 +0200
committerneodarz <neodarz@neodarz.net>2017-05-24 15:23:11 +0200
commit96a660a21e47d43ebc473ce9d23e712c0e3e1261 (patch)
tree83f62bba16e51bfd64228b7d12076709bb7273f1 /import.html
downloadshaarli_ascii-96a660a21e47d43ebc473ce9d23e712c0e3e1261.tar.xz
shaarli_ascii-96a660a21e47d43ebc473ce9d23e712c0e3e1261.zip
initil release
Diffstat (limited to 'import.html')
-rw-r--r--import.html86
1 files changed, 86 insertions, 0 deletions
diff --git a/import.html b/import.html
new file mode 100644
index 0000000..1f04068
--- /dev/null
+++ b/import.html
@@ -0,0 +1,86 @@
+<!DOCTYPE html>
+<html>
+<head>
+ {include="includes"}
+</head>
+<body>
+{include="page.header"}
+
+<form method="POST" action="?do=import" enctype="multipart/form-data" name="uploadform" id="uploadform">
+ <div class="pure-g">
+ <div class="pure-u-lg-1-4 pure-u-1-24"></div>
+ <div class="pure-u-lg-1-2 pure-u-22-24 page-form page-form-complete">
+ <div>
+ <h2 class="window-title">{"Import Database"|t}</h2>
+ </div>
+
+ <input type="hidden" name="token" value="{$token}">
+ <div class="center" id="import-field">
+ <input type="hidden" name="MAX_FILE_SIZE" value="{$maxfilesize}">
+ <input type="file" name="filetoupload">
+ <p><br>Maximum size allowed: <strong>{$maxfilesizeHuman}</strong></p>
+ </div>
+
+ <div class="pure-g">
+ <div class="pure-u-lg-1-3 pure-u-1">
+ <div class="form-label">
+ <label><span class="label-name">{'Visibility'|t}</span></label>
+ </div>
+ </div>
+ <div class="pure-u-lg-2-3 pure-u-1">
+ <div class="radio-buttons">
+ <div>
+ <input type="radio" name="privacy" value="default" checked="checked">
+ Use values from the imported file, default to public
+ </div>
+ <div>
+ <input type="radio" name="privacy" value="private">
+ Import all bookmarks as private
+ </div>
+ <div>
+ <input type="radio" name="privacy" value="public">
+ Import all bookmarks as public
+ </div>
+ </div>
+ </div>
+ </div>
+
+ <div class="pure-g">
+ <div class="pure-u-lg-1-3 pure-u-7-8">
+ <div class="form-label">
+ <label for="overwrite">
+ <span class="label-name">{'Overwrite existing bookmarks'|t}</span><br>
+ <span class="label-desc">{'Duplicates based on URL'|t}</span>
+ </label>
+ </div>
+ </div>
+ <div class="pure-u-lg-2-3 pure-u-1-8">
+ <div class="form-input">
+ <input type="checkbox" name="overwrite" id="overwrite">
+ </div>
+ </div>
+ </div>
+
+ <div class="pure-g">
+ <div class="pure-u-lg-1-3 pure-u-1">
+ <div class="form-label">
+ <label for="default_tags"><span class="label-name">{'Add default tags'|t}</span></label>
+ </div>
+ </div>
+ <div class="pure-u-lg-2-3 pure-u-1">
+ <div class="form-input">
+ <input type="text" name="default_tags" id="default_tags" placeholder="{'Tag'|t}">
+ </div>
+ </div>
+ </div>
+
+ <div class="center">
+ <input type="submit" name="import_file" value="{'Import'|t}">
+ </div>
+ </div>
+ </div>
+</form>
+
+{include="page.footer"}
+</body>
+</html>