Added Confirmation to Close Ticket in Client Portal - Seperated cofirmation modal to a seperate JS file which is now included in the Client Portal

This commit is contained in:
johnnyq
2023-10-20 19:10:25 -04:00
parent fcfb162ec8
commit ba9442e6c3
5 changed files with 23 additions and 19 deletions

View File

@@ -13,6 +13,8 @@
<p class="text-center"><?php echo nullable_htmlentities($session_company_name); ?></p>
<?php require_once "../inc_confirm_modal.php"; ?>
<!-- jQuery -->
<script src="../plugins/jquery/jquery.min.js"></script>
@@ -52,4 +54,6 @@
plugins: 'link image lists table code codesample fullscreen autoresize',
});
</script>
</script>
<script src="../js/confirm_modal.js"></script>

View File

@@ -53,7 +53,7 @@ if (isset($_GET['id']) && intval($_GET['id'])) {
Ticket <?php echo $ticket_prefix, $ticket_number ?>
<?php
if ($ticket_status !== "Closed") { ?>
<a href="portal_post.php?close_ticket=<?php echo $ticket_id; ?>" class="btn btn-sm btn-outline-success float-right text-white"><i class="fas fa-fw fa-check text-success"></i> Close ticket</a>
<a href="portal_post.php?close_ticket=<?php echo $ticket_id; ?>" class="btn btn-sm btn-outline-success float-right text-white confirm-link"><i class="fas fa-fw fa-check text-success"></i> Close ticket</a>
<?php } ?>
</h4>
</div>