Skip to content
Snippets Groups Projects
Commit 993dbe61 authored by Jared Hancock's avatar Jared Hancock Committed by Peter Rotich
Browse files

queue: oops: Add checkboxes back to ticket listing

parent 0226dc4c
Branches
Tags
No related merge requests found
...@@ -115,6 +115,11 @@ return false;"> ...@@ -115,6 +115,11 @@ return false;">
<thead> <thead>
<tr> <tr>
<?php <?php
$canManageTickets = $thisstaff->canManageTickets();
if ($canManageTickets) { ?>
<th style="width:12px"></th>
<?php
}
foreach ($columns as $C) { foreach ($columns as $C) {
echo sprintf('<th width="%s">%s</th>', $C->getWidth(), echo sprintf('<th width="%s">%s</th>', $C->getWidth(),
Format::htmlchars($C->getHeading())); Format::htmlchars($C->getHeading()));
...@@ -125,6 +130,10 @@ foreach ($columns as $C) { ...@@ -125,6 +130,10 @@ foreach ($columns as $C) {
<?php <?php
foreach ($tickets as $T) { foreach ($tickets as $T) {
echo '<tr>'; echo '<tr>';
if ($canManageTickets) { ?>
<td><input type="checkbox" name="ckb[]" /></td>
<?php
}
foreach ($columns as $C) { foreach ($columns as $C) {
echo '<td class="offset">'; echo '<td class="offset">';
echo $C->render($T); echo $C->render($T);
...@@ -137,8 +146,8 @@ foreach ($tickets as $T) { ...@@ -137,8 +146,8 @@ foreach ($tickets as $T) {
<tfoot> <tfoot>
<tr> <tr>
<td colspan="7"> <td colspan="7">
<?php if($total && $thisstaff->canManageTickets()){ ?> <?php if ($total && $canManageTickets) {
<?php echo __('Select');?>:&nbsp; echo __('Select');?>:&nbsp;
<a id="selectAll" href="#ckb"><?php echo __('All');?></a>&nbsp;&nbsp; <a id="selectAll" href="#ckb"><?php echo __('All');?></a>&nbsp;&nbsp;
<a id="selectNone" href="#ckb"><?php echo __('None');?></a>&nbsp;&nbsp; <a id="selectNone" href="#ckb"><?php echo __('None');?></a>&nbsp;&nbsp;
<a id="selectToggle" href="#ckb"><?php echo __('Toggle');?></a>&nbsp;&nbsp; <a id="selectToggle" href="#ckb"><?php echo __('Toggle');?></a>&nbsp;&nbsp;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment