- Timestamp:
- 02/10/05 16:16:05 (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/lib/Text/FormBuilder.pm
r59 r60 7 7 use vars qw($VERSION @EXPORT); 8 8 9 $VERSION = '0.09_0 1';9 $VERSION = '0.09_02'; 10 10 @EXPORT = qw(create_form); 11 11 … … 24 24 my $DEFAULT_CSS = <<END; 25 25 table { padding: 1em; } 26 td table { padding: 0; } /* exclude the inner checkbox tables */ 26 27 #author, #footer { font-style: italic; } 27 28 caption h2 { padding: .125em .5em; background: #ccc; text-align: left; } … … 227 228 # use the list for displaying checkbox groups 228 229 foreach (@{ $self->{form_spec}{fields} }) { 229 $$_{ulist} = 1 if ref $$_{options} and @{ $$_{options} } >= 3; 230 if (ref $$_{options} and @{ $$_{options} } >= 3) { 231 $$_{columns} = int(@{ $$_{options} } / 8) + 1; 232 } 233 #$$_{ulist} = 1 if ref $$_{options} and @{ $$_{options} } >= 3; 230 234 } 231 235 … … 532 536 $OUT .= qq[ <td><span class="fieldgroup">]; 533 537 $OUT .= join(' ', map { qq[<small class="sublabel">$$_{label}</small> $$_{field} $$_{comment}] } @group_fields); 534 $OUT .= " $msg_invalid" if $$_{invalid};538 $OUT .= " ] . $msg_invalid . q[" if $$_{invalid}; 535 539 536 540 $OUT .= qq[ </span></td>\n];
Note: See TracChangeset
for help on using the changeset viewer.