Edit template for controller - Refine params copy and bring DB opens up to spec with UTF8

This commit is contained in:
2025-10-06 10:57:00 +01:00
parent 29f8de63fd
commit ecb846fc6c
119 changed files with 10059 additions and 36 deletions

View File

@@ -0,0 +1,98 @@
<div>
% my $proto = $pf_datas->{proto};
% my $sport = $pf_datas->{sport};
% my $dport = $pf_datas->{dport};
% my $dhost = $pf_datas->{dhost};
% my $cmmnt = $pf_datas->{cmmnt};
% my $allow = $pf_datas->{allow};
% if (config->{debug} == 1) {
<pre>
<%= dumper $c->current_route %>
<%= dumper $c->stash("ret") %>
<%= dumper %$pf_datas %>
</pre>
% }
<form action="/smanager/portforwardinge" method="POST">
<br>
<div>
<%= l "pf_SUMMARY_REMOVE_DESC" %>
</div>
<br>
<table>
<thead>
<th class="col-md-4">&nbsp</th>
<th class="col-md-4">&nbsp</th>
</thead>
<tbody>
<tr >
<td>
<%= l "Protocol" %>
</td>
<td>
<%= $proto %>
</td>
</tr>
<tr>
<td>
<%= l "pf_LABEL_SOURCE_PORT" %>
</td>
<td>
<%= $sport %>
</td>
<tr>
<tr>
<td>
<%= l "pf_LABEL_DESTINATION_HOST" %>
</td>
<td>
<%= $dport %>
</td>
</tr>
<tr>
<td>
<%= l "pf_LABEL_DESTINATION_PORT" %>
</td>
<td>
<%= $dhost %>
</td>
</tr>
<tr>
<td>
<%= l "pf_RULE_COMMENT" %>
</td>
<td>
<%= $cmmnt %>
</td>
</tr>
<tr>
<td>
<%= l "pf_ALLOW_HOSTS" %>
</td>
<td>
<%= $allow %>
</td>
</tr>
</tbody>
</table>
<br>
<%= hidden_field sport=>$sport %>
<%= hidden_field proto=>$proto %>
% my $btn = l("REMOVE");
<div class="row g-3 align-items-center">
<div class="col-md-1">
<button type="submit" class="btn btn-primary btn-sm"><%= $btn %></button>
</div>
</div>
</form>
</div>