]> ruin.nu Git - ndwebbie.git/blob - root/src/quotes/index.tt2
Interface for searching for quotes
[ndwebbie.git] / root / src / quotes / index.tt2
1 [% META title = 'Quotes' %]
2 <form action="[% c.uri_for('') %]" method="post"><fieldset> <legend>Search term</legend>
3         <input type="text" name="search" value="[% search | html %]" class="search">
4         <input type="submit" value="Search">
5 </fieldset></form>
6
7 <table>
8         <tr>
9                 <th>Id</th><th>Quote</th>
10         </tr>
11
12 [% debug(quotes.size) %]
13 [% FOR q IN quotes %]
14         <tr align="center" class="[% loop.count % 2 == 0 ? 'even' : 'odd' %]">
15         <td align="right">[% q.qid %]</td>
16         <td align="left">[% q.quote | html %]</td>
17         </tr>
18 [% END %]
19 </table>