line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Catalyst::Controller::FormBuilder::MultiForm::Action::TT; |
2
|
|
|
|
|
|
|
|
3
|
4
|
|
|
4
|
|
316677
|
use strict; |
|
4
|
|
|
|
|
8
|
|
|
4
|
|
|
|
|
122
|
|
4
|
4
|
|
|
4
|
|
22
|
use warnings; |
|
4
|
|
|
|
|
8
|
|
|
4
|
|
|
|
|
156
|
|
5
|
|
|
|
|
|
|
|
6
|
4
|
|
|
4
|
|
59
|
use base qw| Catalyst::Controller::FormBuilder::Action::TT |; |
|
4
|
|
|
|
|
7
|
|
|
4
|
|
|
|
|
3297
|
|
7
|
|
|
|
|
|
|
|
8
|
|
|
|
|
|
|
sub setup_template_vars |
9
|
|
|
|
|
|
|
{ |
10
|
26
|
|
|
26
|
0
|
1031908
|
my $self = shift; |
11
|
26
|
|
|
|
|
65
|
my ( $controller, $c ) = @_; |
12
|
|
|
|
|
|
|
|
13
|
26
|
|
|
|
|
134
|
$self->SUPER::setup_template_vars(@_); |
14
|
|
|
|
|
|
|
|
15
|
|
|
|
|
|
|
# Get the name of this form from the formbuilder data |
16
|
26
|
|
|
|
|
121765
|
my $form_name = $controller->_formbuilder->name; |
17
|
|
|
|
|
|
|
|
18
|
|
|
|
|
|
|
# Get configuration data from our formbuilder instance |
19
|
26
|
|
|
|
|
5697
|
my $stash_name = $controller->_fb_setup->{stash_name}; |
20
|
26
|
|
|
|
|
2667
|
my $obj_name = $controller->_fb_setup->{obj_name}; |
21
|
26
|
|
|
|
|
2709
|
my $multiform_name = $controller->_stash_name; |
22
|
|
|
|
|
|
|
|
23
|
|
|
|
|
|
|
# If a form name is defined, create aliases to this form in our forms hash |
24
|
26
|
50
|
|
|
|
2671
|
if ( defined $form_name ) |
25
|
|
|
|
|
|
|
{ |
26
|
26
|
|
|
|
|
99
|
$c->stash->{$multiform_name}{$form_name}{$stash_name} = $c->stash->{$stash_name}; |
27
|
26
|
|
|
|
|
3631
|
$c->stash->{$multiform_name}{$form_name}{$obj_name} = $c->stash->{$obj_name}; |
28
|
|
|
|
|
|
|
} |
29
|
|
|
|
|
|
|
} |
30
|
|
|
|
|
|
|
|
31
|
|
|
|
|
|
|
1; |