mirror of
https://github.com/lucaspalomodevelop/core.git
synced 2026-03-15 00:54:41 +00:00
(legacy) add collapse for status_interfaces.php, closes https://github.com/opnsense/core/issues/583
This commit is contained in:
parent
813d76cae7
commit
a9fa3d528b
@ -52,6 +52,13 @@ if ($_SERVER['REQUEST_METHOD'] === 'POST') {
|
||||
|
||||
include("head.inc");
|
||||
?>
|
||||
<script type="text/javascript">
|
||||
$( document ).ready(function() {
|
||||
$("#collapse_all").click(function(){
|
||||
$(".interface_details").collapse('toggle');
|
||||
});
|
||||
});
|
||||
</script>
|
||||
|
||||
<body>
|
||||
<?php include("fbegin.inc"); ?>
|
||||
@ -72,12 +79,21 @@ include("head.inc");
|
||||
<table class="table table-striped">
|
||||
<thead>
|
||||
<tr>
|
||||
<th colspan="2" class="listtopic">
|
||||
<th colspan="2">
|
||||
<i class="fa fa-chevron-down" style="cursor: pointer;" data-toggle="collapse" data-target="#<?=htmlspecialchars($ifname);?>"></i>
|
||||
<?=htmlspecialchars($ifname);?> <?=gettext("interface"); ?> (<?=htmlspecialchars($ifdescr);?>, <?=htmlspecialchars($ifinfo['hwif']);?>)
|
||||
<?php
|
||||
if (!isset($first_row)):
|
||||
$first_row=false;?>
|
||||
<div class="pull-right">
|
||||
<i class="fa fa-expand" id="collapse_all" style="cursor: pointer;" data-toggle="tooltip" title="<?=gettext("collapse/expand all");?>"></i>
|
||||
</div>
|
||||
<?php
|
||||
endif;?>
|
||||
</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tbody id="<?=htmlspecialchars($ifname);?>" class="interface_details collapse">
|
||||
<tr>
|
||||
<td width="22%"><?=gettext("Status"); ?></td>
|
||||
<td width="78%"><?=$ifinfo['status'];?></td>
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user