mirror of
https://github.com/itflow-org/itflow
synced 2026-09-11 01:05:12 +00:00
Add Empty state messages in client portal instead of just showing an empty table with the table header
This commit is contained in:
@@ -41,6 +41,9 @@ $all_tickets = mysqli_query($mysqli, "SELECT ticket_id, ticket_prefix, ticket_nu
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
<?php if (mysqli_num_rows($all_tickets) == 0) { ?>
|
||||
<?= portalEmptyState('There are no tickets for this account.') ?>
|
||||
<?php } else { ?>
|
||||
<table class="table">
|
||||
<thead>
|
||||
<tr>
|
||||
@@ -71,6 +74,7 @@ $all_tickets = mysqli_query($mysqli, "SELECT ticket_id, ticket_prefix, ticket_nu
|
||||
?>
|
||||
</tbody>
|
||||
</table>
|
||||
<?php } ?>
|
||||
</div>
|
||||
|
||||
<?php
|
||||
|
||||
Reference in New Issue
Block a user