- Timestamp:
- 05/11/05 14:28:57 (20 years ago)
- Location:
- trunk
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Changes
r82 r84 2 2 3 3 0.11 4 * added support for the 'multiple' attribute on fields 4 5 * added as_script and as_module methods that just return the 5 6 Perl code -
trunk/lib/Text/FormBuilder.pm
r83 r84 1135 1135 static 1136 1136 1137 For multi-select fields, append a C<*> to the field type: 1138 1139 colors:select* 1140 1137 1141 To change the size of the input field, add a bracketed subscript after the 1138 1142 field name (but before the descriptive label): … … 1291 1295 =head2 Language/Parser 1292 1296 1293 Support the C<multiple> attribute for a field.1294 1295 1297 Make sure that multiple runs of the parser don't share data. 1296 1298 -
trunk/lib/Text/FormBuilder/grammar
r81 r84 19 19 @options, 20 20 $required, 21 $multiple, 21 22 $list_var, 22 23 $size, … … 187 188 188 189 # this is the real heart of the thing 189 field: name field_size(?) growable(?) label(?) hint(?) type(?) other(?) default(?) option_list(?) validate(?) comment(?)190 field: name field_size(?) growable(?) label(?) hint(?) type(?) multi(?) other(?) default(?) option_list(?) validate(?) comment(?) 190 191 { 191 192 my $field = { … … 194 195 label => $item{'label(?)'}[0], 195 196 comment => $item{'hint(?)'}[0], 197 multiple => $item{'multi(?)'}[0], 196 198 type => $item{'type(?)'}[0], 197 199 other => $item{'other(?)'}[0], … … 218 220 $type = undef; 219 221 $required = undef; 222 $multiple = undef; 220 223 $list_var = undef; 221 224 $size = undef; … … 254 257 builtin_field: /textarea|text|password|file|checkbox|radio|select|hidden|static/ 255 258 259 multi: '*' { 1 } 260 256 261 other: '+' 'other' { 1 } 257 262 -
trunk/t/01-field.t
r76 r84 12 12 label => undef, 13 13 list => undef, 14 multiple => undef, 14 15 name => undef, 15 16 other => undef,
Note: See TracChangeset
for help on using the changeset viewer.