* Wed Nov 05 2025 Brian Read <brianr@koozali.org> 11.0-2.sme

- Refactor filenames, routes etc to bring it into line with other modules, v11 to reflect SME11 [SME: 13274]
This commit is contained in:
2025-11-05 10:21:04 +00:00
parent c444e8ec87
commit 16598ff52b
9 changed files with 116 additions and 112 deletions

View File

@@ -1,11 +1,11 @@
% layout 'default', title => "Sme server 2 - qmh";
% layout 'default', title => "Sme server 2 - pfhandle";
% content_for 'module' => begin
<div id="module" class="module qmh-panel">
<div id="module" class="module pfh-panel">
% if (config->{debug} == 1) {
<p>
%= dumper $c->current_route
%= dumper $qmh_datas
%= dumper $pfh_data
</p>
%}
% if ( stash 'error' ) {
@@ -16,41 +16,41 @@
<h1><%= $title %></h1>
% my $btn = l('PERFORM');
% my $url = '/qmh';
% my $url = '/pfhandle';
%= form_for "$url" => (method => 'POST') => begin
% if ($qmh_datas->{trt} eq 'LST') {
%= $c->render_to_string(inline => $c->l('qmh_QMH_DESC'));
% if ($pfh_data->{trt} eq 'LST') {
%= $c->render_to_string(inline => $c->l('pfh_DESC'));
<p>
<span class=label>
%=l 'qmh_SELECT_AN_ACTION'
%=l 'pfh_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') {
% if ($pfh_data->{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');
% if ($pfh_data->{trt} eq 'DEL') {
% $btn = l('pfh_RETURN_TO_QUEUE');
%= $c->render_to_string( inline => stash 'modul' )
%= hidden_field 'msgid' => $qmh_datas->{msgid}
% $qmh_datas->{trt} = 'LST';
%= hidden_field 'msgid' => $pfh_data->{msgid}
% $pfh_data->{trt} = 'LST';
%}
% if ($qmh_datas->{trt} eq 'MSG') {
% if ($pfh_data->{trt} eq 'MSG') {
% $btn = l('Delete');
%= $c->render_to_string( inline => stash 'modul' )
%= hidden_field 'msgid' => $qmh_datas->{msgid}
% $qmh_datas->{trt} = 'DEL';
%= hidden_field 'msgid' => $pfh_data->{msgid}
% $pfh_data->{trt} = 'DEL';
%}
<div class='center'>
%= submit_button "$btn", class => 'action'
</div>
%= hidden_field 'trt' => $qmh_datas->{trt}
%= hidden_field 'altq' => $qmh_datas->{altq}
%= hidden_field 'trt' => $pfh_data->{trt}
%= hidden_field 'altq' => $pfh_data->{altq}
% end
</div>
%end
%end