summaryrefslogtreecommitdiffstats
path: root/module/web/templates/default_mobile
diff options
context:
space:
mode:
authorGravatar godofdream <soilfiction@gmail.com> 2012-08-17 01:29:03 +0200
committerGravatar godofdream <soilfiction@gmail.com> 2012-08-17 01:29:03 +0200
commit7bc7de7332670f692eda576787e671c2eba0e5bb (patch)
tree594b70c9b59794d05d01cd7939bef750a8ff51b4 /module/web/templates/default_mobile
parentMerge (diff)
downloadpyload-7bc7de7332670f692eda576787e671c2eba0e5bb.tar.xz
added division into default template and mobile template, added Base site
Diffstat (limited to 'module/web/templates/default_mobile')
-rw-r--r--module/web/templates/default_mobile/base.html84
-rw-r--r--module/web/templates/default_mobile/login.html49
2 files changed, 133 insertions, 0 deletions
diff --git a/module/web/templates/default_mobile/base.html b/module/web/templates/default_mobile/base.html
new file mode 100644
index 000000000..d2fec8f2e
--- /dev/null
+++ b/module/web/templates/default_mobile/base.html
@@ -0,0 +1,84 @@
+<!DOCTYPE html>
+<html>
+ <head>
+ <meta charset="utf-8" />
+ <meta name="viewport" content="width=device-width, initial-scale=1" />
+ <title>{% block title %}pyLoad {{ _("Webinterface") }}{% endblock %}</title>
+ <link href="static/css/default_mobile/my.css" rel="stylesheet" type="text/css"/>
+ <link href="static/css/default_mobile/jquery.mobile-1.1.1.min.css" rel="stylesheet" type="text/css"/>
+ <script type="text/javascript" src="static/js/libs/jquery-1.8.0.min.js"></script>
+ <script type="text/javascript" src="static/js/default_mobile/jquery.mobile-1.1.1.min.js"></script>
+ <script type="text/javascript" src="static/js/default_mobile/my.js"></script>
+ {% block head %}
+ {% endblock %}
+ </head>
+ <body>
+
+{% block content %}
+<!-- home -->
+<div data-role="page" id="page1" style="background: url('/static/img/default_mobile/fancy_deboss.png') repeat">
+ <div data-role="content" style="padding: 1%">
+ <div data-role="navbar" data-iconpos="bottom">
+ <ul>
+ <li>
+ <a href="#page1" data-theme="a" data-icon="home" class="ui-btn-active ui-state-persist">
+ Home
+ </a>
+ </li>
+ <li>
+ <a href="#page1" data-theme="a" data-icon="plus">
+ Add
+ </a>
+ </li>
+ <li>
+ <a href="#page1" data-theme="a" data-icon="gear">
+ Settings
+ </a>
+ </li>
+ <li>
+ <a href="/logout" data-ajax="false" data-theme="a" data-icon="arrow-r">
+ Logout
+ </a>
+ </li>
+ </ul>
+ </div>
+ <div data-role="collapsible-set" data-theme="a" data-content-theme="d">
+ <div data-role="collapsible" data-collapsed="true">
+ <h3>
+ Package1
+ </h3>
+ </div>
+ <div data-role="collapsible" data-collapsed="true">
+ <h3>
+ Package2
+ </h3>
+ </div>
+ <div data-role="collapsible" data-collapsed="false">
+ <h3>
+ Package3
+ </h3>
+ <ul data-role="listview" data-divider-theme="b" data-inset="true">
+ <li data-theme="c">
+ <a href="#page1" data-transition="slide">
+ File1
+ </a>
+ </li>
+ <li data-theme="c">
+ <a href="#page1" data-transition="slide">
+ File2
+ </a>
+ </li>
+ <li data-theme="c">
+ <a href="#page1" data-transition="slide">
+ File3
+ </a>
+ </li>
+ </ul>
+ </div>
+ </div>
+ </div>
+</div>
+{% endblock content %}
+
+ </body>
+</html> \ No newline at end of file
diff --git a/module/web/templates/default_mobile/login.html b/module/web/templates/default_mobile/login.html
new file mode 100644
index 000000000..b3cf4f691
--- /dev/null
+++ b/module/web/templates/default_mobile/login.html
@@ -0,0 +1,49 @@
+{% extends 'default_mobile/base.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="/login" 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" data-ajax="false">
+ {{_("Desktop Version")}}
+ </a>
+ </div>
+ </div>
+</div>
+{% endblock %} \ No newline at end of file