Changeset 26 in text-formbuilder
- Timestamp:
- 11/16/04 16:04:33 (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/lib/Text/FormBuilder.pm
r25 r26 6 6 use vars qw($VERSION); 7 7 8 $VERSION = '0.06 ';8 $VERSION = '0.06_01'; 9 9 10 10 use Carp; … … 659 659 inside curly braces. Whitespace between values is irrelevant. 660 660 661 To add more descriptive display text to a v laue in a list, add a square-bracketed661 To add more descriptive display text to a value in a list, add a square-bracketed 662 662 ``subscript,'' as in: 663 663 … … 665 665 666 666 If you have a list of options that is too long to fit comfortably on one line, 667 consider usingthe C<!list> directive:667 you should use the C<!list> directive: 668 668 669 669 !list MONTHS { … … 690 690 enough with the CGI::FormBuilder object directly.> 691 691 692 If you want to have a single checkbox (e.g. for a field that says ``I want to 693 recieve more information''), you can just specify the type as checkbox without 694 supplying any options: 695 696 moreinfo|I want to recieve more information:checkbox 697 698 The one drawback to this is that the label to the checkbox will still appear 699 to the left of the field. I am leaving it this way for now, but if enough 700 people would like this to change, I may make single-option checkboxes a special 701 case and put the label on the right. 702 692 703 You can also supply a default value to the field. To get a default value of 693 704 C<green> for the color field: … … 746 757 =head1 BUGS 747 758 759 For now, checkboxes with a single value still display their labels on 760 the left. 761 748 762 =head1 SEE ALSO 749 763 … … 752 766 =head1 THANKS 753 767 754 Thanks to eszpee for pointing out some bugs in the default value parsing. 768 Thanks to eszpee for pointing out some bugs in the default value parsing, 769 as well as some suggestions for i18n/l10n and splitting up long forms into 770 sections (that as of this release are still on the TODO list ;-). 755 771 756 772 =head1 AUTHOR
Note: See TracChangeset
for help on using the changeset viewer.