Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

attributes for radio inputs #13

Closed
wants to merge 2 commits into from

2 participants

@aes0p

individual radio fields in the group should be able to have standard input attributes, e.g. class

@gshank
Owner

This got lost, sorry. Finally applied.

@gshank gshank closed this
@aes0p

thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Apr 29, 2011
  1. individual radio fields in the group should be able to have standard …

    aesop authored
    …input attributes, e.g. class
Commits on Sep 23, 2011
This page is out of date. Refresh to see the latest.
Showing with 2 additions and 0 deletions.
  1. +2 −0  lib/HTML/FormHandler/Widget/Field/RadioGroup.pm
View
2  lib/HTML/FormHandler/Widget/Field/RadioGroup.pm
@@ -5,6 +5,7 @@ use Moose::Role;
use namespace::autoclean;
with 'HTML::FormHandler::Widget::Field::Role::SelectedOption';
+with 'HTML::FormHandler::Widget::Field::Role::HTMLAttributes';
sub render {
my $self = shift;
@@ -19,6 +20,7 @@ sub render {
. $self->html_name . qq{" id="$id.$index"};
$output .= ' checked="checked"'
if $self->check_selected_option($option, $result->fif);
+ $output .= $self->_add_html_attributes;
$output .= ' />';
$output .= $self->html_filter($option->{label}) . '</label><br />';
$index++;
Something went wrong with that request. Please try again.