moved templating system to jinja
[yourule] / templates / _form_elements.tmpl
index 18c57c883c20a7dcdd6ea9dfa20f0a11a992b590..001617b86276a022709e96f4f42c2a6418bca66a 100644 (file)
@@ -1,15 +1,15 @@
-<p>Units:
+<p><label for="units">Units:</label>
 <select id="unitselector" name="units">
-<option values="centimeters"#if $getVar('units', '') == 'centimeters'# selected="selected"'#end if#>centimeters</option>
-<option value="inches"#if $getVar('units', '') == 'inches'# selected="selected"'#end if#>inches</option>
+<option values="centimeters"<% if units == 'centimeters' %>selected="selected"<% endif %>>centimeters</option>
+<option value="inches"<% if units == 'inches' %>selected="selected"<% endif %>>inches</option>
 </select>
 </p>
 
-<p><label for="pixel_width">Your screen width (in pixels):</label>
-<input type="text" name="pixel_width" value="$getVar('pixel_width', None)" /></p>
+<p><label for="pixel_width">Screen width (in pixels):</label>
+<input type="text" name="pixel_width" value="<%= pixel_width %>" /></p>
 
-<p><label for="unit_width">Your screen width (in <span class="unittext">units</span>):</label>
-<input type="text" name="unit_width" value="$getVar('unit_width', None)" /></p>
+<p><label for="unit_width"><em>Horizontal</em> screen width (in <span class="unittext">units</span>):</label>
+<input type="text" name="unit_width" value="<%= unit_width %>" /></p>
 
 <script>
 // simple chunk of javascript to handle changes

Benjamin Mako Hill || Want to submit a patch?