Tidying/General quality of life updates

General quality of life updates:

- Ticket contact edit: 'No one' should be logged when ticket isn't associated with any contact, rather than a blank space; also fix email content
- Ticket portal/guest: Only show 'Assigned to' if someone is actually assigned
- Ticket tasks: Don't allow adding/modifying tasks for tickets in a resolved state
- Portal contacts: Properly align word 'Contacts' in a similar way all other page headings are aligned
- Client PDF export/handover: Now opens in a new self-closing window
This commit is contained in:
Marcus Hill
2024-12-28 01:12:59 +00:00
parent a2f0f392be
commit c85626a937
7 changed files with 44 additions and 39 deletions

View File

@@ -17,8 +17,10 @@ $contacts_sql = mysqli_query($mysqli, "SELECT contact_id, contact_name, contact_
?>
<div class="row">
<h3>Contacts</h3>
<div class="col offset-7">
<div class="col">
<h3>Contacts</h3>
</div>
<div class="col offset-6">
<a href="contact_add.php" class="btn btn-primary" role="button"><i class="fas fa-plus mr-2"></i>New Contact</a>
</div>
</div>

View File

@@ -92,17 +92,20 @@ if (isset($_GET['id']) && intval($_GET['id'])) {
<h5><strong>Subject:</strong> <?php echo $ticket_subject ?></h5>
<hr>
<p>
<strong>State:</strong> <?php echo $ticket_status ?>
<br>
<strong>Priority:</strong> <?php echo $ticket_priority ?>
<br>
<strong>State:</strong> <?php echo $ticket_status ?><br>
<strong>Priority:</strong> <?php echo $ticket_priority ?><br>
<?php if (empty($ticket_closed_at)) { ?>
<?php if ($task_count) { ?>
<strong>Tasks: </strong> <?php echo $completed_task_count . " / " .$task_count ?>
<br>
<?php } ?>
<strong>Assigned to: </strong> <?php echo $ticket_assigned_to ?>
<?php if (!empty($ticket_assigned_to)) { ?>
<strong>Assigned to: </strong> <?php echo $ticket_assigned_to ?>
<?php } ?>
<?php } ?>
</p>
<?php echo $ticket_details ?>