]> projects.mako.cc - yourule/blobdiff - templates/_form_elements.tmpl
updated README to note that the project isn't working
[yourule] / templates / _form_elements.tmpl
index b365ce05579308c8e2abfd557d10de028731b7ea..001617b86276a022709e96f4f42c2a6418bca66a 100644 (file)
@@ -1,15 +1,15 @@
 <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">Screen width (in pixels):</label>
-<input type="text" name="pixel_width" value="$getVar('pixel_width', None)" /></p>
+<input type="text" name="pixel_width" value="<%= pixel_width %>" /></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="$getVar('unit_width', None)" /></p>
+<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?