summaryrefslogtreecommitdiffstats
path: root/src/usr/local/www/diag_tables.php
diff options
context:
space:
mode:
authorStephen Beaver <sbeaver@netgate.com>2016-01-13 15:11:23 -0500
committerStephen Beaver <sbeaver@netgate.com>2016-01-13 15:11:23 -0500
commit060ed23871a0933021e68078efceb6ed64658d82 (patch)
tree434e5315f7aefb15e389f439133a9a41e40340f7 /src/usr/local/www/diag_tables.php
parentd642aca406161552dbd6b2c19585eaba42a242a6 (diff)
downloadpfsense-060ed23871a0933021e68078efceb6ed64658d82.zip
pfsense-060ed23871a0933021e68078efceb6ed64658d82.tar.gz
Fixed #5566
Diffstat (limited to 'src/usr/local/www/diag_tables.php')
-rw-r--r--src/usr/local/www/diag_tables.php54
1 files changed, 33 insertions, 21 deletions
diff --git a/src/usr/local/www/diag_tables.php b/src/usr/local/www/diag_tables.php
index a90442a..d66e21a 100644
--- a/src/usr/local/www/diag_tables.php
+++ b/src/usr/local/www/diag_tables.php
@@ -126,6 +126,12 @@ if ($savemsg) {
print_info_box($savemsg, 'success');
}
+if ($tablename == "webConfiguratorlockout") {
+ $displayname = "Web configurator lockout table";
+} else {
+ $displayname = ucfirst($tablename) . " table";
+}
+
$form = new Form(false);
$section = new Form_Section('Table to display');
@@ -202,33 +208,39 @@ events.push(function() {
//]]>
</script>
-<div class="table-responsive">
- <table class="table table-striped table-hover table-condensed">
- <thead>
- <tr>
- <th><?=gettext("IP Address")?></th>
- <th></th>
- </tr>
- </thead>
- <tbody>
+<div class="panel panel-default">
+ <div class="panel-heading"><h2 class="panel-title"><?=$displayname?></h2></div>
+ <div class="panel-body">
+ <div class="table-responsive">
+ <table class="table table-striped table-hover table-condensed">
+ <thead>
+ <tr>
+ <th><?=gettext("IP Address")?></th>
+ <th></th>
+ </tr>
+ </thead>
+ <tbody>
<?php
foreach ($entries as $entry):
$entry = trim($entry);
?>
- <tr>
- <td>
- <?=$entry?>
- </td>
- <td>
- <?php if (!$bogons): ?>
- <a class="btn btn-xs btn-default" data-entry="<?=htmlspecialchars($entry)?>">Remove</a>
- <?php endif ?>
- </td>
- </tr>
+ <tr>
+ <td>
+ <?=$entry?>
+ </td>
+ <td>
+ <?php if (!$bogons): ?>
+ <a class="btn btn-xs btn-default" data-entry="<?=htmlspecialchars($entry)?>">Remove</a>
+ <?php endif ?>
+ </td>
+ </tr>
<?php endforeach ?>
- </tbody>
- </table>
+ </tbody>
+ </table>
+ </div>
+ </div>
</div>
+
<?php if (empty($entries)): ?>
<div class="alert alert-warning" role="alert">No entries exist in this table</div>
<?php endif ?>
OpenPOWER on IntegriCloud