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>
|
<div class="blankSpace"></div>
|
||||||
<!-- BEGIN TICKT HEAD -->
|
<!-- BEGIN TICKT HEAD -->
|
||||||
<table class="table table-bordered">
|
<div class="table-bordered">
|
||||||
<tbody>
|
<div class="row">
|
||||||
<tr>
|
<div class="col-md-12">
|
||||||
<td colspan="20" style="border-bottom: 0px">
|
|
||||||
<h3>
|
<h3>
|
||||||
<?php
|
<?php
|
||||||
if ($ticket['archive'])
|
if ($ticket['archive'])
|
||||||
@ -531,11 +530,16 @@ require_once(HESK_PATH . 'inc/show_admin_nav.inc.php');
|
|||||||
}
|
}
|
||||||
echo $ticket['subject'];
|
echo $ticket['subject'];
|
||||||
?></h3>
|
?></h3>
|
||||||
</td>
|
</div>
|
||||||
</tr>
|
</div>
|
||||||
<tr>
|
<div class="row">
|
||||||
<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>
|
<div class="col-md-3 col-sm-12">
|
||||||
<td colspan="10" style="border-width: 0px; text-align: right">
|
<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
|
<?php
|
||||||
$random=rand(10000,99999);
|
$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>';
|
href="change_status.php?track='.$trackingID.'&s='.$staffReopenedStatus['ID'].'&Refresh='.$random.'&token='.hesk_token_echo(0).'">'.$hesklang['open_action'].'</a>';
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
</td>
|
</div>
|
||||||
</tr>
|
</div>
|
||||||
<tr>
|
<div class="row">
|
||||||
<td colspan="20" style="border-width: 0px">
|
<div class="col-md-12">
|
||||||
<b><i><?php echo $hesklang['notes']; ?>: </i></b>
|
<b><i><?php echo $hesklang['notes']; ?>: </i></b>
|
||||||
<?php
|
<?php
|
||||||
if ($can_reply)
|
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(); ?>" />
|
<input type="hidden" name="token" value="<?php hesk_token_echo(); ?>" />
|
||||||
</form>
|
</form>
|
||||||
</div>
|
</div>
|
||||||
</td>
|
</div>
|
||||||
</tr>
|
</div>
|
||||||
|
<div class="blankSpace"></div>
|
||||||
<?php
|
<?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') );
|
$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))
|
while ($note = hesk_dbFetchAssoc($res))
|
||||||
{
|
{
|
||||||
?>
|
?>
|
||||||
<tr>
|
<div class="row">
|
||||||
<td colspan="20" class="notes" style="padding: 10px; border: #ffe6b8 1px solid">
|
<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 }?>
|
<?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><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>
|
<p><?php echo $note['message']; ?></p>
|
||||||
</td>
|
</div>
|
||||||
|
</div>
|
||||||
</tr>
|
|
||||||
<?php
|
<?php
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
<tr class="medLowPriority">
|
<div class="row medLowPriority">
|
||||||
<?php
|
<?php
|
||||||
$hesk_settings['ticketColumnWidth'] = 5;
|
|
||||||
|
|
||||||
$options = array(
|
$options = array(
|
||||||
0 => '<option value="0">'.$hesklang['critical'].'</option>',
|
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>'
|
3 => '<option value="3">'.$hesklang['low'].'</option>'
|
||||||
);
|
);
|
||||||
|
|
||||||
echo '<td colspan="'.$hesk_settings['ticketColumnWidth'].'" ';
|
echo '<div class="ticket-cell-admin col-md-3 col-sm-12 ';
|
||||||
if ($ticket['priority'] == 0) {echo 'class="criticalPriority">';}
|
if ($ticket['priority'] == 0) {echo 'criticalPriority">';}
|
||||||
elseif ($ticket['priority'] == 1) {echo 'class="highPriority">';}
|
elseif ($ticket['priority'] == 1) {echo 'highPriority">';}
|
||||||
else {echo 'class="medLowPriority">';}
|
else {echo 'medLowPriority">';}
|
||||||
|
|
||||||
echo '<p class="ticketPropertyTitle">'.$hesklang['priority'].'</p>';
|
echo '<p class="ticketPropertyTitle">'.$hesklang['priority'].'</p>';
|
||||||
|
|
||||||
@ -648,9 +651,9 @@ require_once(HESK_PATH . 'inc/show_admin_nav.inc.php');
|
|||||||
|
|
||||||
</form>
|
</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();
|
$status_options = array();
|
||||||
$results = hesk_dbQuery("SELECT `ID`, `ShortNameContentKey` FROM `".hesk_dbEscape($hesk_settings['db_pfix'])."statuses`");
|
$results = hesk_dbQuery("SELECT `ID`, `ShortNameContentKey` FROM `".hesk_dbEscape($hesk_settings['db_pfix'])."statuses`");
|
||||||
while ($row = $results->fetch_assoc())
|
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).'" />
|
<input type="hidden" name="token" value="'.hesk_token_echo(0).'" />
|
||||||
</span>
|
</span>
|
||||||
</form>
|
</form>
|
||||||
</td>';
|
</div>';
|
||||||
echo '<td colspan="'.$hesk_settings['ticketColumnWidth'].'"><p class="ticketPropertyTitle">'.$hesklang['owner'].'</p>
|
echo '<div class="col-md-3 col-sm-12 ticket-cell-admin"><p class="ticketPropertyTitle">'.$hesklang['owner'].'</p>
|
||||||
<p class="ticketPropertyText">';
|
<p class="ticketPropertyText">';
|
||||||
|
|
||||||
echo isset($admins[$ticket['owner']]) ? $admins[$ticket['owner']] :
|
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).'" />
|
<input type="hidden" name="token" value="'.hesk_token_echo(0).'" />
|
||||||
</span>';
|
</span>';
|
||||||
}
|
}
|
||||||
echo '</form></td>';
|
echo '</form></div>';
|
||||||
echo '<td colspan="'.$hesk_settings['ticketColumnWidth'].'"><p class="ticketPropertyTitle">'.$hesklang['category'].'</p>
|
echo '<div class="col-md-3 col-sm-12 ticket-cell-admin"><p class="ticketPropertyTitle">'.$hesklang['category'].'</p>
|
||||||
<p class="ticketPropertyText">'.$category['name'].'</p>';
|
<p class="ticketPropertyText">'.$category['name'].'</p>';
|
||||||
|
|
||||||
if ($can_change_cat)
|
if ($can_change_cat)
|
||||||
@ -730,11 +733,11 @@ require_once(HESK_PATH . 'inc/show_admin_nav.inc.php');
|
|||||||
|
|
||||||
</form>'; }
|
</form>'; }
|
||||||
|
|
||||||
echo '</td>';
|
echo '</div>';
|
||||||
?>
|
?>
|
||||||
</tr>
|
</div>
|
||||||
</tbody>
|
</div>
|
||||||
</table>
|
<div class="blankSpace"></div>
|
||||||
<!-- END TICKET HEAD -->
|
<!-- END TICKET HEAD -->
|
||||||
|
|
||||||
<?php
|
<?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) {
|
@media (min-width:992px) {
|
||||||
.ticket-cell {
|
.ticket-cell {
|
||||||
border-bottom: 0;
|
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 {
|
.row {
|
||||||
margin-left: 0px;
|
margin-left: 0px;
|
||||||
margin-right: 0px;
|
margin-right: 0px;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user