X-Git-Url: https://git.decadent.org.uk/gitweb/?a=blobdiff_plain;f=lib%2FMaypole%2Ftemplates%2Ffactory%2Faddnew;fp=lib%2FMaypole%2Ftemplates%2Ffactory%2Faddnew;h=bf2b9ce5688f8c9fff180d6e097ba64646861e68;hb=48c86c6ba8c5db11ea6906e3237db1322f8dc5e0;hp=0000000000000000000000000000000000000000;hpb=12d8a77a713d5ed4f08414e5f34e96d45f60e2d3;p=maypole.git diff --git a/lib/Maypole/templates/factory/addnew b/lib/Maypole/templates/factory/addnew new file mode 100644 index 0000000..bf2b9ce --- /dev/null +++ b/lib/Maypole/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 %] + [% END %] + + [% END; %] + + +
+
+