diff options
author | plumbeo <plumbeo@users.noreply.github.com> | 2016-12-21 22:37:23 +0100 |
---|---|---|
committer | Steve Beaver <sbeaver@netgate.com> | 2016-12-21 20:50:15 -0500 |
commit | 1f40cc7d3ff1de331745a1ff848eb59c84d0f76f (patch) | |
tree | 2d2f0cd1992708e9650b5734e533265db0c72b5d /src/usr/local/www/services_captiveportal_vouchers.php | |
parent | 3dc2d0f17790001c00ab846e844cd8cab4f5af53 (diff) | |
download | pfsense-1f40cc7d3ff1de331745a1ff848eb59c84d0f76f.zip pfsense-1f40cc7d3ff1de331745a1ff848eb59c84d0f76f.tar.gz |
Captive portal: convert tables to sortable tables
Convert the used vouchers table from the old GET order method to a sortable table, and make the other tables (allowed IPs, hostnames, zones) sortable too.
Diffstat (limited to 'src/usr/local/www/services_captiveportal_vouchers.php')
-rw-r--r-- | src/usr/local/www/services_captiveportal_vouchers.php | 18 |
1 files changed, 5 insertions, 13 deletions
diff --git a/src/usr/local/www/services_captiveportal_vouchers.php b/src/usr/local/www/services_captiveportal_vouchers.php index 4ce7982..b3611bd 100644 --- a/src/usr/local/www/services_captiveportal_vouchers.php +++ b/src/usr/local/www/services_captiveportal_vouchers.php @@ -385,7 +385,7 @@ display_top_tabs($tab_array, true); <div class="panel-heading"><h2 class="panel-title"><?=gettext("Voucher Rolls");?></h2></div> <div class="panel-body"> <div class="table-responsive"> - <table class="table table-striped table-hover table-condensed table-rowdblclickedit"> + <table class="table table-striped table-hover table-condensed table-rowdblclickedit sortable-theme-bootstrap" data-sortable> <thead> <tr> <th><?=gettext("Roll #")?></th> @@ -401,18 +401,10 @@ $i = 0; foreach ($a_roll as $rollent): ?> <tr> - <td> - <?=htmlspecialchars($rollent['number']); ?> - </td> - <td> - <?=htmlspecialchars($rollent['minutes'])?> - </td> - <td> - <?=htmlspecialchars($rollent['count'])?> - </td> - <td> - <?=htmlspecialchars($rollent['descr']); ?> - </td> + <td><?=htmlspecialchars($rollent['number']); ?></td> + <td><?=htmlspecialchars($rollent['minutes'])?></td> + <td><?=htmlspecialchars($rollent['count'])?></td> + <td><?=htmlspecialchars($rollent['descr']); ?></td> <td> <!-- These buttons are hidden/shown on checking the 'enable' checkbox --> <a class="fa fa-pencil" title="<?=gettext("Edit voucher roll"); ?>" href="services_captiveportal_vouchers_edit.php?zone=<?=$cpzone?>&id=<?=$i; ?>"></a> |