Changeset 90 in text-formbuilder for trunk


Ignore:
Timestamp:
04/24/08 21:47:43 (17 years ago)
Author:
peichman
Message:
  • documentation patch from Ron Pero
  • added shebang line to the fb.pl script
  • added documentation about field hints
  • upped version to 0.13
  • changed all line endings in FormBuilder.pm to be unix-style
Location:
trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/Changes

    r88 r90  
    11Release history for Text::FormBuilder. 
    22 
    3 0.12 
     30.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 
     80.12 - 30 Jun 2005 
    49    * BUGFIX: stopped crosstalk of data from one object to another 
    510    * added !fb directive to set FB constructor parameters directly; 
  • trunk/bin/fb.pl

    r53 r90  
     1#!/usr/bin/perl -w 
    12use strict; 
    23use warnings; 
  • trunk/lib/Text/FormBuilder.pm

    r89 r90  
    77use vars qw($VERSION @EXPORT); 
    88 
    9 $VERSION = '0.12'; 
     9$VERSION = '0.13'; 
    1010@EXPORT = qw(create_form); 
    1111 
     
    710710    name//VALUE 
    711711    email//EMAIL 
    712     langauge:select{English,Spanish,French,German} 
     712    language:select{English,Spanish,French,German} 
    713713    moreinfo|Send me more information:checkbox 
    714714    interests:checkbox{Perl,karate,bass guitar} 
    715715 
    716 This will produce a required C<name> test field, a required C<email> text 
     716This will produce a required C<name> text field, a required C<email> text 
    717717field that must look like an email address, an optional select dropdown 
    718 field C<langauge> with the choices English, Spanish, French, and German, 
     718field C<language> with the choices English, Spanish, French, and German, 
    719719an optional C<moreinfo> checkbox labeled ``Send me more information'', and 
    720720finally a set of checkboxes named C<interests> with the choices Perl, 
     
    732732    $parser->parse($filename); 
    733733     
    734     # or pass a scalar ref for parse a literal string 
     734    # or pass a scalar ref to parse a literal string 
    735735    $parser->parse(\$string); 
    736736     
     
    791791 
    792792If you want to use multiple external stylesheets, or an external stylesheet 
    793 in conojunction with the default styles, use the C<external_css> option: 
     793in conjunction with the default styles, use the C<external_css> option: 
    794794 
    795795    # single external sheet 
     
    10701070=item C<!title> 
    10711071 
    1072 Line directive contianing the title of the form. 
     1072Line directive containing the title of the form. 
    10731073 
    10741074=item C<!author> 
     
    10781078=item C<!description> 
    10791079 
    1080 A block directive containing a brief description of the form. Suitable for  
     1080A block directive containing a brief description of the form. Appears at the top of the form. Suitable for  
    10811081special 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> 
     1082block 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> 
    10851085 
    10861086A line directive that starts a new section. Each section has its own heading 
    1087 and id, which by default are rendered into spearate tables. 
     1087and id, which by default are rendered into separate tables. 
    10881088 
    10891089=item C<!head> 
     
    11711171 
    11721172    color|'Fav. color' 
     1173 
     1174To add a descriptive hint that should appear to the right of the form field, 
     1175put 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] 
    11731182 
    11741183To use a different input type: 
     
    13941403sections. 
    13951404 
     1405To Ron Pero for a documentation patch, and for letting me know that software 
     1406I wrote several years ago is still of use to people. 
     1407 
    13961408And of course, to Nathan Wiger, for giving us CGI::FormBuilder in the 
    13971409first place. Thanks Nate! 
Note: See TracChangeset for help on using the changeset viewer.