Changeset 81 in text-formbuilder for trunk/lib/Text/FormBuilder


Ignore:
Timestamp:
04/13/05 11:34:05 (20 years ago)
Author:
peichman
Message:

added a !reset directive to name and include a reset button

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/lib/Text/FormBuilder/grammar

    r80 r81  
    6464                () 
    6565            ), 
     66            reset => $formspec{reset}, 
    6667        } 
    6768    } 
     
    111112field_line: <skip:'[ \t]*'> ( field | comment | blank ) "\n" 
    112113 
    113 line: <skip:'[ \t]*'> ( title | author | pattern_def | section_head | heading | submit | group_field | field_group | unknown_directive | field | comment | blank ) /\n+/ 
     114line: <skip:'[ \t]*'> ( title | author | pattern_def | section_head | heading | submit | reset | group_field | field_group | unknown_directive | field | comment | blank ) /\n+/ 
    114115 
    115116title: '!title' /.*/ 
     
    155156        #warn scalar(@{ $item[2] }) . ' submit button(s)'; 
    156157        push @submit, @{ $item[2] }; 
     158    } 
     159 
     160reset: '!reset' string 
     161    { 
     162        warn "[Text::FormBuilder] Reset button redefined at input text line $thisline\n" if defined $formspec{reset}; 
     163        $formspec{reset} = $item{string}; 
    157164    } 
    158165 
Note: See TracChangeset for help on using the changeset viewer.