firewall/nat: Add missing columns in one-to-one nat bootgrid (#8237)

Fixes: https://github.com/opnsense/core/issues/8235
This commit is contained in:
Monviech 2025-01-23 11:11:57 +01:00 committed by GitHub
parent 7335db7fb1
commit a05c23133d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 7 additions and 0 deletions

View File

@ -46,9 +46,15 @@ class OneToOneController extends \OPNsense\Base\IndexController
[
'id' => 'external', 'heading' => gettext('External')
],
[
'id' => 'source_not', 'type' => 'boolean', 'formatter' => 'boolean', 'visible' => 'false', 'heading' => gettext('Source / Invert')
],
[
'id' => 'source_net', 'heading' => gettext('Internal')
],
[
'id' => 'destination_not', 'type' => 'boolean', 'formatter' => 'boolean', 'visible' => 'false', 'heading' => gettext('Destination / Invert')
],
[
'id' => 'destination_net', 'heading' => gettext('Destination')
],

View File

@ -174,6 +174,7 @@
data-width="{{fieldlist['width']|default('')}}"
data-type="{{fieldlist['type']|default('string')}}"
data-formatter="{{fieldlist['formatter']|default('')}}"
data-visible="{{fieldlist['visible']|default('')}}"
>{{fieldlist['heading']|default('')}}</th>
{% endfor %}
<th data-column-id="commands" data-width="7em" data-formatter="commands" data-sortable="false">{{ lang._('Commands') }}</th>