Revision 060ed238
Added by Stephen Beaver over 9 years ago
src/usr/local/www/system_gateways.php | ||
---|---|---|
264 | 264 |
display_top_tabs($tab_array); |
265 | 265 |
|
266 | 266 |
?> |
267 |
<table class="table"> |
|
268 |
<thead> |
|
269 |
<tr> |
|
270 |
<th></th> |
|
271 |
<th><?=gettext("Name")?></th> |
|
272 |
<th><?=gettext("Interface")?></th> |
|
273 |
<th><?=gettext("Gateway")?></th> |
|
274 |
<th><?=gettext("Monitor IP")?></th> |
|
275 |
<th><?=gettext("Description")?></th> |
|
276 |
<th><?=gettext("Actions")?></th> |
|
277 |
</tr> |
|
278 |
</thead> |
|
279 |
<tbody> |
|
267 |
<div class="panel panel-default"> |
|
268 |
<div class="panel-heading"><h2 class="panel-title"><?=gettext('Gateways')?></h2></div> |
|
269 |
<div class="panel-body"> |
|
270 |
<div class="table-responsive"> |
|
271 |
<table class="table table-striped tabel-hover table-condensed"> |
|
272 |
<thead> |
|
273 |
<tr> |
|
274 |
<th></th> |
|
275 |
<th><?=gettext("Name")?></th> |
|
276 |
<th><?=gettext("Interface")?></th> |
|
277 |
<th><?=gettext("Gateway")?></th> |
|
278 |
<th><?=gettext("Monitor IP")?></th> |
|
279 |
<th><?=gettext("Description")?></th> |
|
280 |
<th><?=gettext("Actions")?></th> |
|
281 |
</tr> |
|
282 |
</thead> |
|
283 |
<tbody> |
|
280 | 284 |
<?php |
281 | 285 |
foreach ($a_gateways as $i => $gateway): |
282 | 286 |
if (isset($gateway['inactive'])) { |
... | ... | |
293 | 297 |
$title = ''; |
294 | 298 |
} |
295 | 299 |
?> |
296 |
<tr<?=($icon != 'fa-check-circle-o')? ' class="disabled"' : ''?>> |
|
297 |
<td title="<?=$title?>"><i class="fa <?=$icon?>"></i></td> |
|
298 |
<td> |
|
299 |
<?=htmlspecialchars($gateway['name'])?> |
|
300 |
<tr<?=($icon != 'fa-check-circle-o')? ' class="disabled"' : ''?>>
|
|
301 |
<td title="<?=$title?>"><i class="fa <?=$icon?>"></i></td>
|
|
302 |
<td>
|
|
303 |
<?=htmlspecialchars($gateway['name'])?>
|
|
300 | 304 |
<?php |
301 | 305 |
if (isset($gateway['defaultgw'])) { |
302 | 306 |
echo " <strong>(default)</strong>"; |
303 | 307 |
} |
304 | 308 |
?> |
305 |
</td> |
|
306 |
<td> |
|
307 |
<?=htmlspecialchars(convert_friendly_interface_to_friendly_descr($gateway['friendlyiface']))?> |
|
308 |
</td> |
|
309 |
<td> |
|
310 |
<?=htmlspecialchars($gateway['gateway'])?> |
|
311 |
</td> |
|
312 |
<td> |
|
313 |
<?=htmlspecialchars($gateway['monitor'])?> |
|
314 |
</td> |
|
315 |
<td> |
|
316 |
<?=htmlspecialchars($gateway['descr'])?> |
|
317 |
</td> |
|
318 |
<td> |
|
319 |
<a href="system_gateways_edit.php?id=<?=$i?>" class="fa fa-pencil" title="<?=gettext('Edit');?>"></a> |
|
320 |
<a href="system_gateways_edit.php?dup=<?=$i?>" class="fa fa-clone" title="<?=gettext('Copy')?>"></a> |
|
309 |
</td>
|
|
310 |
<td>
|
|
311 |
<?=htmlspecialchars(convert_friendly_interface_to_friendly_descr($gateway['friendlyiface']))?>
|
|
312 |
</td>
|
|
313 |
<td>
|
|
314 |
<?=htmlspecialchars($gateway['gateway'])?>
|
|
315 |
</td>
|
|
316 |
<td>
|
|
317 |
<?=htmlspecialchars($gateway['monitor'])?>
|
|
318 |
</td>
|
|
319 |
<td>
|
|
320 |
<?=htmlspecialchars($gateway['descr'])?>
|
|
321 |
</td>
|
|
322 |
<td>
|
|
323 |
<a href="system_gateways_edit.php?id=<?=$i?>" class="fa fa-pencil" title="<?=gettext('Edit');?>"></a>
|
|
324 |
<a href="system_gateways_edit.php?dup=<?=$i?>" class="fa fa-clone" title="<?=gettext('Copy')?>"></a>
|
|
321 | 325 |
|
322 | 326 |
<?php if (is_numeric($gateway['attribute'])): ?> |
323 | 327 |
<?php if (isset($gateway['disabled'])) { |
324 | 328 |
?> |
325 |
<a href="?act=toggle&id=<?=$i?>" class="fa fa-check-square-o" title="<?=gettext('Enable')?>"></a> |
|
329 |
<a href="?act=toggle&id=<?=$i?>" class="fa fa-check-square-o" title="<?=gettext('Enable')?>"></a>
|
|
326 | 330 |
<?php } else { |
327 | 331 |
?> |
328 |
<a href="?act=toggle&id=<?=$i?>" class="fa fa-ban" title="<?=gettext('Disable')?>"></a> |
|
332 |
<a href="?act=toggle&id=<?=$i?>" class="fa fa-ban" title="<?=gettext('Disable')?>"></a>
|
|
329 | 333 |
<?php } |
330 | 334 |
?> |
331 |
<a href="system_gateways.php?act=del&id=<?=$i?>" class="fa fa-trash" title="<?=gettext('Delete')?>"></a> |
|
335 |
<a href="system_gateways.php?act=del&id=<?=$i?>" class="fa fa-trash" title="<?=gettext('Delete')?>"></a>
|
|
332 | 336 |
|
333 | 337 |
<?php endif; ?> |
334 |
</td> |
|
335 |
</tr> |
|
338 |
</td>
|
|
339 |
</tr>
|
|
336 | 340 |
<?php endforeach; ?> |
337 |
</tbody> |
|
338 |
</table> |
|
341 |
</tbody> |
|
342 |
</table> |
|
343 |
</div> |
|
344 |
</div> |
|
345 |
</div> |
|
339 | 346 |
|
340 | 347 |
<nav class="action-buttons"> |
341 | 348 |
<a href="system_gateways_edit.php" role="button" class="btn btn-success"> |
Also available in: Unified diff
Fixed #5566