summaryrefslogtreecommitdiffstats
path: root/module/web/templates
diff options
context:
space:
mode:
authorGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2010-04-03 11:06:18 +0200
committerGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2010-04-03 11:06:18 +0200
commit44941dd9b11d9140589f7b1eacb9baf2a82d4c8b (patch)
treedd5c3ea532746bb6eae3ff9b7991165b6e5254af /module/web/templates
parentmerged (diff)
downloadpyload-44941dd9b11d9140589f7b1eacb9baf2a82d4c8b.tar.xz
webif settings page
Diffstat (limited to 'module/web/templates')
-rw-r--r--module/web/templates/default/settings.html133
1 files changed, 27 insertions, 106 deletions
diff --git a/module/web/templates/default/settings.html b/module/web/templates/default/settings.html
index d3d906c47..4d2d2a591 100644
--- a/module/web/templates/default/settings.html
+++ b/module/web/templates/default/settings.html
@@ -27,126 +27,47 @@
{% block content %}
-{{ conf }}
+{% for message in errors %}
+<b>{{message}}</b><br>
+{% endfor %}
+<form id="horizontalForm" action="" method="POST">
-<h3>Coming Soon.</h3>
-
-<form id="horizontalForm" action="">
-
- {% for key, section in conf.items %}
+ {% for skey, section in conf.items %}
<fieldset>
<legend>
{{section.name}}
</legend>
- {% for key, option in section.options.items %}
+ {% for okey, option in section.options.items %}
- <label for="{{option.name}}">
+ <label for="{{skey}}|{{okey}}">
{{option.name}}
- <input id="{{option.name}}" name="{{option.name}}" type="text" value="{{option.value}}"/>
+ {% ifequal option.type "bool" %}
+ <select id="{{skey}}|{{okey}}" name="{{skey}}|{{okey}}">
+ <option {% if option.value %} selected="selected" {% endif %}value="True">{% trans "on" %}</option>
+ <option {% if not option.value %} selected="selected" {% endif %}value="False">{% trans "off" %}</option>
+ </select>
+ {% else %}
+ {% if option.input %}
+ <select id="{{skey}}|{{okey}}" name="{{skey}}|{{okey}}">
+ {% for entry in option.input %}
+ <option {% ifequal option.value entry %} selected="selected" {% endifequal %}>{{entry}}</option>
+ {% endfor %}
+ </select>
+ {% else %}
+ <input id="{{skey}}|{{okey}}" name="{{skey}}|{{okey}}" type="text" value="{{option.value}}"/>
+ {% endif %}
+ {% endifequal %}
</label>
{% endfor %}
</fieldset>
{% endfor %}
-
- <fieldset>
- <legend>
- Name
- </legend>
- <label class="first" for="title1">
- Title
- <select id="title1" name="title1">
- <option selected="selected">Mr.</option>
-
- <option>Mrs.</option>
- <option>Ms.</option>
- <option>Dr.</option>
- <option>Viscount</option>
- </select>
- </label>
- <label for="firstName1">
-
- First name
- <input id="firstName1" name="firstName1" type="text" value="First name" />
- </label>
- <label for="lastName1">
- Last name
- <input id="lastName1" name="lastName1" type="text" value="Last name" />
- </label>
- <div class="clearer"></div>
- </fieldset>
- <fieldset>
-
- <legend>
- Address
- </legend>
- <label class="first" for="street1">
- Street
- <input id="street1" name="street1" type="text" value="Street" />
- </label>
- <label for="city1">
- City
- <input id="city1" name="city1" type="text" value="City" />
-
- </label>
- <label for="state1">
- State
- <input id="state1" name="state1" type="text" value="State" />
- </label>
- <label for="postcode1">
- Postcode
- <input id="postcode1" name="postcode1" type="text" value="Postcode" />
- </label>
- <label for="country1">
-
- Country
- <input id="country1" name="country1" type="text" value="Country" />
- </label>
- <div class="clearer"></div>
- </fieldset>
- <fieldset>
- <legend>
- Payment details
- </legend>
- <fieldset class="radio">
-
- <legend>
- Credit card
- </legend>
- <label for="cardType1A">
- <input id="cardType1A" name="card1" type="radio" />
- American Express
- </label>
- <label for="cardType1B">
- <input id="cardType1B" name="card1" type="radio" />
- Mastercard
- </label>
-
- <label for="cardType1C">
- <input id="cardType1C" name="card1" type="radio" />
- Visa
- </label>
- <label for="cardType1D">
- <input id="cardType1D" name="card1" type="radio" />
- Blockbuster Card
- </label>
- <div class="clearer"></div>
- </fieldset>
-
- <label for="cardNum1">
- Card number
- <input id="cardNum1" name="cardNum1" type="text" value="Card number" />
- </label>
- <label for="expiry1">
- Expiry date
- <input id="expiry1" name="city1" type="text" value="City" />
- </label>
- <input class="submit" type="submit" value="Submit my details" />
- <div class="clearer"></div>
-
- </fieldset>
+ {% if conf %}
+ <input class="submit" type="submit" value="{% trans "Submit" %}" />
+ <div class="clearer"></div>
+ {% endif %}
</form>