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>
22 <a href="/show/ruler_${ruler.pixel_width}px_${ruler.in_width}inches.png?fromgallery=true">in</a>
24 <td><form method="GET" action="delete/$ruler.id" style="display:inline;">
25 <input type="submit" value="delete" /></form></td>
30 <h2>Add Your Ruler</h2>
32 <p>If your ruler is not on the list you should add it with the box
36 <form method="POST" action="/gallery">
38 #include 'templates/_form_elements.tmpl'
40 <p><label for="model">Laptop or monitor model:</label>
41 <input type="text" name="model" size="50" maxlength="100"
42 value="$getVar("model", None)" /></p>
44 <input type="Submit" name="submit" value="Save" />