summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/usr/local/www/system_routes.php29
1 files changed, 14 insertions, 15 deletions
diff --git a/src/usr/local/www/system_routes.php b/src/usr/local/www/system_routes.php
index 600d872..686ca1c 100644
--- a/src/usr/local/www/system_routes.php
+++ b/src/usr/local/www/system_routes.php
@@ -273,21 +273,20 @@ foreach ($a_routes as $i => $route):
<?=htmlspecialchars($route['descr'])?>
</td>
<td>
- <a class="btn btn-xs btn-primary" href="system_routes_edit.php?id=<?=$i?>">
- edit
- </a>
+ <a href="system_routes_edit.php?id=<?=$i?>" class="fa fa-pencil" title="<?=gettext('Edit')?>"></a>
+
+ <a href="system_routes_edit.php?dup=<?=$i?>" class="fa fa-clone" title="<?=gettext('Copy')?>"></a>
+
+ <?php if (isset($route['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_routes.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 route?")?>')"></a>
- <a class="btn btn-xs btn-default" href="system_routes_edit.php?dup=<?=$i?>">
- copy
- </a>
-
- <a class="btn btn-xs btn-danger" href="system_routes.php?act=del&amp;id=<?=$i?>">
- delete
- </a>
-
- <a class="btn btn-xs btn-default" href="?act=toggle&amp;id=<?=$i?>">
- toggle
- </a>
</td>
<? endforeach?>
</tr>
@@ -300,4 +299,4 @@ foreach ($a_routes as $i => $route):
</nav>
<?php
-include("foot.inc"); \ No newline at end of file
+include("foot.inc");
OpenPOWER on IntegriCloud