]> git.decadent.org.uk Git - maypole.git/blob - templates/factory/search_form
added line about xhtml and removing mason
[maypole.git] / templates / factory / search_form
1 <form method="get" action="[% base %]/[% classmetadata.moniker %]/search/">
2 <fieldset class="search">
3 <legend>Search</legend>
4     <input type="hidden" name="action" value="create"/>
5     <input type="hidden" name="class" value="[% classmetadata.name %]"/>
6         [% FOR col = classmetadata.columns;
7             NEXT IF col == "id";
8          %]
9             <label>
10                 <span class="field">[% classmetadata.colnames.$col; %]</span>
11                     [% SET element = classmetadata.cgi.$col;
12                     IF element.tag == "select";
13                         USE element_maker = Class("HTML::Element");
14                         SET element = element.unshift_content(
15                             element_maker.new("option", value," "));
16                     END;
17                    element.as_XML; %]
18                    </label>
19         [% END; %]
20     <input type="submit" name="search" value="search"/>
21     </fieldset>
22 </form>