[Catalyst-commits] r8716 -
trunk/examples/CatalystAdvent/root/2008/pen
dhoss at dev.catalyst.perl.org
dhoss at dev.catalyst.perl.org
Thu Dec 4 18:51:23 GMT 2008
Author: dhoss
Date: 2008-12-04 18:51:22 +0000 (Thu, 04 Dec 2008)
New Revision: 8716
Modified:
trunk/examples/CatalystAdvent/root/2008/pen/AdventPhotoGallery.pod
Log:
added FormFu form config files
Modified: trunk/examples/CatalystAdvent/root/2008/pen/AdventPhotoGallery.pod
===================================================================
--- trunk/examples/CatalystAdvent/root/2008/pen/AdventPhotoGallery.pod 2008-12-04 18:47:38 UTC (rev 8715)
+++ trunk/examples/CatalystAdvent/root/2008/pen/AdventPhotoGallery.pod 2008-12-04 18:51:22 UTC (rev 8716)
@@ -439,6 +439,42 @@
<div>«<a href="[% c.uri_for("/photos") %]">back</a>
+
+And last but not least, the required HTML::FormFu files:
+
+=over
+
+=item add.yml
+
+ ---
+ indicator: submit
+
+ elements:
+ - type: Text
+ name: photo_name
+ label: Name this photo
+ container_tag: div
+
+ - type: File
+ name: photo
+ label: Your photo
+ container_tag: div
+
+ - type: Textarea
+ name: caption
+ label: Photo caption
+ container_tag: div
+
+ - type: Submit
+ name: submit
+ value: Upload!
+
+ constraints:
+ SingleValue
+
+ filters:
+ HTMLScrubber
+
Voila! There you have it. Go nuts.
=head1 AUTHOR
More information about the Catalyst-commits
mailing list