Hi,


%= check_box "some-name" => (class => "form-control")




should do exactly that.

You can check it with this one-liner:



$> perl -Mojo -E 'a({inline => "%= check_box \"some-name\" => (class => 
\"form-control\")"})->start' get /




Returning:


<input class="form-control" name="some-name" type="checkbox">





BR,
Daniel

El jueves, 21 de febrero de 2019, 17:00:00 (UTC-3), Alex Povolotsky 
escribió:
>
> Hello, 
>
> I've spent 3 hours trying to add checkbox to BootstrapHelper's toolbar 
> with form. 
>
> I've tried everything I was able to imagine, but did not get anything 
> better that 
>
> <input class="form-control" name type>
>
> This should be possible, I guess, but I have not idea on correct syntax...
> ---
> Alex
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Mojolicious" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to mojolicious+unsubscr...@googlegroups.com.
To post to this group, send email to mojolicious@googlegroups.com.
Visit this group at https://groups.google.com/group/mojolicious.
For more options, visit https://groups.google.com/d/optout.

Reply via email to