X-Git-Url: http://git.shiar.net/perl/html-form-simple.git/blobdiff_plain/90a3c98cbb649006619309f2d5f665453018bcdd..6eae428dce74b830c31c1ac528a64670957805c8:/lib/HTML/Form/Simple.pm diff --git a/lib/HTML/Form/Simple.pm b/lib/HTML/Form/Simple.pm index 33da2b6..fa7d7ae 100644 --- a/lib/HTML/Form/Simple.pm +++ b/lib/HTML/Form/Simple.pm @@ -171,7 +171,7 @@ sub select { sub radio { my $self = shift; - my ($name, $label, $rows, $attr) = $self->_attr(3, @_); + my ($name, $rows, $label, $attr) = $self->_attr(3, @_); if (not defined $rows) { if (defined $label) { @@ -237,7 +237,7 @@ HTML::Form::Simple - Generate HTML form elements msg => 'Textarea default', {rows => 4, style => 'background:red'} ) ], [ Gender => join ' or ', $input->radio( - sex => ['m', 'f'] + sex => [qw(m f)], [qw(Male Female)] ) ], [ Colour => scalar $input->select( favcolour => [qw(Blue Green Red)], 'Green' @@ -252,12 +252,6 @@ HTML::Form::Simple - Generate HTML form elements =over -=item C|C parameter order - -Row options (hash ref details) are inconsistent: -on labels for C, on values for C. -Make behaviour more logical. - =item C method $input->hidden(foo => $input->default('foo')); @@ -276,6 +270,10 @@ Actual descriptions instead of just a synopsis. Allow custom value quotation function. Makes L dependency optional. +=item single checkbox id + +Do not add value to single check() by default. + =back =head1 AUTHOR