summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-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