Fixed ticket view on ticket.php for mobile devices
This commit is contained in:
parent
3cc7c9ed07
commit
9e0f4ba01a
@ -98,6 +98,7 @@
|
|||||||
font-size: 20px;
|
font-size: 20px;
|
||||||
font-weight: 300;
|
font-weight: 300;
|
||||||
color: #000;
|
color: #000;
|
||||||
|
margin-top: 5px;
|
||||||
}
|
}
|
||||||
.ticketEmail {
|
.ticketEmail {
|
||||||
font-size: 14px;
|
font-size: 14px;
|
||||||
|
80
ticket.php
80
ticket.php
@ -319,51 +319,49 @@ require_once(HESK_PATH . 'inc/header.inc.php');
|
|||||||
/* Make sure original message is in correct color if newest are on top */
|
/* Make sure original message is in correct color if newest are on top */
|
||||||
$color = 'class="ticketMessageContainer"';
|
$color = 'class="ticketMessageContainer"';
|
||||||
?>
|
?>
|
||||||
<div <?php echo $color; ?>>
|
<div class="row ticketMessageContainer">
|
||||||
<div class="ticketHeader">
|
<div class="col-md-3 col-xs-12">
|
||||||
<div class="ticketName"><?php echo $ticket['name']; ?></div>
|
<div class="ticketName"><?php echo $ticket['name']; ?></div>
|
||||||
<div class="ticketEmail"><?php echo $ticket['email']; ?></div>
|
<div class="ticketEmail"><?php echo $ticket['email']; ?></div>
|
||||||
</div>
|
</div>
|
||||||
<div class="ticketMessage">
|
<div class="col-md-9 col-xs-12 pushMarginLeft">
|
||||||
<div class="ticketMessageTop withBorder">
|
<div class="ticketMessageTop withBorder">
|
||||||
<!-- Date and Action buttons -->
|
<!-- Date and Action buttons -->
|
||||||
<p><?php echo $hesklang['date']; ?>: <?php echo hesk_date($ticket['dt']); ?><span style="float: right"><?php echo hesk_getCustomerButtons($i); ?></span></p>
|
<p><?php echo $hesklang['date']; ?>: <?php echo hesk_date($ticket['dt']); ?><span style="float: right"><?php echo hesk_getCustomerButtons($i); ?></span></p>
|
||||||
<!-- Custom Fields Before Message -->
|
<!-- Custom Fields Before Message -->
|
||||||
<?php
|
<?php
|
||||||
foreach ($hesk_settings['custom_fields'] as $k=>$v)
|
foreach ($hesk_settings['custom_fields'] as $k=>$v)
|
||||||
{
|
{
|
||||||
if ($v['use'] && $v['place']==0)
|
if ($v['use'] && $v['place']==0)
|
||||||
{
|
{
|
||||||
echo '
|
echo '
|
||||||
<p>'.$v['name'].': '.$ticket[$k].'</p>';
|
<p>'.$v['name'].': '.$ticket[$k].'</p>';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="ticketMessageBottom">
|
<div class="ticketMessageBottom">
|
||||||
<!-- Message -->
|
<!-- Message -->
|
||||||
<p><b><?php echo $hesklang['message']; ?>:</b></p>
|
<p><b><?php echo $hesklang['message']; ?>:</b></p>
|
||||||
<p><?php echo $ticket['message']; ?><br /> </p>
|
<p class="message"><?php echo $ticket['message']; ?><br /> </p>
|
||||||
</div>
|
</div>
|
||||||
<div class="ticketMessageTop">
|
<div class="ticketMessageTop">
|
||||||
<!-- Custom Fields after Message -->
|
<!-- Custom Fields after Message -->
|
||||||
<?php
|
<?php
|
||||||
foreach ($hesk_settings['custom_fields'] as $k=>$v)
|
foreach ($hesk_settings['custom_fields'] as $k=>$v)
|
||||||
{
|
{
|
||||||
if ($v['use'] && $v['place'])
|
if ($v['use'] && $v['place'])
|
||||||
{
|
{
|
||||||
echo '
|
echo '
|
||||||
<p>'.$v['name'].': '.$ticket[$k].'</p>';
|
<p>'.$v['name'].': '.$ticket[$k].'</p>';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
/* Attachments */
|
/* Attachments */
|
||||||
hesk_listAttachments($ticket['attachments'], $i);
|
hesk_listAttachments($ticket['attachments'], $i);
|
||||||
?>
|
?>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<?php
|
<?php
|
||||||
if ( ! $hesk_settings['new_top'])
|
if ( ! $hesk_settings['new_top'])
|
||||||
{
|
{
|
||||||
@ -594,13 +592,14 @@ function hesk_printCustomerTicketReplies()
|
|||||||
|
|
||||||
$reply['dt'] = hesk_date($reply['dt']);
|
$reply['dt'] = hesk_date($reply['dt']);
|
||||||
?>
|
?>
|
||||||
<div <?php echo $color; ?>>
|
|
||||||
<div class="ticketHeader">
|
<div class="row ticketMessageContainer">
|
||||||
|
<div class="col-md-3 col-xs-12">
|
||||||
<div class="ticketName"><?php echo $reply['name']; ?></div>
|
<div class="ticketName"><?php echo $reply['name']; ?></div>
|
||||||
</div>
|
</div>
|
||||||
<div class="ticketMessage">
|
<div class="col-md-9 col-xs-12 pushMarginLeft">
|
||||||
<div class="ticketMessageTop withBorder">
|
<div class="ticketMessageTop withBorder">
|
||||||
<p><?php echo $hesklang['date']; ?>: <?php echo $reply['dt']; ?><span style="float: right;"><?php echo hesk_getCustomerButtons($i); ?></span></p>
|
<p><?php echo $hesklang['date']; ?>: <?php echo $reply['dt']; ?><span style="float: right;"><?php echo hesk_getCustomerButtons($i); ?></span></p>
|
||||||
<?php
|
<?php
|
||||||
/* Staff rating */
|
/* Staff rating */
|
||||||
if ($hesk_settings['rating'] && $reply['staffid'])
|
if ($hesk_settings['rating'] && $reply['staffid'])
|
||||||
@ -627,11 +626,12 @@ function hesk_printCustomerTicketReplies()
|
|||||||
?>
|
?>
|
||||||
</div>
|
</div>
|
||||||
<div class="ticketMessageBottom">
|
<div class="ticketMessageBottom">
|
||||||
<p><b><?php echo $hesklang['message']; ?>:</b></p>
|
<!-- Message -->
|
||||||
<p><?php echo $reply['message']; ?></p>
|
<p><b><?php echo $hesklang['message']; ?>:</b></p>
|
||||||
|
<p class="message"><?php echo $reply['message']; ?></p>
|
||||||
</div>
|
</div>
|
||||||
<div class="ticketMessageTop">
|
<div class="ticketMessageTop">
|
||||||
<?php hesk_listAttachments($reply['attachments'],$i);?>
|
<?php hesk_listAttachments($reply['attachments'],$i);?>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user