57 lines
1.5 KiB
Plaintext
57 lines
1.5 KiB
Plaintext
![]() |
% layout 'default', title => "Sme server 2 - qmh";
|
||
|
|
||
|
% content_for 'module' => begin
|
||
|
<div id="module" class="module qmh-panel">
|
||
|
% if ($config->{debug} == 1) {
|
||
|
<p>
|
||
|
%= dumper $c->current_route
|
||
|
%= dumper $qmh_datas
|
||
|
</p>
|
||
|
%}
|
||
|
% if ( stash 'error' ) {
|
||
|
<br><div class=sme-error>
|
||
|
%= $c->render_to_string(inline => stash 'error')
|
||
|
</div>
|
||
|
%}
|
||
|
<h1><%= $title %></h1>
|
||
|
|
||
|
% 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'));
|
||
|
<p>
|
||
|
<span class=label>
|
||
|
%=l 'qmh_SELECT_AN_ACTION'
|
||
|
</span><span class=data>
|
||
|
<!-- (to be sorted) -->
|
||
|
%= select_field 'Report_type' => $c->reportType_list()
|
||
|
</span>
|
||
|
</p>
|
||
|
%}
|
||
|
% 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';
|
||
|
%}
|
||
|
<div class='center'>
|
||
|
%= submit_button "$btn", class => 'action'
|
||
|
</div>
|
||
|
%= hidden_field 'trt' => $qmh_datas->{trt}
|
||
|
%= hidden_field 'altq' => $qmh_datas->{altq}
|
||
|
% end
|
||
|
</div>
|
||
|
%end
|