Changeset 83 in text-formbuilder for trunk/lib/Text
- Timestamp:
- 05/11/05 14:06:05 (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/lib/Text/FormBuilder.pm
r82 r83 47 47 text_author => 'Created by %s', 48 48 text_madewith => 'Made with %s version %s', 49 text_required => ' * denotes a <strong>required field</strong>.',49 text_required => 'Fields that are <strong>highlighted</strong> are required.', 50 50 text_invalid => 'Missing or invalid value.', 51 51 ); … … 438 438 439 439 sub write_module { 440 my ($self, $package, $use_tidy) ;440 my ($self, $package, $use_tidy) = @_; 441 441 442 442 my $module = $self->as_module($package, $use_tidy); 443 443 444 _write_output_file($module, (split(/::/, $package))[-1] . '.pm'); 444 my $outfile = (split(/::/, $package))[-1]; 445 $outfile .= '.pm' unless $outfile =~ /\.pm$/; 446 _write_output_file($module, $outfile); 445 447 return $self; 446 448 } … … 558 560 $OUT .= qq[<td></td>]; 559 561 } else { 560 $OUT .= '<td class="label">' . ($$_{required} ? qq[ *<strong class="required">$$_{label}</strong>] : "$$_{label}") . '</td>';562 $OUT .= '<td class="label">' . ($$_{required} ? qq[<strong class="required">$$_{label}</strong>] : "$$_{label}") . '</td>'; 561 563 } 562 564 … … 575 577 576 578 $OUT .= ' <td class="label">'; 577 $OUT .= (grep { $$_{required} } @group_fields) ? qq[ *<strong class="required">$$line[1]{label}</strong>] : "$$line[1]{label}";579 $OUT .= (grep { $$_{required} } @group_fields) ? qq[<strong class="required">$$line[1]{label}</strong>] : "$$line[1]{label}"; 578 580 $OUT .= qq[</td>\n]; 579 581 … … 1289 1291 =head2 Language/Parser 1290 1292 1291 Debug flag (that sets/unsets C<$::RD_TRACE> in the parser) 1293 Support the C<multiple> attribute for a field. 1292 1294 1293 1295 Make sure that multiple runs of the parser don't share data. … … 1306 1308 =head2 Code generation/Templates 1307 1309 1308 Expose some of the currently private functions to be able to get the generated1309 code text directly, without printing.1310 1311 1310 Revise the generated form constructing code to use the C<fieldopts> 1312 1311 option to C<< FB->new >>; will require FB 3.02 to run.
Note: See TracChangeset
for help on using the changeset viewer.