templates/preferences.tmpl
changeset 79 43ac75054d5c
parent 73 5a7188bf2894
child 84 3c78c9c080e9
--- a/templates/preferences.tmpl	Tue Feb 10 01:24:59 2009 +0200
+++ b/templates/preferences.tmpl	Tue Feb 10 02:57:16 2009 +0200
@@ -9,9 +9,7 @@
         <p>
             <label for="timezone">Timezone:</label>
             <select name="timezone">
-            % for tz_name in timezones :
-                <option${' selected="selected"' if tz_name == prefs['timezone'].zone else ''}>${tz_name}</option>
-            % endfor
+            ${h.select_options(((tz_name, tz_name) for tz_name in timezones), prefs['timezone'])}
             </select>
             <span class="example">(${h.tz_name(prefs['timezone'])})</span>
         </p>
@@ -36,9 +34,7 @@
         <p>
             <label for="formatter">Formatter:</label>
             <select name="formatter">
-            % for fmt_name, fmt in preferences.formatter.formatters.iteritems() :
-                <option value="${fmt_name}">${fmt.title}</option>
-            % endfor
+                ${h.select_options(((fmt_name, fmt.title) for fmt_name, fmt in preferences.formatter.formatters.iteritems()), prefs['formatter'])}
             </select>
         </p>
 
@@ -48,6 +44,23 @@
             <span class="example">(Blank for infinite)</span>
         </p>
     </fieldset>
+    
+    <fieldset>
+        <legend>Image Options</legend>
+
+        <p>
+            <label for="image_font">Font:</label>
+            <select name="image_font">
+                ${h.select_options(((name, title) for name, (path, title) in config.FORMATTER_IMAGE_FONTS.iteritems()), prefs['image_font'][0])}
+            </select>
+        </p>
+
+        <p>
+            <label for="image_font_size">Font size:</label>
+            <input type="text" name="image_font_size" value="${prefs['image_font_size']}" />
+            <span class="example">pt</span>
+        </p>
+    </fieldset>
 
     <input type="submit" value="Save" />
 </form>