Fixed ticket editing, and ticket overview size.
This commit is contained in:
13
ticket.php
13
ticket.php
@ -30,6 +30,17 @@ $ticket = $result->fetch_assoc();
|
||||
<script src="assets/js/dashboard.js"></script>
|
||||
<script src="assets/js/ticket.js"></script>
|
||||
<script src="https://cdn.jsdelivr.net/npm/marked/marked.min.js"></script>
|
||||
<script>
|
||||
// Store ticket data in a global variable
|
||||
window.ticketData = {
|
||||
ticket_id: "<?php echo $ticket['ticket_id']; ?>",
|
||||
title: "<?php echo htmlspecialchars($ticket['title']); ?>",
|
||||
status: "<?php echo $ticket['status']; ?>",
|
||||
priority: "<?php echo $ticket['priority']; ?>",
|
||||
category: "<?php echo $ticket['category']; ?>",
|
||||
type: "<?php echo $ticket['type']; ?>"
|
||||
};
|
||||
</script>
|
||||
</head>
|
||||
<body>
|
||||
<div class="ticket-container" data-priority="<?php echo $ticket[
|
||||
@ -55,6 +66,7 @@ $ticket = $result->fetch_assoc();
|
||||
</div>
|
||||
</div>
|
||||
<div class="ticket-details">
|
||||
<!--
|
||||
<div class="detail-group status-priority-row">
|
||||
<div class="detail-quarter">
|
||||
<label>Status</label>
|
||||
@ -120,6 +132,7 @@ $ticket = $result->fetch_assoc();
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
-->
|
||||
<div class="ticket-tabs">
|
||||
<button class="tab-btn active" onclick="showTab('description')">Description</button>
|
||||
<button class="tab-btn" onclick="showTab('comments')">Comments</button>
|
||||
|
||||
Reference in New Issue
Block a user