X-Git-Url: https://git.decadent.org.uk/gitweb/?a=blobdiff_plain;f=templates%2Ffactory%2Faddnew;h=f530bc99383105fa608e453fe43375ae4c6af986;hb=d2c852208417c014caec0436a677fcadccc197d8;hp=f541e27b995f2a4fb680e7e93100a29b42dda5e3;hpb=77137f7d4d6b7768b9c64eb1e893ac90083cfd63;p=maypole.git diff --git a/templates/factory/addnew b/templates/factory/addnew index f541e27..f530bc9 100644 --- a/templates/factory/addnew +++ b/templates/factory/addnew @@ -1,14 +1,38 @@ -

Add a new [%classmetadata.moniker%]

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