plugins: remove use of $main_buttons

PR: https://github.com/opnsense/core/issues/4216
This commit is contained in:
Franco Fichtner 2021-06-14 16:13:14 +02:00
parent 76ec2c13ae
commit a0ddf96645
6 changed files with 18 additions and 18 deletions

View file

@ -1,6 +1,6 @@
PLUGIN_NAME= dyndns
PLUGIN_VERSION= 1.24
PLUGIN_REVISION= 1
PLUGIN_REVISION= 2
PLUGIN_COMMENT= Dynamic DNS Support
PLUGIN_MAINTAINER= franco@opnsense.org

View file

@ -67,10 +67,6 @@ include("head.inc");
legacy_html_escape_form_data($a_dyndns);
$main_buttons = array(
array('label' => gettext('Add'), 'href' => 'services_dyndns_edit.php'),
);
?>
<body>
<script>
@ -125,7 +121,11 @@ $main_buttons = array(
<th><?=gettext("Hostname");?></th>
<th><?=gettext("Cached IP");?></th>
<th><?=gettext("Description");?></th>
<th class="text-nowrap"></th>
<th class="text-nowrap">
<a href="services_dyndns_edit.php" class="btn btn-primary btn-xs" data-toggle="tooltip" title="<?= html_safe(gettext('Add')) ?>">
<i class="fa fa-plus fa-fw"></i>
</a>
</th>
</tr>
</thead>
<tbody>

View file

@ -1,6 +1,6 @@
PLUGIN_NAME= rfc2136
PLUGIN_VERSION= 1.6
PLUGIN_REVISION= 1
PLUGIN_REVISION= 2
PLUGIN_COMMENT= RFC-2136 Support
PLUGIN_MAINTAINER= franco@opnsense.org
PLUGIN_DEPENDS= bind-tools

View file

@ -65,10 +65,6 @@ include("head.inc");
legacy_html_escape_form_data($a_rfc2136);
$main_buttons = array(
array('label' => gettext('Add'), 'href' => 'services_rfc2136_edit.php'),
);
?>
<body>
<script>
@ -124,7 +120,11 @@ $main_buttons = array(
<th><?=gettext("Hostname");?></th>
<th><?=gettext("Cached IP");?></th>
<th><?=gettext("Description");?></th>
<th class"text-nowrap"></th>
<th class"text-nowrap">
<a href="services_rfc2136_edit.php" class="btn btn-primary btn-xs" data-toggle="tooltip" title="<?= html_safe(gettext('Add')) ?>">
<i class="fa fa-plus fa-fw"></i>
</a>
</th>
</tr>
</thead>
<tbody>

View file

@ -1,6 +1,6 @@
PLUGIN_NAME= igmp-proxy
PLUGIN_VERSION= 1.5
PLUGIN_REVISION= 1
PLUGIN_REVISION= 2
PLUGIN_DEPENDS= igmpproxy
PLUGIN_COMMENT= IGMP-Proxy Service
PLUGIN_MAINTAINER= franco@opnsense.org

View file

@ -53,10 +53,6 @@ include("head.inc");
legacy_html_escape_form_data($a_igmpproxy);
$main_buttons = array(
array('label' => gettext('Add'), 'href' => 'services_igmpproxy_edit.php'),
);
?>
<body>
<script>
@ -102,7 +98,11 @@ $main_buttons = array(
<td><?=gettext("Type");?></td>
<td><?=gettext("Values");?></td>
<td><?=gettext("Description");?></td>
<td class="text-nowrap"></td>
<td class="text-nowrap">
<a href="services_igmpproxy_edit.php" class="btn btn-primary btn-xs" data-toggle="tooltip" title="<?= html_safe(gettext('Add')) ?>">
<i class="fa fa-plus fa-fw"></i>
</a>
</td>
</tr>
</thead>
<tbody>