Legend:
- Unmodified
- Added
- Removed
-
trunk/Changes
r88 r90 1 1 Release history for Text::FormBuilder. 2 2 3 0.12 3 0.13 - 24 Apr 2008 4 * documentation patch from Ron Pero 5 * added shebang line to the fb.pl script 6 * added documentation about field hints 7 8 0.12 - 30 Jun 2005 4 9 * BUGFIX: stopped crosstalk of data from one object to another 5 10 * added !fb directive to set FB constructor parameters directly; -
trunk/bin/fb.pl
r53 r90 1 #!/usr/bin/perl -w 1 2 use strict; 2 3 use warnings; -
trunk/lib/Text/FormBuilder.pm
r89 r90 7 7 use vars qw($VERSION @EXPORT); 8 8 9 $VERSION = '0.1 2';9 $VERSION = '0.13'; 10 10 @EXPORT = qw(create_form); 11 11 … … 710 710 name//VALUE 711 711 email//EMAIL 712 lang auge:select{English,Spanish,French,German}712 language:select{English,Spanish,French,German} 713 713 moreinfo|Send me more information:checkbox 714 714 interests:checkbox{Perl,karate,bass guitar} 715 715 716 This will produce a required C<name> te st field, a required C<email> text716 This will produce a required C<name> text field, a required C<email> text 717 717 field that must look like an email address, an optional select dropdown 718 field C<lang auge> with the choices English, Spanish, French, and German,718 field C<language> with the choices English, Spanish, French, and German, 719 719 an optional C<moreinfo> checkbox labeled ``Send me more information'', and 720 720 finally a set of checkboxes named C<interests> with the choices Perl, … … 732 732 $parser->parse($filename); 733 733 734 # or pass a scalar ref forparse a literal string734 # or pass a scalar ref to parse a literal string 735 735 $parser->parse(\$string); 736 736 … … 791 791 792 792 If you want to use multiple external stylesheets, or an external stylesheet 793 in con ojunction with the default styles, use the C<external_css> option:793 in conjunction with the default styles, use the C<external_css> option: 794 794 795 795 # single external sheet … … 1070 1070 =item C<!title> 1071 1071 1072 Line directive cont ianing the title of the form.1072 Line directive containing the title of the form. 1073 1073 1074 1074 =item C<!author> … … 1078 1078 =item C<!description> 1079 1079 1080 A block directive containing a brief description of the form. Suitable for1080 A block directive containing a brief description of the form. Appears at the top of the form. Suitable for 1081 1081 special instructions on how to fill out the form. All of the text within the 1082 block is folded into a single paragraph. 1083 1084 =item C<!section >1082 block is folded into a single paragraph. If you add a second !description, it will override the first. 1083 1084 =item C<!section id Your section text goes here> 1085 1085 1086 1086 A line directive that starts a new section. Each section has its own heading 1087 and id, which by default are rendered into s pearate tables.1087 and id, which by default are rendered into separate tables. 1088 1088 1089 1089 =item C<!head> … … 1171 1171 1172 1172 color|'Fav. color' 1173 1174 To add a descriptive hint that should appear to the right of the form field, 1175 put the hint in square brackets after the label, but before the field type: 1176 1177 # hint for a field without a label 1178 color[select from a list] 1179 1180 # hint together with a label 1181 color|Favorite color[select from this list] 1173 1182 1174 1183 To use a different input type: … … 1394 1403 sections. 1395 1404 1405 To Ron Pero for a documentation patch, and for letting me know that software 1406 I wrote several years ago is still of use to people. 1407 1396 1408 And of course, to Nathan Wiger, for giving us CGI::FormBuilder in the 1397 1409 first place. Thanks Nate!
Note: See TracChangeset
for help on using the changeset viewer.