summaryrefslogtreecommitdiffstats
path: root/src/usr/local/www/system_gateways.php
diff options
context:
space:
mode:
authorheper <heper@users.noreply.github.com>2015-10-27 21:37:48 +0100
committerheper <heper@users.noreply.github.com>2015-10-27 21:37:48 +0100
commit1629e8ea4a1ebe8d7796e33a82d432ace8c9315e (patch)
tree20e958fb4a74c77859d96f57fe0c06e2bd19f167 /src/usr/local/www/system_gateways.php
parent678a52f16d7a58da83b27bdc568d8b7a1d347582 (diff)
downloadpfsense-1629e8ea4a1ebe8d7796e33a82d432ace8c9315e.zip
pfsense-1629e8ea4a1ebe8d7796e33a82d432ace8c9315e.tar.gz
system_gateways font-awesome convert
https://forum.pfsense.org/index.php?topic=101343.15
Diffstat (limited to 'src/usr/local/www/system_gateways.php')
-rw-r--r--src/usr/local/www/system_gateways.php27
1 files changed, 14 insertions, 13 deletions
diff --git a/src/usr/local/www/system_gateways.php b/src/usr/local/www/system_gateways.php
index c524b37..79dd5c0 100644
--- a/src/usr/local/www/system_gateways.php
+++ b/src/usr/local/www/system_gateways.php
@@ -306,19 +306,20 @@ foreach ($a_gateways as $i => $gateway):
<?=htmlspecialchars($gateway['descr'])?>
</td>
<td>
- <a class="btn btn-xs btn-primary" href="system_gateways_edit.php?id=<?=$i?>">
- edit
- </a>
- <a class="btn btn-xs btn-default" href="system_gateways_edit.php?dup=<?=$i?>">
- copy
- </a>
+ <a href="system_gateways_edit.php?id=<?=$i?>" class="fa fa-pencil" title="<?=gettext("edit");?>"></a>
+ <a href="system_gateways_edit.php?dup=<?=$i?>" class="fa fa-clone" title="<?=gettext('Copy')?>"></a>
+
<? if (is_numeric($gateway['attribute'])): ?>
- <a class="btn btn-xs btn-danger" href="system_gateways.php?act=del&amp;id=<?=$i?>">
- delete
- </a>
- <a class="btn btn-xs btn-default" href="?act=toggle&amp;id=<?=$i?>">
- toggle
- </a>
+ <?php if (isset($gateway['disabled'])) {
+ ?>
+ <a href="?act=toggle&amp;id=<?=$i?>" class="fa fa-check-square-o" title="<?=gettext('Enable')?>"></a>
+ <?php } else {
+ ?>
+ <a href="?act=toggle&amp;id=<?=$i?>" class="fa fa-ban" title="<?=gettext('Disable')?>"></a>
+ <?php }
+ ?>
+ <a href="system_gateways.php?act=del&amp;id=<?=$i?>" class="fa fa-trash" title="<?=gettext('Delete')?>" onclick="return confirm('<?=gettext("Are you sure you want to delete this gateway?")?>')"></a>
+
<? endif?>
</td>
</tr>
@@ -333,4 +334,4 @@ foreach ($a_gateways as $i => $gateway):
</nav>
<?php
-include("foot.inc"); \ No newline at end of file
+include("foot.inc");
OpenPOWER on IntegriCloud