Changeset 70 in text-formbuilder for trunk


Ignore:
Timestamp:
03/15/05 12:59:51 (20 years ago)
Author:
peichman
Message:

updated docs to match some changed features in the code
removed ':' from group field labels in the template

File:
1 edited

Legend:

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

    r69 r70  
    150150     
    151151    # expand groups 
    152     if (my %groups = %{ $self->{form_spec}{groups} || {} }) { 
     152    if (my %groups = %{ $self->{form_spec}{groups} || {} }) {         
    153153        for my $section (@{ $self->{form_spec}{sections} || [] }) { 
    154154            foreach (grep { $$_[0] eq 'group' } @{ $$section{lines} }) { 
     
    327327# pass in the variable name of the form object 
    328328# (defaults to '$form') 
     329# TODO: revise this code to use the new 'fieldopts' 
     330# option to the FB constructor (requires FB 3.02) 
    329331sub _field_setup_code { 
    330332    my $self = shift; 
     
    521523                 
    522524                $OUT .= '    <th class="label">'; 
    523                 $OUT .= (grep { $$_{required} } @group_fields) ? qq[<strong class="required">$$line[1]{label}:</strong>] : "$$line[1]{label}:"; 
     525                $OUT .= (grep { $$_{required} } @group_fields) ? qq[<strong class="required">$$line[1]{label}</strong>] : "$$line[1]{label}"; 
    524526                $OUT .= qq[</th>\n]; 
    525527                 
     
    775777=head2 write_module 
    776778 
     779I<B<Note:> The code output from the C<write_*> methods may be in flux for 
     780the next few versions, as I coordinate with the B<FormBuilder> project.> 
     781 
    777782    $parser->write_module($package, $use_tidy); 
    778783 
     
    886891 
    887892    method => 'GET' 
    888     javascript => 0 
    889893    keepextras => 1 
    890894 
     
    913917        ... 
    914918    } 
    915      
    916     !list NAME &{ CODE } 
    917919     
    918920    !group NAME { 
     
    11851187Make the generated modules into subclasses of CGI::FormBuilder 
    11861188 
     1189Revise the generated form constructing code to use the C<fieldopts> 
     1190option to C<< FB->new >>; will require FB 3.02 to run. 
     1191 
    11871192Better integration with L<CGI::FormBuilder>'s templating system 
    11881193 
Note: See TracChangeset for help on using the changeset viewer.