X-Git-Url: https://git.decadent.org.uk/gitweb/?p=maypole.git;a=blobdiff_plain;f=examples%2Ffancy_example%2Ftemplates%2Ffactory%2Faddnew;fp=examples%2Ffancy_example%2Ftemplates%2Ffactory%2Faddnew;h=23344969dbedfa2ac40c56da876e611823baae9c;hp=0000000000000000000000000000000000000000;hb=ccffaddb7564c652448befe4d67d0ae5276d8975;hpb=ac095b83019b7eff094549fa33f66147170ea35f diff --git a/examples/fancy_example/templates/factory/addnew b/examples/fancy_example/templates/factory/addnew new file mode 100644 index 0000000..2334496 --- /dev/null +++ b/examples/fancy_example/templates/factory/addnew @@ -0,0 +1,41 @@ +[%# + +=head1 addnew + +This is the interface to adding a new instance of an object. (or a new +row in the database, if you want to look at it that way) It displays a +form containing a list of HTML components for each of the columns in the +table. + +=cut + +#%] + +
+
+
+Add a new [% classmetadata.moniker %] + [% FOR col = classmetadata.columns %] + [% NEXT IF col == "id" %] + + [% IF errors.$col %] + [% errors.$col | html %] + [% END %] + + [% END; %] + + +
+
+