Jifty/Web/Form/Field/InlineButton.pm untested

filter: Statementstmt 0.0% 0 / 9 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 8 Podpod 0.0% 0 / 5 totaltotal 0.0% 0 / 22 CC 1 SCAR 6.9
CC
1
Cov
0%
render_wrapper_start
2.0
render_wrapper_end
2.0
render_preamble
2.0
CRAP 2.0
1 use warnings;
2 use strict;
3
4 package Jifty::Web::Form::Field::InlineButton;
5  
6 use base qw/Jifty::Web::Form::Field::Button/;
7  
8 =head1 NAME
9  
10 Jifty::Web::Form::Field::InlineButton - Add buttons without a form
11  
12 =head1 METHODS
13  
14 =head2 render
15  
16 Overrides the default render sub to print a span, not a div and not print labels and preambles and hints
17  
18 XXX TODO the superclass should be more general, so we can just override those things to not print
19  
20 =cut
21  
22 =head2 render_wrapper_start
23  
24 Don't show a wrapper for an inline button
25  
26 =head2 render_wrapper_end
27  
28 Don't show a wrapper for an inline button
29  
30 =head2 render_preamble
31  
32 Don't show a label for an inline button
33  
34 =head2 render_label
35  
36 Don't show a label for an inline button
37  
38 =head2 render_hints
39  
40 Don't show hints for an inline button
41  
42 =cut
43  
44  
45  
46 sub render_wrapper_start { }
47 sub render_wrapper_end {}
48 sub render_preamble {}
49 sub render_label {}
50 sub render_hints {}
51  
52 1;