Changeset 26 in text-formbuilder for trunk/lib


Ignore:
Timestamp:
11/16/04 16:04:33 (20 years ago)
Author:
peter
Message:

updated docs and version number

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/lib/Text/FormBuilder.pm

    r25 r26  
    66use vars qw($VERSION); 
    77 
    8 $VERSION = '0.06'; 
     8$VERSION = '0.06_01'; 
    99 
    1010use Carp; 
     
    659659inside curly braces. Whitespace between values is irrelevant. 
    660660 
    661 To add more descriptive display text to a vlaue in a list, add a square-bracketed 
     661To add more descriptive display text to a value in a list, add a square-bracketed 
    662662``subscript,'' as in: 
    663663 
     
    665665 
    666666If you have a list of options that is too long to fit comfortably on one line, 
    667 consider using the C<!list> directive: 
     667you should use the C<!list> directive: 
    668668 
    669669    !list MONTHS { 
     
    690690enough with the CGI::FormBuilder object directly.> 
    691691 
     692If you want to have a single checkbox (e.g. for a field that says ``I want to 
     693recieve more information''), you can just specify the type as checkbox without 
     694supplying any options: 
     695 
     696    moreinfo|I want to recieve more information:checkbox 
     697 
     698The one drawback to this is that the label to the checkbox will still appear 
     699to the left of the field. I am leaving it this way for now, but if enough 
     700people would like this to change, I may make single-option checkboxes a special 
     701case and put the label on the right. 
     702 
    692703You can also supply a default value to the field. To get a default value of 
    693704C<green> for the color field: 
     
    746757=head1 BUGS 
    747758 
     759For now, checkboxes with a single value still display their labels on 
     760the left. 
     761 
    748762=head1 SEE ALSO 
    749763 
     
    752766=head1 THANKS 
    753767 
    754 Thanks to eszpee for pointing out some bugs in the default value parsing. 
     768Thanks to eszpee for pointing out some bugs in the default value parsing, 
     769as well as some suggestions for i18n/l10n and splitting up long forms into 
     770sections (that as of this release are still on the TODO list ;-). 
    755771 
    756772=head1 AUTHOR 
Note: See TracChangeset for help on using the changeset viewer.