The admin_ticket screen is now fully responsive. Woohoo!
This commit is contained in:
parent
0f648ddac2
commit
27ba6ebc78
@ -515,10 +515,9 @@ require_once(HESK_PATH . 'inc/show_admin_nav.inc.php');
|
||||
?>
|
||||
<div class="blankSpace"></div>
|
||||
<!-- BEGIN TICKT HEAD -->
|
||||
<table class="table table-bordered">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td colspan="20" style="border-bottom: 0px">
|
||||
<div class="table-bordered">
|
||||
<div class="row">
|
||||
<div class="col-md-12">
|
||||
<h3>
|
||||
<?php
|
||||
if ($ticket['archive'])
|
||||
@ -531,11 +530,16 @@ require_once(HESK_PATH . 'inc/show_admin_nav.inc.php');
|
||||
}
|
||||
echo $ticket['subject'];
|
||||
?></h3>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="10" style="border-width: 0px"><?php echo $hesklang['created_on'].': '.hesk_date($ticket['dt']); ?> <?php echo $hesklang['last_update'].': '.hesk_date($ticket['lastchange']); ?></td>
|
||||
<td colspan="10" style="border-width: 0px; text-align: right">
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col-md-3 col-sm-12">
|
||||
<p><?php echo $hesklang['created_on'].': '.hesk_date($ticket['dt']); ?></p>
|
||||
</div>
|
||||
<div class="col-md-3 col-sm-12">
|
||||
<p><?php echo $hesklang['last_update'].': '.hesk_date($ticket['lastchange']); ?></p>
|
||||
</div>
|
||||
<div class="col-md-2 col-md-offset-4 col-sm-12 close-ticket">
|
||||
<?php
|
||||
$random=rand(10000,99999);
|
||||
|
||||
@ -569,10 +573,10 @@ require_once(HESK_PATH . 'inc/show_admin_nav.inc.php');
|
||||
href="change_status.php?track='.$trackingID.'&s='.$staffReopenedStatus['ID'].'&Refresh='.$random.'&token='.hesk_token_echo(0).'">'.$hesklang['open_action'].'</a>';
|
||||
}
|
||||
?>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="20" style="border-width: 0px">
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col-md-12">
|
||||
<b><i><?php echo $hesklang['notes']; ?>: </i></b>
|
||||
<?php
|
||||
if ($can_reply)
|
||||
@ -591,27 +595,26 @@ require_once(HESK_PATH . 'inc/show_admin_nav.inc.php');
|
||||
<input type="hidden" name="token" value="<?php hesk_token_echo(); ?>" />
|
||||
</form>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
</div>
|
||||
</div>
|
||||
<div class="blankSpace"></div>
|
||||
<?php
|
||||
$res = hesk_dbQuery("SELECT t1.*, t2.`name` FROM `".hesk_dbEscape($hesk_settings['db_pfix'])."notes` AS t1 LEFT JOIN `".hesk_dbEscape($hesk_settings['db_pfix'])."users` AS t2 ON t1.`who` = t2.`id` WHERE `ticket`='".intval($ticket['id'])."' ORDER BY t1.`id` " . ($hesk_settings['new_top'] ? 'DESC' : 'ASC') );
|
||||
while ($note = hesk_dbFetchAssoc($res))
|
||||
{
|
||||
?>
|
||||
<tr>
|
||||
<td colspan="20" class="notes" style="padding: 10px; border: #ffe6b8 1px solid">
|
||||
<div class="row">
|
||||
<div class="col-md-12 alert-warning">
|
||||
<?php if ($can_del_notes || $note['who'] == $_SESSION['id']) { ?><p><a href="admin_ticket.php?track=<?php echo $trackingID; ?>&Refresh=<?php echo mt_rand(10000,99999); ?>&delnote=<?php echo $note['id']; ?>&token=<?php hesk_token_echo(); ?>" onclick="return hesk_confirmExecute('<?php echo hesk_makeJsString($hesklang['delnote']).'?'; ?>');"><i class="fa fa-times"></i> Delete Note</a></p><?php }?>
|
||||
<p><i><?php echo $hesklang['noteby']; ?> <b><?php echo ($note['name'] ? $note['name'] : $hesklang['e_udel']); ?></b></i> - <?php echo hesk_date($note['dt']); ?></p>
|
||||
<p><?php echo $note['message']; ?></p>
|
||||
</td>
|
||||
|
||||
</tr>
|
||||
</div>
|
||||
</div>
|
||||
<?php
|
||||
}
|
||||
?>
|
||||
<tr class="medLowPriority">
|
||||
<div class="row medLowPriority">
|
||||
<?php
|
||||
$hesk_settings['ticketColumnWidth'] = 5;
|
||||
|
||||
$options = array(
|
||||
0 => '<option value="0">'.$hesklang['critical'].'</option>',
|
||||
@ -620,10 +623,10 @@ require_once(HESK_PATH . 'inc/show_admin_nav.inc.php');
|
||||
3 => '<option value="3">'.$hesklang['low'].'</option>'
|
||||
);
|
||||
|
||||
echo '<td colspan="'.$hesk_settings['ticketColumnWidth'].'" ';
|
||||
if ($ticket['priority'] == 0) {echo 'class="criticalPriority">';}
|
||||
elseif ($ticket['priority'] == 1) {echo 'class="highPriority">';}
|
||||
else {echo 'class="medLowPriority">';}
|
||||
echo '<div class="ticket-cell-admin col-md-3 col-sm-12 ';
|
||||
if ($ticket['priority'] == 0) {echo 'criticalPriority">';}
|
||||
elseif ($ticket['priority'] == 1) {echo 'highPriority">';}
|
||||
else {echo 'medLowPriority">';}
|
||||
|
||||
echo '<p class="ticketPropertyTitle">'.$hesklang['priority'].'</p>';
|
||||
|
||||
@ -648,9 +651,9 @@ require_once(HESK_PATH . 'inc/show_admin_nav.inc.php');
|
||||
|
||||
</form>
|
||||
|
||||
</td>';
|
||||
</div>';
|
||||
|
||||
echo '<td colspan="'.$hesk_settings['ticketColumnWidth'].'"><p class="ticketPropertyTitle">'.$hesklang['status'].'</p>';
|
||||
echo '<div class="col-md-3 col-sm-12 ticket-cell-admin"><p class="ticketPropertyTitle">'.$hesklang['status'].'</p>';
|
||||
$status_options = array();
|
||||
$results = hesk_dbQuery("SELECT `ID`, `ShortNameContentKey` FROM `".hesk_dbEscape($hesk_settings['db_pfix'])."statuses`");
|
||||
while ($row = $results->fetch_assoc())
|
||||
@ -673,8 +676,8 @@ require_once(HESK_PATH . 'inc/show_admin_nav.inc.php');
|
||||
<input type="hidden" name="token" value="'.hesk_token_echo(0).'" />
|
||||
</span>
|
||||
</form>
|
||||
</td>';
|
||||
echo '<td colspan="'.$hesk_settings['ticketColumnWidth'].'"><p class="ticketPropertyTitle">'.$hesklang['owner'].'</p>
|
||||
</div>';
|
||||
echo '<div class="col-md-3 col-sm-12 ticket-cell-admin"><p class="ticketPropertyTitle">'.$hesklang['owner'].'</p>
|
||||
<p class="ticketPropertyText">';
|
||||
|
||||
echo isset($admins[$ticket['owner']]) ? $admins[$ticket['owner']] :
|
||||
@ -707,8 +710,8 @@ require_once(HESK_PATH . 'inc/show_admin_nav.inc.php');
|
||||
<input type="hidden" name="token" value="'.hesk_token_echo(0).'" />
|
||||
</span>';
|
||||
}
|
||||
echo '</form></td>';
|
||||
echo '<td colspan="'.$hesk_settings['ticketColumnWidth'].'"><p class="ticketPropertyTitle">'.$hesklang['category'].'</p>
|
||||
echo '</form></div>';
|
||||
echo '<div class="col-md-3 col-sm-12 ticket-cell-admin"><p class="ticketPropertyTitle">'.$hesklang['category'].'</p>
|
||||
<p class="ticketPropertyText">'.$category['name'].'</p>';
|
||||
|
||||
if ($can_change_cat)
|
||||
@ -730,11 +733,11 @@ require_once(HESK_PATH . 'inc/show_admin_nav.inc.php');
|
||||
|
||||
</form>'; }
|
||||
|
||||
echo '</td>';
|
||||
echo '</div>';
|
||||
?>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
<div class="blankSpace"></div>
|
||||
<!-- END TICKET HEAD -->
|
||||
|
||||
<?php
|
||||
|
@ -43,6 +43,15 @@
|
||||
}
|
||||
}
|
||||
|
||||
@media (max-width:991px) {
|
||||
.ticket-cell-admin {
|
||||
border-bottom: solid 1px #ddd;
|
||||
border-right: 0;
|
||||
padding-top: 5px;
|
||||
height: 125px;
|
||||
}
|
||||
}
|
||||
|
||||
@media (min-width:992px) {
|
||||
.ticket-cell {
|
||||
border-bottom: 0;
|
||||
@ -53,6 +62,16 @@
|
||||
}
|
||||
}
|
||||
|
||||
@media (min-width:992px) {
|
||||
.ticket-cell-admin {
|
||||
border-bottom: 0;
|
||||
border-right: solid 1px #ddd;
|
||||
margin-top: 1px;
|
||||
height: 125px;
|
||||
padding-top: 10px;
|
||||
}
|
||||
}
|
||||
|
||||
.row {
|
||||
margin-left: 0px;
|
||||
margin-right: 0px;
|
||||
|
Loading…
x
Reference in New Issue
Block a user