]> git.decadent.org.uk Git - maypole.git/blob - ex/fancy_example/templates/custom/addnew
Beginning to a fancy example app of 2.11 features . See
[maypole.git] / ex / fancy_example / templates / custom / addnew
1 [%#
2
3 =head1 addnew
4
5 This is the interface to adding a new instance of an object. (or a new
6 row in the database, if you want to look at it that way) It displays a
7 form containing a list of HTML components for each of the columns in the
8 table.
9
10 =cut
11
12 #%]
13 [% tbl = classmetadata.table; %]
14
15 <div id="addnew">
16 <form method="post" action="[% base %]/[% classmetadata.table %]/do_edit/">
17 <fieldset>
18 <legend>Add a new [% config.TABLES.$tbl.singular || tbl | ucfirst | replace('_',' '); %] </legend>
19         [% INCLUDE display_inputs; %]
20     <input type="submit" name="create" value="create" />
21     <input type="hidden" name="__form_id" value="[% request.make_random_id %]" />
22 </fieldset>
23 </form>
24 </div>