% layout 'default', title => "Sme server 2 - pfhandle"; % content_for 'module' => begin
% if (config->{debug} == 1) {

%= dumper $c->current_route %= dumper $pfh_data

%} % if ( stash 'error' ) {
%= $c->render_to_string(inline => stash 'error')
%}

<%= $title %>

% my $btn = l('PERFORM'); % my $url = '/pfhandle'; %= form_for "$url" => (method => 'POST') => begin % if ($pfh_data->{trt} eq 'LST') { %= $c->render_to_string(inline => $c->l('pfh_DESC'));

%=l 'pfh_SELECT_AN_ACTION' %= select_field 'Report_type' => $c->reportType_list()

%} % if ($pfh_data->{trt} eq 'REP') { % $btn = l('NEXT'); %= $c->render_to_string( inline => stash 'modul' ) %} % if ($pfh_data->{trt} eq 'DEL') { % $btn = l('pfh_RETURN_TO_QUEUE'); %= $c->render_to_string( inline => stash 'modul' ) %= hidden_field 'msgid' => $pfh_data->{msgid} % $pfh_data->{trt} = 'LST'; %} % if ($pfh_data->{trt} eq 'MSG') { % $btn = l('Delete'); %= $c->render_to_string( inline => stash 'modul' ) %= hidden_field 'msgid' => $pfh_data->{msgid} % $pfh_data->{trt} = 'DEL'; %}
%= submit_button "$btn", class => 'action'
%= hidden_field 'trt' => $pfh_data->{trt} %= hidden_field 'altq' => $pfh_data->{altq} % end
%end