summaryrefslogtreecommitdiffstats
path: root/usr
diff options
context:
space:
mode:
authorPeter Bouwdewijn <peter.bouwdewijn@gmail.com>2015-04-23 00:03:44 +0200
committerPeter Bouwdewijn <peter.bouwdewijn@gmail.com>2015-04-23 00:03:44 +0200
commitf0b20c3f261d6c0b30926011450e2eb4b725dc77 (patch)
tree2e8eb5e435da1520fe2b148ba609ec41d6bdf57c /usr
parentba8749edbb86dbf27091a0d2e61ea1d1ea7ecbaf (diff)
downloadpfsense-f0b20c3f261d6c0b30926011450e2eb4b725dc77.zip
pfsense-f0b20c3f261d6c0b30926011450e2eb4b725dc77.tar.gz
#126
Wrapped table in table responsive div.
Diffstat (limited to 'usr')
-rw-r--r--usr/local/www/services_wol.php64
1 files changed, 33 insertions, 31 deletions
diff --git a/usr/local/www/services_wol.php b/usr/local/www/services_wol.php
index 0cae1b1..635b2b5 100644
--- a/usr/local/www/services_wol.php
+++ b/usr/local/www/services_wol.php
@@ -162,39 +162,41 @@ print $form;
<div class="panel-body">
<p><?=gettext("Click the MAC address to wake up an individual device.")?></p>
- <table class="table">
- <thead>
- <tr>
- <th><?=gettext("Interface")?></th>
- <th><?=gettext("MAC address")?></th>
- <th><?=gettext("Description")?></th>
- <th></th>
- </tr>
- </thead>
- <tbody>
- <?php foreach ($a_wol as $i => $wolent): ?>
+ <div class="table-responsive">
+ <table class="table">
+ <thead>
<tr>
- <td>
- <?=convert_friendly_interface_to_friendly_descr($wolent['interface']);?>
- </td>
- <td>
- <a href="?mac=<?=$wolent['mac'];?>&amp;if=<?=$wolent['interface'];?>"><?=strtolower($wolent['mac']);?></a>
- </td>
- <td>
- <?=htmlspecialchars($wolent['descr']);?>
- </td>
- <td>
- <a class="btn btn-xs btn-primary" href="services_wol_edit.php?id=<?=$i?>">
- edit
- </a>
- <a class="btn btn-xs btn-danger" href="services_wol.php?act=del&amp;id=<?=$i?>" onclick="return confirm('<?=gettext("Do you really want to delete this entry?")?>')">
- delete
- </a>
- </td>
+ <th><?=gettext("Interface")?></th>
+ <th><?=gettext("MAC address")?></th>
+ <th><?=gettext("Description")?></th>
+ <th></th>
</tr>
- <?php endforeach?>
- </tbody>
- </table>
+ </thead>
+ <tbody>
+ <?php foreach ($a_wol as $i => $wolent): ?>
+ <tr>
+ <td>
+ <?=convert_friendly_interface_to_friendly_descr($wolent['interface']);?>
+ </td>
+ <td>
+ <a href="?mac=<?=$wolent['mac'];?>&amp;if=<?=$wolent['interface'];?>"><?=strtolower($wolent['mac']);?></a>
+ </td>
+ <td>
+ <?=htmlspecialchars($wolent['descr']);?>
+ </td>
+ <td>
+ <a class="btn btn-xs btn-primary" href="services_wol_edit.php?id=<?=$i?>">
+ edit
+ </a>
+ <a class="btn btn-xs btn-danger" href="services_wol.php?act=del&amp;id=<?=$i?>" onclick="return confirm('<?=gettext("Do you really want to delete this entry?")?>')">
+ delete
+ </a>
+ </td>
+ </tr>
+ <?php endforeach?>
+ </tbody>
+ </table>
+ </div>
</div>
<div class="panel-footer">
<a class="btn btn-success" href="services_wol_edit.php">
OpenPOWER on IntegriCloud