summaryrefslogtreecommitdiffstats
path: root/module/web
diff options
context:
space:
mode:
Diffstat (limited to 'module/web')
-rw-r--r--module/web/media/default/css/default.css69
-rw-r--r--module/web/pyload/views.py4
-rw-r--r--module/web/templates/default/settings.html121
3 files changed, 191 insertions, 3 deletions
diff --git a/module/web/media/default/css/default.css b/module/web/media/default/css/default.css
index 24bb9febf..398cb03b6 100644
--- a/module/web/media/default/css/default.css
+++ b/module/web/media/default/css/default.css
@@ -1227,12 +1227,13 @@ label.simple {
label.block input.edit {
width:50%;
}
-fieldset {
+/*fieldset {
width:300px;
text-align:center;
padding:0.5em;
margin:auto;
}
+*/
div.editor {
margin:0 0 0 0;
}
@@ -1513,4 +1514,68 @@ div.codearea pre span.Preprc {
.header, .header th{
text-align: left;
font-weight: normal;
-} \ No newline at end of file
+}
+
+#horizontalForm fieldset
+{
+ display: block;
+ margin: 0 0 3em 0;
+ padding: 0 1em 1em 1em;
+}
+
+#horizontalForm fieldset.radio
+{
+ margin: 1em 0 2em 0;
+}
+
+#horizontalForm fieldset.radio input
+{
+ clear: both;
+ float: left;
+ width: auto;
+}
+
+#horizontalForm fieldset.radio label
+{
+ font-weight: normal;
+}
+
+#horizontalForm input
+{
+ display: block;
+ width: 15em;
+}
+
+#horizontalForm input.submit
+{
+ clear: both;
+}
+
+#horizontalForm label
+{
+ float: left;
+ display: block;
+ margin: 1em 1em 0 0;
+ font-weight: bold;
+}
+
+#horizontalForm select
+{
+ display: block;
+}
+
+.clearer
+{
+ clear: both;
+ height: 1px;
+}
+
+.left
+{
+ float: left;
+}
+
+.right
+{
+ float: right;
+}
diff --git a/module/web/pyload/views.py b/module/web/pyload/views.py
index e8df50596..6dbbd22c6 100644
--- a/module/web/pyload/views.py
+++ b/module/web/pyload/views.py
@@ -169,4 +169,6 @@ def collector(request):
@permission('pyload.can_change_status')
@check_server
def config(request):
- return render_to_response(join(settings.TEMPLATE, 'settings.html'), RequestContext(request, {}, [status_proc]))
+ conf = settings.PYLOAD.get_config_data()
+
+ return render_to_response(join(settings.TEMPLATE, 'settings.html'), RequestContext(request, {'conf': conf}, [status_proc]))
diff --git a/module/web/templates/default/settings.html b/module/web/templates/default/settings.html
index ab144bed6..d3d906c47 100644
--- a/module/web/templates/default/settings.html
+++ b/module/web/templates/default/settings.html
@@ -27,6 +27,127 @@
{% block content %}
+{{ conf }}
+
+
<h3>Coming Soon.</h3>
+<form id="horizontalForm" action="">
+
+ {% for key, section in conf.items %}
+
+ <fieldset>
+ <legend>
+ {{section.name}}
+ </legend>
+
+ {% for key, option in section.options.items %}
+
+ <label for="{{option.name}}">
+ {{option.name}}
+ <input id="{{option.name}}" name="{{option.name}}" type="text" value="{{option.value}}"/>
+ </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>
+</form>
+
+
{% endblock %} \ No newline at end of file