line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package HTML::FormWidgets::Note; |
2
|
|
|
|
|
|
|
|
3
|
1
|
|
|
1
|
|
689
|
use strict; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
25
|
|
4
|
1
|
|
|
1
|
|
5
|
use warnings; |
|
1
|
|
|
|
|
1
|
|
|
1
|
|
|
|
|
26
|
|
5
|
1
|
|
|
1
|
|
4
|
use parent 'HTML::FormWidgets'; |
|
1
|
|
|
|
|
1
|
|
|
1
|
|
|
|
|
6
|
|
6
|
|
|
|
|
|
|
|
7
|
|
|
|
|
|
|
__PACKAGE__->mk_accessors( qw( width ) ); |
8
|
|
|
|
|
|
|
|
9
|
|
|
|
|
|
|
sub init { |
10
|
1
|
|
|
1
|
1
|
2
|
my ($self, $args) = @_; |
11
|
|
|
|
|
|
|
|
12
|
1
|
|
|
|
|
5
|
$self->class ( q(note) ); |
13
|
1
|
|
|
|
|
8
|
$self->container( 0 ); |
14
|
1
|
|
|
|
|
7
|
$self->sep ( q() ); |
15
|
1
|
|
|
|
|
6
|
$self->width ( undef ); |
16
|
1
|
|
|
|
|
6
|
return; |
17
|
|
|
|
|
|
|
} |
18
|
|
|
|
|
|
|
|
19
|
|
|
|
|
|
|
sub render_field { |
20
|
1
|
|
|
1
|
1
|
2
|
my ($self, $args) = @_; |
21
|
|
|
|
|
|
|
|
22
|
1
|
|
|
|
|
3
|
$args = { class => $self->class, id => $self->id }; |
23
|
1
|
50
|
|
|
|
9
|
$self->width and $args->{style} .= ' width: '.$self->width.q(;); |
24
|
|
|
|
|
|
|
|
25
|
1
|
|
33
|
|
|
7
|
(my $text = $self->text || $self->loc( $self->name )) =~ s{ \A \n }{}msx; |
26
|
|
|
|
|
|
|
|
27
|
1
|
|
|
|
|
7
|
return $self->hacc->span( $args, $text ); |
28
|
|
|
|
|
|
|
} |
29
|
|
|
|
|
|
|
|
30
|
|
|
|
|
|
|
1; |
31
|
|
|
|
|
|
|
|
32
|
|
|
|
|
|
|
|
33
|
|
|
|
|
|
|
|
34
|
|
|
|
|
|
|
|
35
|
|
|
|
|
|
|
|
36
|
|
|
|
|
|
|
|