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

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

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

<%= $title %>

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

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

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