If no contact selected give option to add one under ticket details

This commit is contained in:
johnnyq
2023-09-18 16:36:35 -04:00
parent 485bb68055
commit a0f46cc049
+10 -5
View File
@@ -476,10 +476,13 @@ if (isset($_GET['ticket_id'])) {
</div> </div>
<!-- Client contact card --> <!-- Client contact card -->
<?php if (!empty($contact_id)) { ?>
<div class="card card-body card-outline card-dark mb-3"> <div class="card card-body card-outline card-dark mb-3">
<div> <div>
<h4 class="text-secondary">Contact</h4> <h4 class="text-secondary">Contact</h4>
<?php if (!empty($contact_id)) { ?>
<span class=""> <span class="">
<i class="fa fa-fw fa-user text-secondary ml-1 mr-2 mb-2"></i><a href="#" data-toggle="modal" data-target="#editTicketContactModal<?php echo $ticket_id; ?>"><strong><?php echo $contact_name; ?></strong></a> <i class="fa fa-fw fa-user text-secondary ml-1 mr-2 mb-2"></i><a href="#" data-toggle="modal" data-target="#editTicketContactModal<?php echo $ticket_id; ?>"><strong><?php echo $contact_name; ?></strong></a>
</span> </span>
@@ -551,11 +554,13 @@ if (isset($_GET['ticket_id'])) {
<?php } ?> <?php } ?>
</div> </div>
</div> </div>
<?php } else { ?>
</div> <div><a href="#" data-toggle="modal" data-target="#editTicketContactModal<?php echo $ticket_id; ?>"><i class="fa fa-fw fa-plus mr-2"></i>Add a Contact</a></div>
</div>
<?php } ?> <?php } ?>
</div>
</div>
<!-- Ticket watchers card --> <!-- Ticket watchers card -->
<?php <?php