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

@@ -895,7 +895,7 @@ if (isset($_GET['ticket_id'])) {
<!-- Tasks Card -->
<div class="card card-body">
<?php if (empty($ticket_closed_at) && lookupUserPermission("module_support") >= 2) { ?>
<?php if (empty($ticket_resolved_at) && lookupUserPermission("module_support") >= 2) { ?>
<form action="post.php" method="post" autocomplete="off">
<input type="hidden" name="ticket_id" value="<?php echo $ticket_id; ?>">
<div class="form-group">
@@ -934,7 +934,7 @@ if (isset($_GET['ticket_id'])) {
<td><span class="text-secondary"><?php echo $task_completion_estimate; ?>m</span> - <?php echo $task_name; ?></td>
<td>
<div class="float-right">
<?php if (empty($ticket_closed_at) && lookupUserPermission("module_support") >= 2) { ?>
<?php if (empty($ticket_resolved_at) && lookupUserPermission("module_support") >= 2) { ?>
<div class="dropdown dropleft text-center">
<button class="btn btn-link text-secondary btn-sm" type="button" data-toggle="dropdown">
<i class="fas fa-fw fa-ellipsis-v"></i>