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.40067'; |
4
|
2
|
|
|
2
|
|
1320
|
use Moose; |
|
2
|
|
|
|
|
2
|
|
|
2
|
|
|
|
|
14
|
|
5
|
|
|
|
|
|
|
extends 'HTML::FormHandler::Field::NoValue'; |
6
|
|
|
|
|
|
|
|
7
|
|
|
|
|
|
|
|
8
|
|
|
|
|
|
|
has '+widget' => ( default => 'Span' ); |
9
|
|
|
|
|
|
|
|
10
|
|
|
|
|
|
|
__PACKAGE__->meta->make_immutable; |
11
|
2
|
|
|
2
|
|
9003
|
use namespace::autoclean; |
|
2
|
|
|
|
|
3
|
|
|
2
|
|
|
|
|
18
|
|
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.40067 |
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) 2016 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 |