File Coverage

blib/lib/HTML/FormHandler/Field/NonEditable.pm
Criterion Covered Total %
statement 6 6 100.0
branch n/a
condition n/a
subroutine 2 2 100.0
pod n/a
total 8 8 100.0


line stmt bran cond sub pod time code
1             package HTML::FormHandler::Field::NonEditable;
2             # ABSTRACT: reset field
3             $HTML::FormHandler::Field::NonEditable::VERSION = '0.40068';
4 2     2   2140 use Moose;
  2         6  
  2         22  
5             extends 'HTML::FormHandler::Field::NoValue';
6              
7              
8             has '+widget' => ( default => 'Span' );
9              
10             __PACKAGE__->meta->make_immutable;
11 2     2   15965 use namespace::autoclean;
  2         7  
  2         22  
12             1;
13              
14             __END__
15              
16             =pod
17              
18             =encoding UTF-8
19              
20             =head1 NAME
21              
22             HTML::FormHandler::Field::NonEditable - reset field
23              
24             =head1 VERSION
25              
26             version 0.40068
27              
28             =head1 SYNOPSIS
29              
30             Another flavor of a display field, but unlike L<HTML::FormHandler::Field::Display>
31             it's intended to be rendered somewhat more like a "real" field, like the
32             'non-editable' "fields" in Bootstrap.
33              
34             has_field 'source' => ( type => 'NonEditable', value => 'Outsourced' );
35              
36             By default uses the 'Span' widget.
37              
38             =head1 AUTHOR
39              
40             FormHandler Contributors - see HTML::FormHandler
41              
42             =head1 COPYRIGHT AND LICENSE
43              
44             This software is copyright (c) 2017 by Gerda Shank.
45              
46             This is free software; you can redistribute it and/or modify it under
47             the same terms as the Perl 5 programming language system itself.
48              
49             =cut