Debian Codegraph @

lib/HTML/FormHandler/Field/NonEditable.pm

raw
1 package HTML::FormHandler::Field::NonEditable;
2 # ABSTRACT: reset field
3 $HTML::FormHandler::Field::NonEditable::VERSION = '0.410002';
4 use Moose;
5 extends 'HTML::FormHandler::Field::NoValue';
6
7
8 has '+widget' => ( default => 'Span' );
9
10 __PACKAGE__->meta->make_immutable;
11 use namespace::autoclean;
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.410002
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