diff options
| author | 2011-12-23 21:40:22 +0100 | |
|---|---|---|
| committer | 2011-12-23 21:40:22 +0100 | |
| commit | 8da44b430b957b25e74dff63829d4198a52e7a0b (patch) | |
| tree | f20fc60db6e7d9a93fe3ca60cd68a6e32b536fc6 /module/web/templates/default/settings_item.html | |
| parent | oron version increase (diff) | |
| parent | little fixes (diff) | |
| download | pyload-8da44b430b957b25e74dff63829d4198a52e7a0b.tar.xz | |
merge hotfixes in
Diffstat (limited to 'module/web/templates/default/settings_item.html')
| -rw-r--r-- | module/web/templates/default/settings_item.html | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/module/web/templates/default/settings_item.html b/module/web/templates/default/settings_item.html index 813383343..b3d7fe334 100644 --- a/module/web/templates/default/settings_item.html +++ b/module/web/templates/default/settings_item.html @@ -1,12 +1,13 @@ <table class="settable"> - {% if section.outline %} - <tr><th colspan="2">{{ section.outline }}</th></tr> + {% if section.description %} + <tr><th colspan="2">{{ section.description }}</th></tr> {% endif %} - {% for okey, option in section.iteritems() %} - {% if okey not in ("desc","outline") %} + {% for option in section.items %} + {% set okey = option.name %} + {% set skey = section.name %} <tr> - <td><label for="{{skey}}|{{okey}}" - style="color:#424242;">{{ option.desc }}:</label></td> + <td><label for="{{section.name}}|{{option.name}}" + style="color:#424242;">{{ option.long_name }}:</label></td> <td> {% if option.type == "bool" %} <select id="{{skey}}|{{okey}}" name="{{skey}}|{{okey}}"> @@ -17,7 +18,7 @@ </select> {% elif ";" in option.type %} <select id="{{skey}}|{{okey}}" name="{{skey}}|{{okey}}"> - {% for entry in option.list %} + {% for entry in option.type.split(";") %} <option {% if option.value == entry %} selected="selected" {% endif %}>{{ entry }}</option> {% endfor %} @@ -43,6 +44,5 @@ {% endif %} </td> </tr> - {% endif %} {% endfor %} </table>
\ No newline at end of file |
