Files
smeserver-pfhandle/root/usr/share/smanager/themes/default/templates/pfhandle.html.ep
Brian Read 16598ff52b * 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]
2025-11-05 10:21:04 +00:00

56 lines
1.5 KiB
Plaintext

% layout 'default', title => "Sme server 2 - pfhandle";
% content_for 'module' => begin
<div id="module" class="module pfh-panel">
% if (config->{debug} == 1) {
<p>
%= dumper $c->current_route
%= dumper $pfh_data
</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 = '/pfhandle';
%= form_for "$url" => (method => 'POST') => begin
% if ($pfh_data->{trt} eq 'LST') {
%= $c->render_to_string(inline => $c->l('pfh_DESC'));
<p>
<span class=label>
%=l 'pfh_SELECT_AN_ACTION'
</span><span class=data>
<!-- (to be sorted) -->
%= select_field 'Report_type' => $c->reportType_list()
</span>
</p>
%}
% 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';
%}
<div class='center'>
%= submit_button "$btn", class => 'action'
</div>
%= hidden_field 'trt' => $pfh_data->{trt}
%= hidden_field 'altq' => $pfh_data->{altq}
% end
</div>
%end