summaryrefslogtreecommitdiffstats
path: root/module/web/templates
diff options
context:
space:
mode:
authorGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2013-03-31 13:11:58 +0200
committerGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2013-03-31 13:11:58 +0200
commit53bc0477f9b0217c87676103361b1633e9b12f19 (patch)
treec6461ab1c292b39e49e1a5924b75761b588b25ba /module/web/templates
parentseparate addon and plugin configs (diff)
downloadpyload-53bc0477f9b0217c87676103361b1633e9b12f19.tar.xz
added account page
Diffstat (limited to 'module/web/templates')
-rw-r--r--module/web/templates/default/accounts.html45
-rwxr-xr-xmodule/web/templates/default/backbone/accountDialog.html40
-rwxr-xr-xmodule/web/templates/default/backbone/pluginChooserDialog.html2
-rw-r--r--module/web/templates/default/base.html1
-rw-r--r--module/web/templates/default/settings.html4
5 files changed, 89 insertions, 3 deletions
diff --git a/module/web/templates/default/accounts.html b/module/web/templates/default/accounts.html
new file mode 100644
index 000000000..06b81c330
--- /dev/null
+++ b/module/web/templates/default/accounts.html
@@ -0,0 +1,45 @@
+{% extends 'default/base.html' %}
+
+{% block title %}{{ _("Accounts") }} - {{ super() }} {% endblock %}
+{% block subtitle %}{{ _("Accounts") }}
+{% endblock %}
+
+{% block css %}
+ <link href="static/css/default/accounts.less" rel="stylesheet/less" type="text/css" media="screen"/>
+{% endblock %}
+
+{% block require %}
+ App.initAccountView();
+{% endblock %}
+
+{% block head %}
+ <script type="text/template" id="template-account">
+ </script>
+{% endblock %}
+
+{% block actionbar %}
+ <span class="span9">
+ <button class="btn btn-small btn-blue btn-add">Add Account</button>
+ </span>
+{% endblock %}
+
+{% block content %}
+ {# TODO: responsive layout instead of table #}
+ <div class="span10 offset2">
+ <table class="table table-striped">
+ <thead>
+ <tr>
+ <th>Name</th>
+ <th>Plugin</th>
+ <th>Valid</th>
+ <th>Premium</th>
+ <th>Traffic</th>
+ <th>Shared</th>
+ <th>Activated</th>
+ </tr>
+ </thead>
+ <tbody id="account-content">
+ </tbody>
+ </table>
+ </div>
+{% endblock %} \ No newline at end of file
diff --git a/module/web/templates/default/backbone/accountDialog.html b/module/web/templates/default/backbone/accountDialog.html
new file mode 100755
index 000000000..dbc88e66d
--- /dev/null
+++ b/module/web/templates/default/backbone/accountDialog.html
@@ -0,0 +1,40 @@
+{% extends 'default/backbone/modal.html' %}
+{% block header %}
+ Add an account
+{% endblock %}
+{% block content %}
+ <form class="form-horizontal" action="#">
+ <legend>
+ Please enter your account data
+ </legend>
+ <div class="control-group">
+ <label class="control-label" for="pluginSelect">
+ Plugin
+ </label>
+ <div class="controls">
+ <input type="hidden" id="pluginSelect">
+ </div>
+ </div>
+ <div class="control-group">
+ <label class="control-label" for="login">
+ Loginname
+ </label>
+ <div class="controls">
+ <input type="text" id="login">
+ </div>
+ </div>
+ <div class="control-group">
+ <label class="control-label" for="password">
+ Password
+ </label>
+ <div class="controls">
+ <input type="password" id="password">
+ </div>
+ </div>
+
+ </form>
+{% endblock %}
+{% block buttons %}
+ <a href="#" class="btn btn-success btn-add">Add</a>
+ <a href="#" class="btn btn-close">Close</a>
+{% endblock %} \ No newline at end of file
diff --git a/module/web/templates/default/backbone/pluginChooserDialog.html b/module/web/templates/default/backbone/pluginChooserDialog.html
index 02284d0e6..a455b0cfd 100755
--- a/module/web/templates/default/backbone/pluginChooserDialog.html
+++ b/module/web/templates/default/backbone/pluginChooserDialog.html
@@ -3,7 +3,7 @@
Choose a plugin
{% endblock %}
{% block content %}
- <form class="form-horizontal" action="#" xmlns="http://www.w3.org/1999/html">
+ <form class="form-horizontal" action="#">
<legend>
Please choose a plugin, which you want to configure
</legend>
diff --git a/module/web/templates/default/base.html b/module/web/templates/default/base.html
index 846b396a0..bf16f545a 100644
--- a/module/web/templates/default/base.html
+++ b/module/web/templates/default/base.html
@@ -136,6 +136,7 @@
<ul class="dropdown-menu" style="right: 0; left: -100%">
<li><a href="/"><i class="iconf-list-alt"></i> Dashboard</a></li>
<li><a href="/settings"><i class="iconf-wrench"></i> Settings</a></li>
+ <li><a href="/accounts"><i class="iconf-key"></i> Accounts</a></li>
<li><a href="/admin"><i class="iconf-cogs"></i> Admin</a></li>
<li class="divider"></li>
<li><a href="/logout"><i class="iconf-signout"></i> Logout</a></li>
diff --git a/module/web/templates/default/settings.html b/module/web/templates/default/settings.html
index 0b92730c2..20424606f 100644
--- a/module/web/templates/default/settings.html
+++ b/module/web/templates/default/settings.html
@@ -1,7 +1,7 @@
{% extends 'default/base.html' %}
-{% block title %}{{ _("Config") }} - {{ super() }} {% endblock %}
-{% block subtitle %}{{ _("Config") }}
+{% block title %}{{ _("Settings") }} - {{ super() }} {% endblock %}
+{% block subtitle %}{{ _("Settings") }}
{% endblock %}
{% block css %}