From aa78d90803a68e41ea663adb623c859cae3ad91e Mon Sep 17 00:00:00 2001 From: RaNaN Date: Wed, 9 Mar 2011 23:29:24 +0100 Subject: new config page, mootools 1.3, removed old templates --- module/web/templates/default/settings.html | 429 ++++++++++++++++------------- 1 file changed, 233 insertions(+), 196 deletions(-) (limited to 'module/web/templates/default/settings.html') diff --git a/module/web/templates/default/settings.html b/module/web/templates/default/settings.html index 0ef9ce9f4..69ab39292 100644 --- a/module/web/templates/default/settings.html +++ b/module/web/templates/default/settings.html @@ -1,217 +1,254 @@ {% extends 'default/base.html' %} -{% load i18n %} -{% load contains %} -{% load quotepath %} -{% block title %}{% trans "Config" %} - {{block.super}} {% endblock %} -{% block subtitle %}{% trans "Config" %}{% endblock %} +{% block title %}{{ _("Config") }} - {{ super() }} {% endblock %} +{% block subtitle %}{{ _("Config") }}{% endblock %} {% block head %} - + + + + + {% endblock %} {% block menu %} -
  • - {% trans "Home" %} -
  • -
  • - {% trans "Queue" %} -
  • -
  • - {% trans "Collector" %} -
  • -
  • - {% trans "Downloads" %} -
  • -
  • - {% trans "Logs" %} -
  • -
  • - {% trans "Config" %} -
  • +
  • + {{ _("Home") }} +
  • +
  • + {{ _("Queue") }} +
  • +
  • + {{ _("Collector") }} +
  • +
  • + {{ _("Downloads") }} +
  • +
  • + {{ _("Logs") }} +
  • +
  • + {{ _("Config") }} +
  • {% endblock %} {% block content %} - - - -
    -
    -
    -{% for configname, config in conf.iteritems %} - {% ifnotequal configname "Accounts" %} - {% for skey, section in config.iteritems %} -
    - - {% for okey, option in section.items %} - {% ifnotequal okey "desc" %} - - - - - {% endifnotequal %} - {% endfor %} -
    - {% ifequal option.type "bool" %} - - {% else %} - {% if option.type|contains:";" %} - - {% else %} - {% ifequal option.type "folder" %} - - - {% else %} - {% ifequal option.type "file" %} - - - {% else %} - - {% endifequal %} - {% endifequal %} - {% endif %} - {% endifequal %} -
    -
    - {% endfor %} - {% else %} - - {% for plugin, accounts in config.iteritems %} -
    - - {% for account in accounts %} + +
    + +
    + + + + + + + + +
    +

       {{ _("Choose a section from the menu") }}

    +
    +
    + + + +
    + + + + + + +
    + + +
    +

       {{ _("Choose a section from the menu") }}

    +
    +
    + + + +
    + + + +
    + +
    + + - - - - - - - + + + + + + + + + - - {% endfor %} - - - - - - - - - - - - - -
    - - - {% trans "Status:" %} - {% if account.valid %} - - {% trans "valid" %} - {% else %} - - {% trans "not valid" %} - {% endif %} - - - {% trans "Valid until:" %} - - {{ account.validuntil }} - - - {% trans "Traffic left:" %} - - {{ account.trafficleft }} - - - {% trans "Time:" %} - - - {% trans "Delete? " %} - - {{ _("Plugin") }}{{ _("Name") }}{{ _("Password") }}{{ _("Status") }}{{ _("Premium") }}{{ _("Valid until") }}{{ _("Traffic left") }}{{ _("Time") }}{{ _("Delete?") }}
     
    - -
    - -
    -
    - {% endfor %} - - {% endifnotequal %} -{% endfor %} -{% if conf %} - - + + + {% for plugin, accounts in conf.accs.iteritems() %} + + + {% for account in accounts %} + + + {{ plugin }} + + + + + + + + {% if account.valid %} + + {{ _("valid") }} + {% else %} + + {{ _("not valid") }} + {% endif %} + + + + {% if account.premium %} + + {{ _("yes") }} + {% else %} + + {{ _("no") }} + {% endif %} + + + + + {{ account.validuntil }} + + + + + {{ account.trafficleft }} + + + + + + + + + + {% endfor %} + {% endfor %} + + + + + + + + + + +
    +
    +

    {{_("Add Account")}}

    +

    {{_("Enter your account data to use premium features.")}}

    + + + + + + + + -
    -{% for message in errors %} -{{message}}
    -{% endfor %} -{% endif %} + + +
    +
    + +
    {% endblock %} -- cgit v1.2.3