mirror of
https://github.com/itflow-org/itflow
synced 2026-03-03 12:24:51 +00:00
More Ticket Details UI/UX Sprucing better label naming etc
This commit is contained in:
@@ -80,11 +80,11 @@ if (isset($_GET['ticket_id'])) {
|
|||||||
|
|
||||||
//Set Ticket Badge Color based of priority
|
//Set Ticket Badge Color based of priority
|
||||||
if ($ticket_priority == "High") {
|
if ($ticket_priority == "High") {
|
||||||
$ticket_priority_display = "<span class='p-2 badge badge-danger'>$ticket_priority</span>";
|
$ticket_priority_display = "<span class='p-2 badge badge-pill badge-danger'>$ticket_priority</span>";
|
||||||
} elseif ($ticket_priority == "Medium") {
|
} elseif ($ticket_priority == "Medium") {
|
||||||
$ticket_priority_display = "<span class='p-2 badge badge-warning'>$ticket_priority</span>";
|
$ticket_priority_display = "<span class='p-2 badge badge-pill badge-warning'>$ticket_priority</span>";
|
||||||
} elseif ($ticket_priority == "Low") {
|
} elseif ($ticket_priority == "Low") {
|
||||||
$ticket_priority_display = "<span class='p-2 badge badge-info'>$ticket_priority</span>";
|
$ticket_priority_display = "<span class='p-2 badge badge-pill badge-info'>$ticket_priority</span>";
|
||||||
} else {
|
} else {
|
||||||
$ticket_priority_display = "";
|
$ticket_priority_display = "";
|
||||||
}
|
}
|
||||||
@@ -463,20 +463,21 @@ if (isset($_GET['ticket_id'])) {
|
|||||||
<div class="card card-body">
|
<div class="card card-body">
|
||||||
|
|
||||||
<div title="<?php echo $ticket_updated_at; ?>">
|
<div title="<?php echo $ticket_updated_at; ?>">
|
||||||
<i class="fa fa-fw fa-history text-secondary mr-2"></i>Updated: <strong><?php echo $ticket_updated_at_ago; ?></strong>
|
<i class="fa fa-fw fa-history text-secondary mr-2"></i>Last updated: <strong><?= date('M d, Y • h:m A', strtotime($ticket_updated_at)) . " ($ticket_updated_at_ago)" ?></strong>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<!-- Ticket assign (disable if closed -->
|
<!-- Ticket assign (disable if closed -->
|
||||||
<?php if (empty($ticket_closed_at)) { ?>
|
<?php if (empty($ticket_closed_at)) { ?>
|
||||||
<div class="mt-1">
|
<div class="mt-1">
|
||||||
|
<i class="fas fa-fw fa-user-check mr-2 text-secondary"></i>Assigned Agent:
|
||||||
<a class="ajax-modal" href="#"
|
<a class="ajax-modal" href="#"
|
||||||
data-modal-url="modals/ticket/ticket_assign.php?id=<?= $ticket_id ?>">
|
data-modal-url="modals/ticket/ticket_assign.php?id=<?= $ticket_id ?>">
|
||||||
<i class="fas fa-fw fa-user mr-2 text-secondary"></i><?php echo $ticket_assigned_to_display; ?>
|
<?= $ticket_assigned_to_display ?>
|
||||||
</a>
|
</a>
|
||||||
</div>
|
</div>
|
||||||
<?php } else { ?>
|
<?php } else { ?>
|
||||||
<div class="mt-1">
|
<div class="mt-1">
|
||||||
<i class="fas fa-fw fa-user mr-2 text-secondary"></i><?php echo $ticket_assigned_to_display; ?>
|
<i class="fas fa-fw fa-user-check mr-2 text-secondary"></i>Assigned Agent: <?php echo $ticket_assigned_to_display; ?>
|
||||||
</div>
|
</div>
|
||||||
<?php } ?>
|
<?php } ?>
|
||||||
<!-- End ticket assign -->
|
<!-- End ticket assign -->
|
||||||
@@ -484,14 +485,13 @@ if (isset($_GET['ticket_id'])) {
|
|||||||
|
|
||||||
<div class="card card-body">
|
<div class="card card-body">
|
||||||
<div>
|
<div>
|
||||||
<i class="fa fa-fw fa-thermometer-half text-secondary mr-1"></i>
|
<a href="#" title="Priority"
|
||||||
<a href="#"
|
|
||||||
<?php if (lookupUserPermission("module_support") >= 2 && empty($ticket_closed_at)) { ?>
|
<?php if (lookupUserPermission("module_support") >= 2 && empty($ticket_closed_at)) { ?>
|
||||||
class="ajax-modal"
|
class="ajax-modal"
|
||||||
data-modal-url="modals/ticket/ticket_priority.php?id=<?= $ticket_id ?>"
|
data-modal-url="modals/ticket/ticket_priority.php?id=<?= $ticket_id ?>"
|
||||||
<?php } ?>
|
<?php } ?>
|
||||||
>
|
>
|
||||||
<?php echo $ticket_priority_display; ?>
|
<?= $ticket_priority_display ?>
|
||||||
</a>
|
</a>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@@ -518,14 +518,14 @@ if (isset($_GET['ticket_id'])) {
|
|||||||
</div>
|
</div>
|
||||||
<?php } else { ?>
|
<?php } else { ?>
|
||||||
<div class="mt-1">
|
<div class="mt-1">
|
||||||
<i class="fa fa-fw fa-dollar-sign text-secondary mr-2"></i>Ticket is
|
<i class="fa fa-fw fa-dollar-sign text-secondary mr-2"></i>Billable:
|
||||||
<a class="ajax-modal" href="#"
|
<a class="ajax-modal" href="#"
|
||||||
data-modal-url="modals/ticket/ticket_billable.php?id=<?= $ticket_id ?>">
|
data-modal-url="modals/ticket/ticket_billable.php?id=<?= $ticket_id ?>">
|
||||||
<?php
|
<?php
|
||||||
if ($ticket_billable == 1) {
|
if ($ticket_billable == 1) {
|
||||||
echo "<span class='text-bold text-dark'>Billable</span>";
|
echo "<span class='text-bold text-dark'>Yes</span>";
|
||||||
} else {
|
} else {
|
||||||
echo "<span class='text-muted'>Not Billable</span>";
|
echo "<span class='text-muted'>No</span>";
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
</a>
|
</a>
|
||||||
@@ -561,7 +561,7 @@ if (isset($_GET['ticket_id'])) {
|
|||||||
|
|
||||||
<div class="card-header bg-dark">
|
<div class="card-header bg-dark">
|
||||||
<h5 class="card-title">
|
<h5 class="card-title">
|
||||||
Ticket Details
|
Description / Comments
|
||||||
</h5>
|
</h5>
|
||||||
<?php if (empty($ticket_closed_at)) { ?>
|
<?php if (empty($ticket_closed_at)) { ?>
|
||||||
<div class="card-tools">
|
<div class="card-tools">
|
||||||
@@ -577,7 +577,7 @@ if (isset($_GET['ticket_id'])) {
|
|||||||
while ($ticket_attachment = mysqli_fetch_assoc($sql_ticket_attachments)) {
|
while ($ticket_attachment = mysqli_fetch_assoc($sql_ticket_attachments)) {
|
||||||
$name = nullable_htmlentities($ticket_attachment['ticket_attachment_name']);
|
$name = nullable_htmlentities($ticket_attachment['ticket_attachment_name']);
|
||||||
$ref_name = nullable_htmlentities($ticket_attachment['ticket_attachment_reference_name']);
|
$ref_name = nullable_htmlentities($ticket_attachment['ticket_attachment_reference_name']);
|
||||||
echo "<hr class=''><i class='fas fa-fw fa-paperclip text-secondary mr-1'></i>$name | <a href='../uploads/tickets/$ticket_id/$ref_name' download='$name'><i class='fas fa-fw fa-download mr-1'></i>Download</a> | <a target='_blank' href='../uploads/tickets/$ticket_id/$ref_name'><i class='fas fa-fw fa-external-link-alt mr-1'></i>View</a>";
|
echo "<hr class=''><i class='fas fa-fw fa-paperclip text-secondary mr-1'></i>$name <a target='_blank' class='mr-1 ml-1' href='../uploads/tickets/$ticket_id/$ref_name'>[View]</a><a href='../uploads/tickets/$ticket_id/$ref_name' download='$name'>[Download]</a>";
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
</div>
|
</div>
|
||||||
@@ -587,8 +587,6 @@ if (isset($_GET['ticket_id'])) {
|
|||||||
<!-- Only show ticket reply modal if status is not closed -->
|
<!-- Only show ticket reply modal if status is not closed -->
|
||||||
<?php if (lookupUserPermission("module_support") >= 2 && empty($ticket_resolved_at) && empty($ticket_closed_at)) { ?>
|
<?php if (lookupUserPermission("module_support") >= 2 && empty($ticket_resolved_at) && empty($ticket_closed_at)) { ?>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<form action="post.php" method="post" autocomplete="off">
|
<form action="post.php" method="post" autocomplete="off">
|
||||||
<input type="hidden" name="ticket_id" id="ticket_id" value="<?php echo $ticket_id; ?>">
|
<input type="hidden" name="ticket_id" id="ticket_id" value="<?php echo $ticket_id; ?>">
|
||||||
<input type="hidden" name="client_id" id="client_id" value="<?php echo $client_id; ?>">
|
<input type="hidden" name="client_id" id="client_id" value="<?php echo $client_id; ?>">
|
||||||
@@ -598,28 +596,29 @@ if (isset($_GET['ticket_id'])) {
|
|||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<div class="btn-group btn-block btn-group-toggle" data-toggle="buttons">
|
<div class="btn-group btn-block btn-group-toggle" data-toggle="buttons">
|
||||||
<label class="btn btn-outline-dark active">
|
<label class="btn btn-outline-dark active">
|
||||||
<input type="radio" name="public_reply_type" value="0" checked>Internal Note
|
<input type="radio" name="public_reply_type" value="0" checked>Internal
|
||||||
</label>
|
</label>
|
||||||
<?php if ($contact_email) { ?>
|
<?php if ($contact_email) { ?>
|
||||||
<label class="btn btn-outline-info">
|
<label class="btn btn-outline-info">
|
||||||
<input type="radio" name="public_reply_type" value="2">Public Comment & Email
|
<input type="radio" name="public_reply_type" value="2">Public + Email
|
||||||
</label>
|
</label>
|
||||||
<?php } ?>
|
<?php } ?>
|
||||||
<label class="btn btn-outline-info">
|
<label class="btn btn-outline-info">
|
||||||
<input type="radio" name="public_reply_type" value="1">Public Comment
|
<input type="radio" name="public_reply_type" value="1">Public
|
||||||
</label>
|
</label>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="form-group">
|
<div class="form-group mb-0">
|
||||||
<textarea
|
<textarea
|
||||||
class="form-control tinymceTicket" name="ticket_reply"
|
class="form-control tinymceTicket" name="ticket_reply"
|
||||||
placeholder="Type a response">
|
placeholder="Type a response">
|
||||||
</textarea>
|
</textarea>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
<div class="card card-body pb-0">
|
<div class="card card-body pb-0">
|
||||||
|
|
||||||
<div class="form-row">
|
<div class="form-row">
|
||||||
@@ -732,10 +731,10 @@ if (isset($_GET['ticket_id'])) {
|
|||||||
</span>
|
</span>
|
||||||
<?php } ?>
|
<?php } ?>
|
||||||
|
|
||||||
<div class="ml-3">
|
<div class="ml-2">
|
||||||
<h3 class="card-title"><?php echo $ticket_reply_by_display; ?></h3>
|
<h3 class="card-title"><?php echo $ticket_reply_by_display; ?></h3>
|
||||||
<div>
|
<div>
|
||||||
<?php if ($ticket_reply_type !== "Client") { ?>
|
<?php if ($ticket_reply_type !== "Client" && $ticket_reply_time_worked !== "00:00:00") { ?>
|
||||||
<div>
|
<div>
|
||||||
<br>
|
<br>
|
||||||
<small>
|
<small>
|
||||||
@@ -816,10 +815,10 @@ if (isset($_GET['ticket_id'])) {
|
|||||||
|
|
||||||
<div class="col-md-3">
|
<div class="col-md-3">
|
||||||
|
|
||||||
<!-- Ticket details right card -->
|
<!-- Ticket activity right card -->
|
||||||
<div class="card">
|
<div class="card">
|
||||||
<div class="card-header">
|
<div class="card-header">
|
||||||
<h5 class="card-title"><i class="fas fa-fw fa-life-ring mr-2"></i>Ticket Details</h5>
|
<h5 class="card-title"><i class="fas fa-fw fa-clock mr-2"></i>Activity Summary</h5>
|
||||||
|
|
||||||
<div class="card-tools">
|
<div class="card-tools">
|
||||||
<button type="button" class="btn btn-tool" data-card-widget="collapse">
|
<button type="button" class="btn btn-tool" data-card-widget="collapse">
|
||||||
@@ -869,7 +868,7 @@ if (isset($_GET['ticket_id'])) {
|
|||||||
<!-- Time tracking -->
|
<!-- Time tracking -->
|
||||||
<?php if ($ticket_total_reply_time) { ?>
|
<?php if ($ticket_total_reply_time) { ?>
|
||||||
<div class="mt-1">
|
<div class="mt-1">
|
||||||
<i class="far fa-fw fa-clock text-secondary mr-2"></i><strong class="mr-2">Time worked:</strong><?= formatDuration($ticket_total_reply_time) ?>
|
<i class="far fa-fw fa-clock text-secondary mr-2"></i><strong class="mr-2">Total time worked:</strong><?= formatDuration($ticket_total_reply_time) ?>
|
||||||
</div>
|
</div>
|
||||||
<?php } ?>
|
<?php } ?>
|
||||||
|
|
||||||
|
|||||||
@@ -183,7 +183,7 @@ $(document).ready(function() {
|
|||||||
browser_spellcheck: true,
|
browser_spellcheck: true,
|
||||||
contextmenu: false,
|
contextmenu: false,
|
||||||
resize: true,
|
resize: true,
|
||||||
min_height: 300,
|
min_height: 150,
|
||||||
max_height: 600,
|
max_height: 600,
|
||||||
promotion: false,
|
promotion: false,
|
||||||
branding: false,
|
branding: false,
|
||||||
@@ -321,7 +321,7 @@ $(document).ready(function() {
|
|||||||
plugins: 'link image lists table code fullscreen autoresize',
|
plugins: 'link image lists table code fullscreen autoresize',
|
||||||
license_key: 'gpl',
|
license_key: 'gpl',
|
||||||
setup: function(editor) {
|
setup: function(editor) {
|
||||||
|
|
||||||
editor.on('init', function() {
|
editor.on('init', function() {
|
||||||
window.onbeforeunload = function() {
|
window.onbeforeunload = function() {
|
||||||
// If editor is dirty AND not inside a visible modal → warn
|
// If editor is dirty AND not inside a visible modal → warn
|
||||||
|
|||||||
Reference in New Issue
Block a user