diff options
author | Stephen Beaver <sbeaver@netgate.com> | 2015-10-27 16:44:33 -0400 |
---|---|---|
committer | Stephen Beaver <sbeaver@netgate.com> | 2015-10-27 16:44:33 -0400 |
commit | c238653ebac579969d449587eb04c27804454dc9 (patch) | |
tree | 20e958fb4a74c77859d96f57fe0c06e2bd19f167 | |
parent | 678a52f16d7a58da83b27bdc568d8b7a1d347582 (diff) | |
parent | 1629e8ea4a1ebe8d7796e33a82d432ace8c9315e (diff) | |
download | pfsense-c238653ebac579969d449587eb04c27804454dc9.zip pfsense-c238653ebac579969d449587eb04c27804454dc9.tar.gz |
Merge pull request #1992 from heper/patch-1
-rw-r--r-- | src/usr/local/www/system_gateways.php | 27 |
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&id=<?=$i?>"> - delete - </a> - <a class="btn btn-xs btn-default" href="?act=toggle&id=<?=$i?>"> - toggle - </a> + <?php if (isset($gateway['disabled'])) { + ?> + <a href="?act=toggle&id=<?=$i?>" class="fa fa-check-square-o" title="<?=gettext('Enable')?>"></a> + <?php } else { + ?> + <a href="?act=toggle&id=<?=$i?>" class="fa fa-ban" title="<?=gettext('Disable')?>"></a> + <?php } + ?> + <a href="system_gateways.php?act=del&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"); |