blib/lib/auto/share/module/Dist-Zilla-MintingProfile-FB11/Form/Form.pm untested

filter: Statementstmt 0.0% 0 / 19 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 4 Podpod n/a totaltotal 0.0% 0 / 23 CC 1 SCAR 6.9
CC
1
Cov
0%
BEGIN
2.0
BEGIN
2.0
BEGIN
2.0
CRAP 2.0
1 package {{ $name }};
2  
3 use OpusVL::FB11::Plugin::FormHandler;
4 #with 'HTML::FormHandler::TraitFor::Model::DBIC';
5 with 'OpusVL::FB11::RolesFor::Form::Parsley';
6  
7 #use HTML::FormHandler::Types qw/Collapse Trim/;
8  
9 use v5.20;
10 use warnings;
11 use strict;
12  
13 # ABSTRACT: A Form for a thing.
14 our $VERSION = '0';
15  
16 #has_field name => (
17 # type => 'Text',
18 # required => 1,
19 #);
20  
21 has_field submit_it => (
22 type => 'Submit',
23 widget => 'ButtonTag',
24 widget_wrapper => 'None',
25 value => '<i class="fa fa-floppy-o"></i> Save',
26 element_attr => { class => ['btn', 'btn-primary']},
27 );
28  
29  
30 #sub validate {
31 # my $self = shift;
32  
33 # unless ($self->field('fieldname') SOMETHING) {
34 # $self->field('fieldname')->add_error('Error message');
35 # }
36 #}
37  
38  
39 1;
40  
41 __END__