5 <h2>Gallery of Existing Rulers</h2>
11 <th>Width (cm/in)</th>
15 #for $ruler in $rulers
18 <td>$ruler.pixel_width</td>
19 <td>$ruler.cm_width()/$ruler.in_width</td>
21 <a href="/show/ruler_${ruler.pixel_width}px_${ruler.cm_width}centimeters.png?fromgallery=true">cm</a>/<a href="/show/ruler_${ruler.pixel_width}px_${ruler.in_width}inches.png?fromgallery=true">in</a>
23 <td><form method="GET" action="delete/$ruler.id" style="display:inline;">
24 <input type="submit" value="delete" /></form></td>
29 <h2>Add Your Ruler</h2>
31 <p>If your ruler is not on the list you should add it with the box
34 #if $getVar('errormsg', False)
35 <div class="errormsg">
36 <strong>Error</strong><br />
37 $getVar('errormsg', False)
40 <form method="POST" action="/gallery">
42 #include 'templates/_form_elements.tmpl'
44 <p><label for="model">Laptop or monitor model:</label>
45 <input type="text" name="model" size="50" maxlength="100"
46 value="$getVar("model", None)" /></p>
48 <input type="Submit" name="submit" value="Save" />