X-Git-Url: https://git.decadent.org.uk/gitweb/?a=blobdiff_plain;f=templates%2Ffactory%2Faddnew;h=bf2b9ce5688f8c9fff180d6e097ba64646861e68;hb=ba579915a0d92c87a8d1baad0e7709ea9b3a2559;hp=daacf9c42b1c18cbb025b3415f5f6290fb4efa98;hpb=0ad4ba7aa71b7dda17f0b07ccc9d8f0ad3424b82;p=maypole.git diff --git a/templates/factory/addnew b/templates/factory/addnew index daacf9c..bf2b9ce 100644 --- a/templates/factory/addnew +++ b/templates/factory/addnew @@ -1,13 +1,41 @@ -

Add a new [%classmetadata.moniker%]

-
- - - [% FOR col = classmetadata.columns; - NEXT IF col == "id"; - "";classmetadata.colnames.$col;" : "; - classmetadata.cgi.$col.as_HTML; - %] -
+[%# + +=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; %] - - + + +
+ +