package Yancy::Plugin::Form::Bootstrap4; our $VERSION = '1.081'; # ABSTRACT: Generate forms using Bootstrap 4 #pod =head1 SYNOPSIS #pod #pod use Mojolicious::Lite; #pod plugin Yancy => { #pod backend => 'pg://localhost/mysite', #pod read_schema => 1, #pod }; #pod app->yancy->plugin( 'Form::Bootstrap4' ); #pod # See Yancy::Controller::Yancy for routing #pod app->routes->get( '/people/:id/edit' )->to( #pod 'yancy#set', #pod schema => 'people', #pod template => 'edit_people', #pod ); #pod app->start; #pod __DATA__ #pod @@ edit_people.html.ep #pod %= $c->yancy->form->form_for( 'people' ); #pod #pod =head1 DESCRIPTION #pod #pod This plugin generates forms using the L. #pod #pod For details on the helpers added by this plugin, see #pod L. #pod #pod =head1 TEMPLATES #pod #pod To override these templates, add your own at the designated path inside #pod your app's C directory. #pod #pod =head2 yancy/form/bootstrap4/form.html.ep #pod #pod This template surrounds the form to create the C<<
>> element, #pod list all the fields, and add a submit button. Also includes a CSRF token. #pod #pod =head2 yancy/form/bootstrap4/field.html.ep #pod #pod This template surrounds a single form field to add a C<<