Subject: | wrapper compound reset and submit form field |
my Form defined:
has_field 'form_action' => ( type => compound );
has_field 'form_action.reset' => (type => 'Reset');
has_field 'form_action.submit' => ( type => 'Submit');
I want the Rest button and Submit button were wrapped in a div with
class of "form-actions":
<div class="form-actions">
<input type=submit >
<input type=reset >
</div>
but I got this ,when i use this widget:
<div class="form-actions">
<input type=reset >
</div>
<div class="form-actions">
<input type=submit >
</div>
I look the code of HTML::FormHandler::Widget::Wrapper::Bootstrap, found
that , in line 17, function wrap_field:
17 my $form_actions = 1 if ( $self->name eq 'form_actions' || $self-
Show quoted text
>type_attr eq 'submit'
18 || $self->type_attr eq 'reset' );
I think the code should look whether the reset and submit field in a
compound field. if that, wrap them together.
can i use other method to get it ?
if none, i very hope you fix this :)
very thanks !