summaryrefslogtreecommitdiffstats
path: root/module/web/templates/default/app_login.html
diff options
context:
space:
mode:
authorGravatar godofdream <soilfiction@gmail.com> 2012-08-16 17:48:39 +0200
committerGravatar godofdream <soilfiction@gmail.com> 2012-08-16 17:48:39 +0200
commitd8119f648e63a4728433e67e79d2a99296a8c2c1 (patch)
treeb965abb3d9597305828b3c44a82745c0ef549a4e /module/web/templates/default/app_login.html
parentimproved QueueLayout (diff)
downloadpyload-d8119f648e63a4728433e67e79d2a99296a8c2c1.tar.xz
Added Mobile WebIf, some Layouting
Diffstat (limited to 'module/web/templates/default/app_login.html')
-rw-r--r--module/web/templates/default/app_login.html49
1 files changed, 49 insertions, 0 deletions
diff --git a/module/web/templates/default/app_login.html b/module/web/templates/default/app_login.html
new file mode 100644
index 000000000..ecc41ee92
--- /dev/null
+++ b/module/web/templates/default/app_login.html
@@ -0,0 +1,49 @@
+{% extends 'default/app.html' %}
+{% block title %}{{_("Login")}} - {{super()}} {% endblock %}
+{% block content %}
+<!-- Login -->
+<div data-role="page" id="login">
+ <div data-theme="a" data-role="header">
+ <h3>
+ pyLoad {{_("Login")}}
+ </h3>
+ </div>
+ <div data-role="content" style="padding: 10px">
+ {% if logout %}
+ <div>
+ <b>{{_("You were successfully logged out.")}}</b>
+ </div>
+ {% endif %}
+ <form action="" method="POST" data-ajax="false">
+ <div data-role="fieldcontain">
+ <fieldset data-role="controlgroup">
+ <label for="textinput1">
+ {{_("Username")}}
+ </label>
+ <input name="username" id="textinput1" placeholder="" value="" type="text" />
+ </fieldset>
+ </div>
+ <div data-role="fieldcontain">
+ <fieldset data-role="controlgroup">
+ <label for="textinput2">
+ {{_("Password")}}
+ </label>
+ <input name="password" id="textinput2" placeholder="" value="" type="password" />
+ </fieldset>
+ </div>
+ <input type="submit" data-theme="a" value="Login" />
+ </form>
+ {% if errors %}
+ <div>
+ <p>{{_("Your username and password didn't match. Please try again.")}}</p>
+ {{ _("To reset your login data or add an user run:") }} <b> python pyLoadCore.py -u</b>
+ </div>
+ {% endif %}
+ <div>
+ <a href="/toggle_mobile" >
+ {{_("Desktop Version")}}
+ </a>
+ </div>
+ </div>
+</div>
+{% endblock %} \ No newline at end of file