content:"\a\a";
white-space: pre;
}
+
+ .page-form-complete .radio-buttons {
+ text-align: left;
+ padding: 5px 15px;
+ }
}
border-top-style: none;
}
}
+
+
+/**
+ * IMPORT
+ */
+#import-field {
+ margin: 15px 0;
+}
+
+@media screen and (max-width: 64em) {
+
+}
\ No newline at end of file
--- /dev/null
+<!DOCTYPE html>
+<html>
+<head>
+ {include="includes"}
+</head>
+<body>
+{include="page.header"}
+
+{$ratioLabel='5-12'}
+{$ratioLabelMobile='7-8'}
+{$ratioInput='7-12'}
+{$ratioInputMobile='1-8'}
+
+<form method="GET" action="" name="exportform" id="exportform">
+ <div class="pure-g">
+ <div class="pure-u-lg-1-4 pure-u-1-8"></div>
+ <div class="pure-u-lg-1-2 pure-u-3-4 page-form page-form-complete">
+ <div>
+ <h2>{"Export Database"|t}</h2>
+ </div>
+ <input type="hidden" name="do" value="export">
+ <input type="hidden" name="token" value="{$token}">
+
+ <div class="pure-g">
+ <div class="pure-u-lg-1-2 pure-u-1">
+ <div class="form-label">
+ <label><span class="label-name">{'Selection'|t}</span></label>
+ </div>
+ </div>
+ <div class="pure-u-lg-1-2 pure-u-1">
+ <div class="radio-buttons">
+ <div>
+ <input type="radio" name="selection" value="all" checked="true">
+ {'All'|t}
+ </div>
+ <div>
+ <input type="radio" name="selection" value="private">
+ {'Private'|t}
+ </div>
+ <div>
+ <input type="radio" name="selection" value="public">
+ {'Public'|t}
+ </div>
+ </div>
+ </div>
+ </div>
+
+ <div class="pure-g">
+ <div class="pure-u-lg-1-2 pure-u-7-8">
+ <div class="form-label">
+ <label for="prepend_note_url">
+ <span class="label-name">{'Prepend note permalinks with this Shaarli instance\'s URL'|t}</span><br>
+ <span class="label-desc">{'Useful to import bookmarks in a web browser'|t}</span>
+ </label>
+ </div>
+ </div>
+ <div class="pure-u-lg-1-2 pure-u-1-8">
+ <div class="form-input">
+ <input type="checkbox" name="prepend_note_url" id="prepend_note_url">
+ </div>
+ </div>
+ </div>
+
+ <div class="center">
+ <input type="submit" value="{'Export'|t}">
+ </div>
+ </div>
+ </div>
+</form>
+
+{include="page.footer"}
+</body>
+</html>
--- /dev/null
+<!DOCTYPE html>
+<html>
+<head>
+ {include="includes"}
+</head>
+<body>
+{include="page.header"}
+
+{$ratioLabel='5-12'}
+{$ratioLabelMobile='7-8'}
+{$ratioInput='7-12'}
+{$ratioInputMobile='1-8'}
+
+<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-8"></div>
+ <div class="pure-u-lg-1-2 pure-u-3-4 page-form page-form-complete">
+ <div>
+ <h2>{"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">
+ </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="true">
+ 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></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">
+ </div>
+ </div>
+ </div>
+
+ <div class="center">
+ <input type="submit" name="import_file" value="{'Import'|t}">
+ </div>
+ </div>
+ </div>
+</form>
+
+{include="page.footer"}
+</body>
+</html>
hiddenReturnurl.value = window.location.href;
}
-
+/**
+ * Autofocus text fields
+ */
var autofocusElements = document.querySelector('.autofocus');
-console.log(autofocusElements);
if (autofocusElements != null) {
autofocusElements.focus();
}
\ No newline at end of file
<input type="password" name="password" placeholder="{'Password'|t}" tabindex="21">
</div>
<div class="remember-me">
- <input type="checkbox" name="longlastingsession" id="longlastingsession" tabindex="22">
- <label for="longlastingsession">{'Remember me'|t}</label>
+ <input type="checkbox" name="longlastingsession" id="longlastingsessionform" tabindex="22">
+ <label for="longlastingsessionform">{'Remember me'|t}</label>
</div>
<div>
<input type="submit" value="{'Login'|t}" class="bigbutton" tabindex="23">
<div id="footer" class="pure-u-20-24">
<strong><a href="https://github.com/shaarli/Shaarli">Shaarli</a></strong> -
The personal, minimalist, super-fast, database free, bookmarking service by the Shaarli community -
- <a href="doc/Home.html" rel="nofollow">Help/documentation</a>
+ <a href="doc/Home.html" rel="nofollow">Documentation</a>
{loop="$plugins_footer.text"}
{$value}
{/loop}
</div>
<div id="content">
- <form method="post" name="loginform">
- <div id="header-login-form">
- <input type="text" name="login" placeholder="{'Username'|t}" tabindex="3">
- <input type="password" name="password" placeholder="{'Password'|t}" tabindex="5">
- <div class="remember-me">
- <input type="checkbox" name="longlastingsession" id="longlastingsession" tabindex="6">
- <label for="longlastingsession">{'Remember me'|t}</label>
+ {if="!isLoggedIn()"}
+ <form method="post" name="loginform">
+ <div id="header-login-form">
+ <input type="text" name="login" placeholder="{'Username'|t}" tabindex="3">
+ <input type="password" name="password" placeholder="{'Password'|t}" tabindex="5">
+ <div class="remember-me">
+ <input type="checkbox" name="longlastingsession" id="longlastingsession" tabindex="6">
+ <label for="longlastingsession">{'Remember me'|t}</label>
+ </div>
+ <input type="hidden" name="token" value="{$token}">
+ <input type="hidden" name="returnurl">
+ <input type="submit" value="Login" tabindex="7">
</div>
- <input type="hidden" name="token" value="{$token}">
- <input type="hidden" name="returnurl">
- <input type="submit" value="Login" tabindex="7">
- </div>
- </form>
+ </form>
+ {/if}
{if="!empty($newVersion) || !empty($versionError)"}
<div class="pure-g new-version-message pure-alert pure-alert-warning pure-alert-closable">