From 53865e7411fa0528093cbfa5f4ba7591e71f2ef8 Mon Sep 17 00:00:00 2001 From: RaNaN Date: Wed, 31 Mar 2010 14:27:31 +0200 Subject: parser fix --- module/web/media/default/css/default.css | 69 +++++++++++++++- module/web/pyload/views.py | 4 +- module/web/templates/default/settings.html | 121 +++++++++++++++++++++++++++++ 3 files changed, 191 insertions(+), 3 deletions(-) (limited to 'module/web') 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 }} + +

Coming Soon.

+
+ + {% for key, section in conf.items %} + +
+ + {{section.name}} + + + {% for key, option in section.options.items %} + + + {% endfor %} +
+ {% endfor %} + +
+ + Name + + + + +
+
+
+ + + Address + + + + + + +
+
+
+ + Payment details + +
+ + + Credit card + + + + + + +
+
+ + + + +
+ +
+
+ + {% endblock %} \ No newline at end of file -- cgit v1.2.3