1
0
mirror of https://github.com/billz/raspap-webgui.git synced 2023-10-10 13:37:24 +02:00

Revert "fix markup in networking"

This reverts commit 8dbb2f3a1b005d671b56d776a1327a11db732cfb.
This commit is contained in:
glaszig 2021-04-22 16:31:58 +01:00
parent 8dbb2f3a1b
commit f6c4d2b1d8

View File

@ -1,77 +1,84 @@
<div class="row"> <div class="row">
<div class="col-lg-12"> <div class="col-lg-12">
<div class="card"> <div class="card">
<div class="card-header"> <div class="card-header">
<div class="row">
<div class="col">
<i class="fas fa-network-wired mr-2"></i><?php echo _("Networking"); ?> <i class="fas fa-network-wired mr-2"></i><?php echo _("Networking"); ?>
</div> </div>
</div><!-- ./row -->
</div><!-- ./card-header -->
<div class="card-body"> <div class="card-body">
<div id="msgNetworking"></div> <div id="msgNetworking"></div>
<ul class="nav nav-tabs">
<h4 class="card-title mt-3"><?php echo _("Internet connection"); ?></h4> <li role="presentation" class="nav-item"><a class="nav-link active" href="#summary" aria-controls="summary" role="tab" data-toggle="tab"><?php echo _("Summary"); ?></a></li>
<div class="row"> </ul>
<div class="col-sm-12"> <div class="tab-content">
<div class="table-responsive"> <div role="tabpanel" class="tab-pane active" id="summary">
<table class="table"> <h4 class="mt-3"><?php echo _("Internet connection"); ?></h4>
<thead> <div class="row">
<tr> <div class="col-sm-12">
<th><?php echo _("Interface"); ?></th> <div class="table-responsive">
<th><?php echo _("IP Address"); ?></th> <table class="table">
<th><?php echo _("Gateway"); ?></th> <thead>
<th colspan="2"><?php echo _("Internet Access"); ?></th> <tr>
</tr> <th><?php echo _("Interface"); ?></th>
</thead> <th><?php echo _("IP Address"); ?></th>
<tbody> <th><?php echo _("Gateway"); ?></th>
<?php if (isset($routeInfo["error"]) || empty($routeInfo)): ?> <th colspan="2"><?php echo _("Internet Access"); ?></th>
<tr><td colspan=5>No route to the internet found</td></tr> </tr>
<?php else: ?> </thead>
<?php foreach($routeInfo as $route): ?> <tbody>
<tr> <?php if (isset($routeInfo["error"]) || empty($routeInfo)): ?>
<td><?php echo $route['interface'] ?></td> <tr><td colspan=5>No route to the internet found</td></tr>
<td><?php echo $route['ip-address'] ?></td> <?php else: ?>
<td><?php echo $route['gateway'] ?><br><?php $route['gw-name'] ?></td> <?php foreach($routeInfo as $route): ?>
<td> <tr>
<p class="m-0"> <td><?php echo $route['interface'] ?></td>
<i class="fas <?php echo $route["access-ip"] ? "fa-check" : "fa-times"; ?>"></i> <?php echo RASPI_ACCESS_CHECK_IP ?> <td><?php echo $route['ip-address'] ?></td>
</p> <td><?php echo $route['gateway'] ?><br><?php $route['gw-name'] ?></td>
<p class="m-0"> <td>
<i class="fas <?php echo $route["access-dns"] ? "fa-check" : "fa-times"; ?>"></i> <?php echo RASPI_ACCESS_CHECK_DNS ?> <p class="m-0">
</p> <i class="fas <?php echo $route["access-ip"] ? "fa-check" : "fa-times"; ?>"></i> <?php echo RASPI_ACCESS_CHECK_IP ?>
</td> </p>
</tr> <p class="m-0">
<?php endforeach ?> <i class="fas <?php echo $route["access-dns"] ? "fa-check" : "fa-times"; ?>"></i> <?php echo RASPI_ACCESS_CHECK_DNS ?>
<?php endif ?> </p>
</tbody> </td>
</table> </tr>
<?php endforeach ?>
<?php endif ?>
</tbody>
</table>
</div>
</div>
</div> </div>
</div> <h4 class="mt-3"><?php echo _("Current settings") ?></h4>
</div> <div class="row">
<?php if (!$bridgedEnabled) : // No interface details when bridged ?>
<?php foreach ($interfaces as $if): ?>
<h4 class="card-title mt-3"><?php echo _("Current settings") ?></h4> <?php $if_quoted = htmlspecialchars($if, ENT_QUOTES) ?>
<div class="row"> <div class="col-md-6 mb-3">
<?php if (!$bridgedEnabled): // No interface details when bridged ?> <div class="card">
<?php foreach ($interfaces as $if): ?> <div class="card-header"><?php echo $if_quoted ?></div>
<?php $if_quoted = htmlspecialchars($if, ENT_QUOTES) ?> <div class="card-body">
<div class="col-md-6 mb-3"> <pre class="unstyled" id="<?php echo $if_quoted ?>-summary"></pre>
<div class="card"> </div>
<div class="card-header"><?php echo $if_quoted ?></div> </div>
<div class="card-body"> </div>
<pre class="unstyled" id="<?php echo $if_quoted ?>-summary"></pre> <?php endforeach ?>
<?php endif ?>
</div><!-- /.row -->
<div class="col-lg-12">
<div class="row">
<button type="button" onClick="window.location.reload();" class="btn btn-outline btn-primary"><i class="fas fa-sync-alt"></i> <?php echo _("Refresh") ?></a>
</div> </div>
</div> </div>
</div> </div>
<?php endforeach ?> </div>
<?php endif ?>
</div><!-- /.row -->
<button type="button" onClick="window.location.reload();" class="btn btn-outline btn-primary"><i class="fas fa-sync-alt"></i> <?php echo _("Refresh") ?></a>
</div><!-- /.card-body --> </div><!-- /.card-body -->
<div class="card-footer"><?php echo _("Information provided by /sys/class/net"); ?></div>
<div class="card-footer">
<?php echo _("Information provided by /sys/class/net"); ?>
</div>
</div><!-- /.card --> </div><!-- /.card -->
</div><!-- /.col-lg-12 --> </div><!-- /.col-lg-12 -->
</div><!-- /.row --> </div><!-- /.row -->