summaryrefslogtreecommitdiffstats
path: root/module/web/templates/mobile
diff options
context:
space:
mode:
authorGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2012-08-17 16:11:13 +0200
committerGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2012-08-17 16:11:13 +0200
commit208b857c3f9b9233037847b9c5d98ab9e958ce19 (patch)
tree850f58379c38e7a91040f2a1415545954ab1036c /module/web/templates/mobile
parentMerge (diff)
downloadpyload-208b857c3f9b9233037847b9c5d98ab9e958ce19.tar.xz
renamed default_mobile to mobile
Diffstat (limited to 'module/web/templates/mobile')
-rw-r--r--module/web/templates/mobile/base.html84
-rw-r--r--module/web/templates/mobile/login.html49
2 files changed, 133 insertions, 0 deletions
diff --git a/module/web/templates/mobile/base.html b/module/web/templates/mobile/base.html
new file mode 100644
index 000000000..342a7eb63
--- /dev/null
+++ b/module/web/templates/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/mobile/my.css" rel="stylesheet" type="text/css"/>
+ <link href="static/css/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/libs/jquery.mobile-1.1.1.min.js"></script>
+ <script type="text/javascript" src="static/js/mobile/my.js"></script>
+ {% block head %}
+ {% endblock %}
+ </head>
+ <body>
+
+{% block content %}
+<!-- home -->
+<div data-role="page" id="page1" style="background: url('/static/img/default/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/mobile/login.html b/module/web/templates/mobile/login.html
new file mode 100644
index 000000000..37698cc5c
--- /dev/null
+++ b/module/web/templates/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" style="background: url('/static/img/default_mobile/fancy_deboss.png') repeat">
+ <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