mirror of
https://github.com/itflow-org/itflow
synced 2026-09-02 04:45:15 +00:00
Fix Guest Approve Modal Offscreen issue, added guest header and spruced up the UI a bit
This commit is contained in:
@@ -67,9 +67,9 @@ $num_rows = mysqli_fetch_row(mysqli_query($mysqli, "SELECT FOUND_ROWS()"));
|
||||
<table class="table table-striped table-borderless table-hover mb-0">
|
||||
<thead class="text-dark <?php if ($num_rows[0] == 0) { echo "d-none"; } ?>">
|
||||
<tr>
|
||||
<td class="pe-0 ps-3">
|
||||
<td class="checkbox-column border-end">
|
||||
<div class="form-check">
|
||||
<input class="form-check-input" type="checkbox" onclick="checkAll(this)">
|
||||
<input class="form-check-input" id="selectAllCheckbox" type="checkbox" onclick="checkAll(this)">
|
||||
</div>
|
||||
</td>
|
||||
<th>
|
||||
@@ -117,7 +117,7 @@ $num_rows = mysqli_fetch_row(mysqli_query($mysqli, "SELECT FOUND_ROWS()"));
|
||||
|
||||
?>
|
||||
<tr>
|
||||
<td class="pe-0 ps-3">
|
||||
<td class="checkbox-column bg-light border-end">
|
||||
<div class="form-check">
|
||||
<input class="form-check-input bulk-select" type="checkbox" name="api_key_ids[]" value="<?= $api_key_id ?>">
|
||||
</div>
|
||||
|
||||
@@ -74,7 +74,7 @@ $num_rows = mysqli_fetch_row(mysqli_query($mysqli, "SELECT FOUND_ROWS()"));
|
||||
<table class="table table-sm table-striped table-borderless table-hover mb-0">
|
||||
<thead class="text-dark <?php if ($num_rows[0] == 0) { echo "d-none"; } ?>">
|
||||
<tr>
|
||||
<td class="bg-light pe-0">
|
||||
<td class="checkbox-column border-end">
|
||||
<div class="form-check">
|
||||
<input class="form-check-input" id="selectAllCheckbox" type="checkbox" onclick="checkAll(this)">
|
||||
</div>
|
||||
@@ -140,7 +140,7 @@ $num_rows = mysqli_fetch_row(mysqli_query($mysqli, "SELECT FOUND_ROWS()"));
|
||||
?>
|
||||
|
||||
<tr>
|
||||
<td class="pe-0 bg-light">
|
||||
<td class="checkbox-column bg-light border-end">
|
||||
<?php if ($email_status !== 3) { ?>
|
||||
<div class="form-check">
|
||||
<input class="form-check-input bulk-select" type="checkbox" name="email_ids[]" value="<?= $email_id ?>">
|
||||
|
||||
@@ -548,7 +548,7 @@ if (isset($_GET['asset_id'])) {
|
||||
<table class="table table-striped table-borderless table-hover table-sm">
|
||||
<thead class="<?php if ($interface_count == 0) { echo "d-none"; } ?>">
|
||||
<tr>
|
||||
<td class="bg-light checkbox-column">
|
||||
<td class="checkbox-column border-end">
|
||||
<div class="form-check">
|
||||
<input class="form-check-input" id="selectAllCheckbox" type="checkbox" onclick="checkAll(this)" onkeydown="checkAll(this)">
|
||||
</div>
|
||||
@@ -606,7 +606,7 @@ if (isset($_GET['asset_id'])) {
|
||||
}
|
||||
?>
|
||||
<tr>
|
||||
<td class="bg-light checkbox-column">
|
||||
<td class="checkbox-column bg-light border-end">
|
||||
<div class="form-check">
|
||||
<input class="form-check-input bulk-select" type="checkbox" name="interface_ids[]" value="<?= $interface_id ?>">
|
||||
</div>
|
||||
|
||||
@@ -463,7 +463,7 @@ $num_rows = mysqli_fetch_row(mysqli_query($mysqli, "SELECT FOUND_ROWS()"));
|
||||
<table class="table border table-hover mb-0">
|
||||
<thead class="table-light <?php if (!$num_rows[0]) { echo "d-none"; } ?> text-nowrap">
|
||||
<tr>
|
||||
<td class="bg-light checkbox-column">
|
||||
<td class="checkbox-column border-end">
|
||||
<div class="form-check">
|
||||
<input class="form-check-input" id="selectAllCheckbox" type="checkbox" onclick="checkAll(this)">
|
||||
</div>
|
||||
@@ -666,7 +666,7 @@ $num_rows = mysqli_fetch_row(mysqli_query($mysqli, "SELECT FOUND_ROWS()"));
|
||||
|
||||
?>
|
||||
<tr>
|
||||
<td class="bg-light checkbox-column">
|
||||
<td class="checkbox-column bg-light border-end">
|
||||
<div class="form-check">
|
||||
<input class="form-check-input bulk-select" type="checkbox" name="asset_ids[]" value="<?= $asset_id ?>">
|
||||
</div>
|
||||
|
||||
@@ -193,7 +193,7 @@ $num_rows = mysqli_fetch_row(mysqli_query($mysqli, "SELECT FOUND_ROWS()"));
|
||||
<table class="table table-striped table-borderless table-hover mb-0">
|
||||
<thead class="text-dark <?php if ($num_rows[0] == 0) { echo "d-none"; } ?>">
|
||||
<tr>
|
||||
<td class="checkbox-column">
|
||||
<td class="checkbox-column border-end">
|
||||
<div class="form-check">
|
||||
<input class="form-check-input" id="selectAllCheckbox" type="checkbox" onclick="checkAll(this)">
|
||||
</div>
|
||||
@@ -264,7 +264,7 @@ $num_rows = mysqli_fetch_row(mysqli_query($mysqli, "SELECT FOUND_ROWS()"));
|
||||
|
||||
?>
|
||||
<tr class="<?= $tr_class ?>">
|
||||
<td class="checkbox-column">
|
||||
<td class="checkbox-column bg-light border-end">
|
||||
<div class="form-check">
|
||||
<input class="form-check-input bulk-select" type="checkbox" name="certificate_ids[]" value="<?= $certificate_id ?>">
|
||||
<input type="hidden" name="client_id" value="<?= $client_id ?>">
|
||||
|
||||
@@ -293,7 +293,7 @@ $num_rows = mysqli_fetch_row(mysqli_query($mysqli, "SELECT FOUND_ROWS()"));
|
||||
<table class="table border mb-0">
|
||||
<thead class="table-light <?php if (!$num_rows[0]) { echo "d-none"; } ?>">
|
||||
<tr>
|
||||
<td class="bg-light checkbox-column">
|
||||
<td class="checkbox-column border-end">
|
||||
<div class="form-check">
|
||||
<input class="form-check-input" id="selectAllCheckbox" type="checkbox" onclick="checkAll(this)">
|
||||
</div>
|
||||
@@ -466,7 +466,7 @@ $num_rows = mysqli_fetch_row(mysqli_query($mysqli, "SELECT FOUND_ROWS()"));
|
||||
|
||||
?>
|
||||
<tr>
|
||||
<td class="bg-light checkbox-column">
|
||||
<td class="checkbox-column bg-light border-end">
|
||||
<div class="form-check">
|
||||
<input class="form-check-input bulk-select" type="checkbox" name="contact_ids[]" value="<?= $contact_id ?>">
|
||||
</div>
|
||||
|
||||
@@ -278,7 +278,7 @@ $num_rows = mysqli_fetch_row(mysqli_query($mysqli, "SELECT FOUND_ROWS()"));
|
||||
<table class="table table-striped table-borderless table-hover mb-0">
|
||||
<thead class="text-dark <?php if ($num_rows[0] == 0) { echo "d-none"; } ?> text-nowrap">
|
||||
<tr>
|
||||
<td class="bg-light checkbox-column">
|
||||
<td class="checkbox-column border-end">
|
||||
<div class="form-check">
|
||||
<input class="form-check-input" id="selectAllCheckbox" type="checkbox" onclick="checkAll(this)">
|
||||
</div>
|
||||
@@ -416,7 +416,7 @@ $num_rows = mysqli_fetch_row(mysqli_query($mysqli, "SELECT FOUND_ROWS()"));
|
||||
|
||||
?>
|
||||
<tr class="<?php if ($credential_favorite) { echo "text-bold"; } ?>">
|
||||
<td class="bg-light checkbox-column">
|
||||
<td class="checkbox-column bg-light border-end">
|
||||
<div class="form-check">
|
||||
<input class="form-check-input bulk-select" type="checkbox" name="credential_ids[]" value="<?= $credential_id ?>">
|
||||
</div>
|
||||
|
||||
@@ -217,7 +217,7 @@ $num_rows = mysqli_fetch_row(mysqli_query($mysqli, "SELECT FOUND_ROWS()"));
|
||||
<table class="table table-striped table-borderless table-hover mb-0">
|
||||
<thead class="text-dark <?php if ($num_rows[0] == 0) { echo "d-none"; } ?> text-nowrap">
|
||||
<tr>
|
||||
<td class="checkbox-column">
|
||||
<td class="checkbox-column border-end">
|
||||
<div class="form-check">
|
||||
<input class="form-check-input" id="selectAllCheckbox" type="checkbox" onclick="checkAll(this)">
|
||||
</div>
|
||||
@@ -320,7 +320,7 @@ $num_rows = mysqli_fetch_row(mysqli_query($mysqli, "SELECT FOUND_ROWS()"));
|
||||
|
||||
?>
|
||||
<tr class="<?= $tr_class ?>">
|
||||
<td class="checkbox-column">
|
||||
<td class="checkbox-column bg-light border-end">
|
||||
<div class="form-check">
|
||||
<input class="form-check-input bulk-select" type="checkbox" name="domain_ids[]" value="<?= $domain_id ?>">
|
||||
</div>
|
||||
|
||||
@@ -208,7 +208,7 @@ $num_rows = mysqli_fetch_row(mysqli_query($mysqli, "SELECT FOUND_ROWS()"));
|
||||
<table class="table table-striped table-borderless table-hover mb-0">
|
||||
<thead class="text-dark <?php if ($num_rows[0] == 0) { echo "d-none"; } ?>">
|
||||
<tr>
|
||||
<td class="bg-light checkbox-column">
|
||||
<td class="checkbox-column border-end">
|
||||
<div class="form-check">
|
||||
<input class="form-check-input" id="selectAllCheckbox" type="checkbox" onclick="checkAll(this)">
|
||||
</div>
|
||||
@@ -287,7 +287,7 @@ $num_rows = mysqli_fetch_row(mysqli_query($mysqli, "SELECT FOUND_ROWS()"));
|
||||
?>
|
||||
|
||||
<tr>
|
||||
<td class="bg-light checkbox-column">
|
||||
<td class="checkbox-column bg-light border-end">
|
||||
<div class="form-check">
|
||||
<input class="form-check-input bulk-select" type="checkbox" name="expense_ids[]" value="<?= $expense_id ?>">
|
||||
</div>
|
||||
|
||||
@@ -949,7 +949,7 @@ $num_root_items = intval($row_root_files['num']) + intval($row_root_docs['num'])
|
||||
<table class="table border mb-0">
|
||||
<thead class="table-light <?php if ($num_rows[0] == 0) { echo "d-none"; } ?>">
|
||||
<tr>
|
||||
<td class="bg-light checkbox-column">
|
||||
<td class="checkbox-column border-end">
|
||||
<div class="form-check">
|
||||
<input class="form-check-input" id="selectAllCheckbox" type="checkbox" onclick="checkAll(this)">
|
||||
</div>
|
||||
@@ -1017,7 +1017,7 @@ $num_root_items = intval($row_root_files['num']) + intval($row_root_docs['num'])
|
||||
}
|
||||
?>
|
||||
<tr>
|
||||
<td class="bg-light checkbox-column">
|
||||
<td class="checkbox-column bg-light border-end">
|
||||
<div class="form-check">
|
||||
<input class="form-check-input bulk-select" type="checkbox" name="file_ids[]" value="<?= $file_id ?>">
|
||||
</div>
|
||||
@@ -1163,7 +1163,7 @@ $num_root_items = intval($row_root_files['num']) + intval($row_root_docs['num'])
|
||||
}
|
||||
?>
|
||||
<tr>
|
||||
<td class="bg-light pe-0">
|
||||
<td class="checkbox-column bg-light border-end">
|
||||
<div class="form-check">
|
||||
<input class="form-check-input bulk-select" type="checkbox" name="document_ids[]" value="<?= $document_id ?>">
|
||||
</div>
|
||||
|
||||
@@ -374,7 +374,7 @@ $summary_total_income = floatval($row['total_income']);
|
||||
<thead class="text-dark <?php if ($num_rows[0] == 0) { echo "d-none"; } ?> text-nowrap table-light border-top">
|
||||
<tr>
|
||||
<?php if (lookupUserPermission("module_sales") >= 3 && lookupUserPermission("module_financial") >= 3) { ?>
|
||||
<td class="bg-light checkbox-column">
|
||||
<td class="checkbox-column border-end">
|
||||
<div class="form-check">
|
||||
<input class="form-check-input" id="selectAllCheckbox" type="checkbox" onclick="checkAll(this)">
|
||||
</div>
|
||||
@@ -474,7 +474,7 @@ $summary_total_income = floatval($row['total_income']);
|
||||
|
||||
<tr>
|
||||
<?php if (lookupUserPermission("module_sales") >= 3 && lookupUserPermission("module_financial") >= 3) { ?>
|
||||
<td class="bg-light checkbox-column">
|
||||
<td class="checkbox-column bg-light border-end">
|
||||
<div class="form-check">
|
||||
<input class="form-check-input bulk-select" type="checkbox" name="income_ids[]" value="<?= $income_type ?>-<?= $income_id ?>">
|
||||
</div>
|
||||
|
||||
@@ -270,7 +270,7 @@ $num_rows = mysqli_fetch_row(mysqli_query($mysqli, "SELECT FOUND_ROWS()"));
|
||||
<table class="table table-striped table-borderless table-hover mb-0">
|
||||
<thead class="text-dark <?php if ($num_rows[0] == 0) { echo "d-none"; } ?> text-nowrap">
|
||||
<tr>
|
||||
<td class="bg-light checkbox-column">
|
||||
<td class="checkbox-column border-end">
|
||||
<div class="form-check">
|
||||
<input class="form-check-input" id="selectAllCheckbox" type="checkbox" onclick="checkAll(this)">
|
||||
</div>
|
||||
@@ -381,7 +381,7 @@ $num_rows = mysqli_fetch_row(mysqli_query($mysqli, "SELECT FOUND_ROWS()"));
|
||||
?>
|
||||
|
||||
<tr>
|
||||
<td class="bg-light checkbox-column">
|
||||
<td class="checkbox-column bg-light border-end">
|
||||
<div class="form-check">
|
||||
<input class="form-check-input bulk-select" type="checkbox" name="invoice_ids[]" value="<?= $invoice_id ?>">
|
||||
</div>
|
||||
|
||||
@@ -221,7 +221,7 @@ $num_rows = mysqli_fetch_row(mysqli_query($mysqli, "SELECT FOUND_ROWS()"));
|
||||
<table class="table table-striped table-borderless table-hover mb-0">
|
||||
<thead class="<?php if ($num_rows[0] == 0) { echo "d-none"; } ?>">
|
||||
<tr>
|
||||
<td class="bg-light checkbox-column">
|
||||
<td class="checkbox-column border-end">
|
||||
<div class="form-check">
|
||||
<input class="form-check-input" id="selectAllCheckbox" type="checkbox" onclick="checkAll(this)">
|
||||
</div>
|
||||
@@ -328,7 +328,7 @@ $num_rows = mysqli_fetch_row(mysqli_query($mysqli, "SELECT FOUND_ROWS()"));
|
||||
|
||||
?>
|
||||
<tr>
|
||||
<td class="bg-light checkbox-column">
|
||||
<td class="checkbox-column bg-light border-end">
|
||||
<div class="form-check">
|
||||
<input class="form-check-input bulk-select" type="checkbox" name="location_ids[]" value="<?= $location_id ?>">
|
||||
</div>
|
||||
|
||||
@@ -227,7 +227,7 @@ if (mysqli_num_rows($sql) == 0) {
|
||||
<table class="table table-striped table-borderless table-hover mb-0">
|
||||
<thead class="text-dark <?php if ($num_rows[0] == 0) { echo "d-none"; } ?>">
|
||||
<tr>
|
||||
<td class="checkbox-column">
|
||||
<td class="checkbox-column border-end">
|
||||
<div class="form-check">
|
||||
<input class="form-check-input" id="selectAllCheckbox" type="checkbox" onclick="checkAll(this)">
|
||||
</div>
|
||||
@@ -261,7 +261,7 @@ if (mysqli_num_rows($sql) == 0) {
|
||||
|
||||
?>
|
||||
<tr>
|
||||
<td class="checkbox-column">
|
||||
<td class="checkbox-column bg-light border-end">
|
||||
<div class="form-check">
|
||||
<input class="form-check-input bulk-select" type="checkbox" name="network_ip_ids[]" value="<?= $ip_id ?>">
|
||||
</div>
|
||||
|
||||
@@ -202,7 +202,7 @@ $num_rows = mysqli_fetch_row(mysqli_query($mysqli, "SELECT FOUND_ROWS()"));
|
||||
<table class="table table-striped table-borderless table-hover mb-0">
|
||||
<thead class="text-dark <?php if ($num_rows[0] == 0) { echo "d-none"; } ?>">
|
||||
<tr>
|
||||
<td class="checkbox-column">
|
||||
<td class="checkbox-column border-end">
|
||||
<div class="form-check">
|
||||
<input class="form-check-input" id="selectAllCheckbox" type="checkbox" onclick="checkAll(this)">
|
||||
</div>
|
||||
@@ -294,7 +294,7 @@ $num_rows = mysqli_fetch_row(mysqli_query($mysqli, "SELECT FOUND_ROWS()"));
|
||||
|
||||
?>
|
||||
<tr>
|
||||
<td class="checkbox-column">
|
||||
<td class="checkbox-column bg-light border-end">
|
||||
<div class="form-check">
|
||||
<input class="form-check-input bulk-select" type="checkbox" name="network_ids[]" value="<?= $network_id ?>">
|
||||
</div>
|
||||
|
||||
@@ -176,7 +176,7 @@ $num_rows = mysqli_fetch_row(mysqli_query($mysqli, "SELECT FOUND_ROWS()"));
|
||||
<table class="table table-striped table-borderless table-hover mb-0">
|
||||
<thead class="text-dark <?php if ($num_rows[0] == 0) { echo "d-none"; } ?> text-nowrap">
|
||||
<tr>
|
||||
<td class="bg-light checkbox-column">
|
||||
<td class="checkbox-column border-end">
|
||||
<div class="form-check">
|
||||
<input class="form-check-input" id="selectAllCheckbox" type="checkbox" onclick="checkAll(this)">
|
||||
</div>
|
||||
@@ -254,7 +254,7 @@ $num_rows = mysqli_fetch_row(mysqli_query($mysqli, "SELECT FOUND_ROWS()"));
|
||||
|
||||
?>
|
||||
<tr>
|
||||
<td class="bg-light checkbox-column">
|
||||
<td class="checkbox-column bg-light border-end">
|
||||
<div class="form-check">
|
||||
<input class="form-check-input bulk-select" type="checkbox" name="product_ids[]" value="<?= $product_id ?>">
|
||||
</div>
|
||||
|
||||
@@ -346,7 +346,7 @@ if (isset($_GET['project_id'])) {
|
||||
<table class="table table-bordered table-hover">
|
||||
<thead class="table-light">
|
||||
<tr>
|
||||
<td class="bg-light checkbox-column">
|
||||
<td class="checkbox-column border-end">
|
||||
<div class="form-check">
|
||||
<input class="form-check-input" id="selectAllCheckbox" type="checkbox" onclick="checkAll(this)">
|
||||
</div>
|
||||
@@ -463,7 +463,7 @@ if (isset($_GET['project_id'])) {
|
||||
?>
|
||||
|
||||
<tr>
|
||||
<td class="bg-light checkbox-column">
|
||||
<td class="checkbox-column bg-light border-end">
|
||||
<!-- Ticket Bulk Select (for open tickets) -->
|
||||
<?php if (empty($ticket_closed_at)) { ?>
|
||||
<div class="form-check">
|
||||
|
||||
@@ -222,7 +222,7 @@ $num_rows = mysqli_fetch_row(mysqli_query($mysqli, "SELECT FOUND_ROWS()"));
|
||||
<table class="table table-striped table-borderless table-hover mb-0">
|
||||
<thead class="<?php if (!$num_rows[0]) { echo "d-none"; } ?> text-nowrap">
|
||||
<tr>
|
||||
<td class="checkbox-column">
|
||||
<td class="checkbox-column border-end">
|
||||
<div class="form-check">
|
||||
<input class="form-check-input" id="selectAllCheckbox" type="checkbox" onclick="checkAll(this)">
|
||||
</div>
|
||||
@@ -301,7 +301,7 @@ $num_rows = mysqli_fetch_row(mysqli_query($mysqli, "SELECT FOUND_ROWS()"));
|
||||
?>
|
||||
|
||||
<tr>
|
||||
<td class="checkbox-column">
|
||||
<td class="checkbox-column bg-light border-end">
|
||||
<div class="form-check">
|
||||
<input class="form-check-input bulk-select" type="checkbox" name="recurring_ticket_ids[]" value="<?= $recurring_ticket_id ?>">
|
||||
</div>
|
||||
|
||||
@@ -144,7 +144,7 @@ if ($tickets) {
|
||||
<table class="table table-striped table-borderless table-hover mb-0">
|
||||
<thead class="text-dark text-nowrap <?php if (!$num_rows[0]) { echo "d-none"; } ?>">
|
||||
<tr>
|
||||
<td class="checkbox-column">
|
||||
<td class="checkbox-column border-end">
|
||||
<div class="form-check">
|
||||
<input class="form-check-input" id="selectAllCheckbox" type="checkbox" title="Select all on this page">
|
||||
</div>
|
||||
@@ -321,7 +321,7 @@ if ($tickets) {
|
||||
|
||||
<tr class="<?= trim($row_class) ?>" <?php if ($row_title) { ?>title="<?= $row_title ?>"<?php } ?>>
|
||||
|
||||
<td class="checkbox-column">
|
||||
<td class="checkbox-column bg-light border-end">
|
||||
<!-- Ticket Bulk Select (for open tickets) -->
|
||||
<?php if (empty($ticket_closed_at)) { ?>
|
||||
<div class="form-check">
|
||||
|
||||
@@ -119,7 +119,7 @@ $num_rows = mysqli_fetch_row(mysqli_query($mysqli, "SELECT FOUND_ROWS()"));
|
||||
<table class="table table-striped table-borderless table-hover mb-0">
|
||||
<thead class="text-dark <?php if ($num_rows[0] == 0) { echo "d-none"; } ?> text-nowrap">
|
||||
<tr>
|
||||
<td class="bg-light checkbox-column">
|
||||
<td class="checkbox-column border-end">
|
||||
<div class="form-check">
|
||||
<input class="form-check-input" id="selectAllCheckbox" type="checkbox" onclick="checkAll(this)">
|
||||
</div>
|
||||
@@ -198,7 +198,7 @@ $num_rows = mysqli_fetch_row(mysqli_query($mysqli, "SELECT FOUND_ROWS()"));
|
||||
|
||||
?>
|
||||
<tr>
|
||||
<td class="bg-light checkbox-column">
|
||||
<td class="checkbox-column bg-light border-end">
|
||||
<div class="form-check">
|
||||
<input class="form-check-input bulk-select" type="checkbox" name="vendor_ids[]" value="<?= $vendor_id ?>">
|
||||
</div>
|
||||
|
||||
@@ -38,7 +38,7 @@ $approval_id = intval($_GET['task_approval_id']);
|
||||
$url_key = escapeSql($_GET['url_key']);
|
||||
|
||||
$task_row = mysqli_fetch_assoc(mysqli_query($mysqli,
|
||||
"SELECT approval_scope, approval_status, approval_type, task_id, task_name, ticket_details,
|
||||
"SELECT approval_status, task_id, task_name, ticket_details,
|
||||
ticket_number, ticket_prefix, ticket_priority, ticket_status_name, ticket_subject FROM task_approvals
|
||||
LEFT JOIN tasks ON approval_task_id = task_id
|
||||
LEFT JOIN tickets on task_ticket_id = ticket_id
|
||||
@@ -57,8 +57,6 @@ if (!$task_row) {
|
||||
|
||||
$task_id = intval($task_row['task_id']);
|
||||
$task_name = escapeHtml($task_row['task_name']);
|
||||
$approval_scope = escapeHtml($task_row['approval_scope']);
|
||||
$approval_type = escapeHtml($task_row['approval_type']);
|
||||
$approval_status = escapeHtml($task_row['approval_status']);
|
||||
|
||||
$ticket_prefix = escapeHtml($task_row['ticket_prefix']);
|
||||
@@ -68,47 +66,101 @@ $ticket_priority = escapeHtml($task_row['ticket_priority']);
|
||||
$ticket_subject = escapeHtml($task_row['ticket_subject']);
|
||||
$ticket_details = $purifier->purify($task_row['ticket_details']);
|
||||
|
||||
// Same priority colours the agent ticket list uses, so a ticket reads the same
|
||||
// to the client as it does to the tech looking at it
|
||||
if ($ticket_priority == "Urgent") {
|
||||
$ticket_priority_color = "dark";
|
||||
} elseif ($ticket_priority == "High") {
|
||||
$ticket_priority_color = "danger";
|
||||
} elseif ($ticket_priority == "Medium") {
|
||||
$ticket_priority_color = "warning";
|
||||
} else {
|
||||
$ticket_priority_color = "info";
|
||||
}
|
||||
|
||||
$approve_link = "guest_post.php?approve_ticket_task=$task_id&approval_id=$approval_id&approval_url_key=$url_key";
|
||||
|
||||
?>
|
||||
|
||||
<?php /* The ask comes first. A guest arrives here from a mail link with no
|
||||
context and exactly one thing to do, so the task being approved and
|
||||
the button that approves it sit above the fold; the ticket itself is
|
||||
supporting detail and follows underneath. */ ?>
|
||||
<div class="card mt-3">
|
||||
<div class="card-header bg-dark text-center">
|
||||
<h4 class="mt-1">
|
||||
Task Approval for Ticket <?= $ticket_prefix, $ticket_number ?>
|
||||
</h4>
|
||||
<div class="card-header bg-dark text-center py-3">
|
||||
<h4 class="mb-0"><i class="fas fa-fw fa-clipboard-check me-2"></i>Task Approval</h4>
|
||||
</div>
|
||||
|
||||
<div class="card-body text-center py-4">
|
||||
|
||||
<?php if ($approval_status == 'pending') { ?>
|
||||
<p class="text-muted mb-2">You have been asked to approve the following task</p>
|
||||
<?php } ?>
|
||||
|
||||
<h4 class="mb-3"><?= ucfirst($task_name) ?></h4>
|
||||
|
||||
<p class="text-muted mb-4">
|
||||
Ticket <span class="text-bold"><?= $ticket_prefix, $ticket_number ?></span> — <?= $ticket_subject ?>
|
||||
</p>
|
||||
|
||||
<?php if ($approval_status == 'pending') { ?>
|
||||
|
||||
<?php /* d-grid below sm so the button spans the width on a phone,
|
||||
which is where a mailed approval link is usually opened */ ?>
|
||||
<div class="d-grid gap-2 d-sm-block">
|
||||
<a href="<?= $approve_link ?>" class="btn btn-success btn-lg confirm-link"
|
||||
data-confirm-title="Approve this task?"
|
||||
data-confirm-text="<?= ucfirst($task_name) ?>"
|
||||
data-confirm-button="Yes, approve">
|
||||
<i class="fas fa-fw fa-check me-2"></i>Approve task
|
||||
</a>
|
||||
</div>
|
||||
|
||||
<small class="text-muted d-block mt-3">Not expecting this? Get in touch using the details below.</small>
|
||||
|
||||
<?php } elseif ($approval_status == 'approved') { ?>
|
||||
|
||||
<?php /* guest_post.php redirects back here after approving, so this
|
||||
is the confirmation screen for every successful approval -
|
||||
not just an already-done state */ ?>
|
||||
<div class="alert alert-success d-inline-block mb-0">
|
||||
<i class="fas fa-fw fa-check-circle me-2"></i><span class="text-bold">Approved</span> — nothing further is needed.
|
||||
</div>
|
||||
|
||||
<?php } else { ?>
|
||||
|
||||
<div class="alert alert-danger d-inline-block mb-0">
|
||||
<i class="fas fa-fw fa-times-circle me-2"></i><span class="text-bold">Declined</span> — this task was not approved.
|
||||
</div>
|
||||
|
||||
<?php } ?>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="card">
|
||||
<div class="card-header">
|
||||
<h5 class="card-title mt-2">Ticket details</h5>
|
||||
<div class="card-tools">
|
||||
<span class="p-2 badge rounded-pill text-bg-secondary"><?= $ticket_status ?></span>
|
||||
<span class="p-2 badge rounded-pill text-bg-<?= $ticket_priority_color ?>"><?= $ticket_priority ?></span>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="card-body prettyContent">
|
||||
<h5><strong>Subject:</strong> <?= $ticket_subject ?></h5>
|
||||
<p>
|
||||
<strong>State:</strong> <?= $ticket_status ?>
|
||||
<br>
|
||||
<strong>Priority:</strong> <?= $ticket_priority ?>
|
||||
<br>
|
||||
</p>
|
||||
<?= $ticket_details ?>
|
||||
<hr>
|
||||
<h5>Task Approval</h5>
|
||||
<p>
|
||||
<strong>Task Name: </strong><?= ucfirst($task_name); ?>
|
||||
<br>
|
||||
<strong>Scope/Type:</strong> <?= ucfirst($approval_scope) . " - " . ucfirst($approval_type)?>
|
||||
<br>
|
||||
<strong>Status:</strong> <?= ucfirst($approval_status)?>
|
||||
<br>
|
||||
<?php
|
||||
if ($approval_status == 'pending') { ?>
|
||||
<strong>Action: </strong><a href="guest_post.php?approve_ticket_task=<?= $task_id ?>&approval_id=<?= $approval_id ?>&approval_url_key=<?= $url_key ?>" class="confirm-link text-bold">Approve Task</a>
|
||||
<?php } ?>
|
||||
</p>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<hr>
|
||||
<p class="text-center text-muted my-3">
|
||||
<i class="fas fa-phone fa-fw me-2"></i><?= $company_phone ?>
|
||||
<span class="mx-2">|</span>
|
||||
<i class="fas fa-globe fa-fw me-2"></i><?= $company_website ?>
|
||||
</p>
|
||||
|
||||
<div class="card-footer">
|
||||
<?= "<i class='fas fa-phone fa-fw me-2'></i>$company_phone | <i class='fas fa-globe fa-fw me-2 ms-2'></i>$company_website" ?>
|
||||
</div>
|
||||
<?php /* prettyContent above is inert without this - it is what constrains a
|
||||
pasted screenshot to the column and styles tables in the ticket body */ ?>
|
||||
<script src="/js/pretty_content.js"></script>
|
||||
|
||||
<?php
|
||||
require_once $_SERVER['DOCUMENT_ROOT'] . '/includes/footer.php';
|
||||
|
||||
@@ -29,6 +29,13 @@
|
||||
<!-- Custom Style Sheet -->
|
||||
<link rel="stylesheet" href="/libs/flatpickr/css/flatpickr.min.css">
|
||||
<link rel="stylesheet" href="/libs/tom-select/css/tom-select.bootstrap5.min.css">
|
||||
<?php /* Required: includes/footer.php loads sweetalert2.min.js for the
|
||||
confirm-link dialogs used by guest_approve_ticket_task.php and
|
||||
guest_view_quote.php. Every bit of the dialog's positioning
|
||||
(position:fixed, inset:0, the centering grid) lives in this
|
||||
stylesheet, so without it the popup renders as a static block at
|
||||
the foot of the document. */ ?>
|
||||
<link rel="stylesheet" href="/libs/sweetalert2/css/sweetalert2.min.css">
|
||||
|
||||
<!-- ITFlow style: loaded last so it wins. See includes/header.php -->
|
||||
<link rel="stylesheet" href="/css/itflow_custom.css">
|
||||
|
||||
Reference in New Issue
Block a user