84 lines
4.1 KiB
PHP
84 lines
4.1 KiB
PHP
<?php
|
|
// This file contains the HTML template for creating a new ticket
|
|
?>
|
|
<!DOCTYPE html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
<title>Create New Ticket</title>
|
|
<link rel="icon" type="image/png" href="<?php echo $GLOBALS['config']['ASSETS_URL']; ?>/images/favicon.png">
|
|
<link rel="stylesheet" href="<?php echo $GLOBALS['config']['ASSETS_URL']; ?>/css/dashboard.css">
|
|
<link rel="stylesheet" href="<?php echo $GLOBALS['config']['ASSETS_URL']; ?>/css/ticket.css">
|
|
<script src="<?php echo $GLOBALS['config']['ASSETS_URL']; ?>/js/dashboard.js"></script>
|
|
</head>
|
|
<body>
|
|
<div class="ticket-container">
|
|
<div class="ticket-header">
|
|
<h2>Create New Ticket</h2>
|
|
</div>
|
|
|
|
<?php if (isset($error)): ?>
|
|
<div class="error-message"><?php echo $error; ?></div>
|
|
<?php endif; ?>
|
|
|
|
<form method="POST" action="<?php echo $GLOBALS['config']['BASE_URL']; ?>/ticket/create" class="ticket-form">
|
|
<div class="ticket-details">
|
|
<div class="detail-group">
|
|
<label for="title">Title</label>
|
|
<input type="text" id="title" name="title" class="editable" required>
|
|
</div>
|
|
|
|
<div class="detail-group status-priority-row">
|
|
<div class="detail-quarter">
|
|
<label for="status">Status</label>
|
|
<select id="status" name="status" class="editable">
|
|
<option value="Open" selected>Open</option>
|
|
<option value="Closed">Closed</option>
|
|
</select>
|
|
</div>
|
|
<div class="detail-quarter">
|
|
<label for="priority">Priority</label>
|
|
<select id="priority" name="priority" class="editable">
|
|
<option value="1">P1 - Critical Impact</option>
|
|
<option value="2">P2 - High Impact</option>
|
|
<option value="3">P3 - Medium Impact</option>
|
|
<option value="4" selected>P4 - Low Impact</option>
|
|
</select>
|
|
</div>
|
|
<div class="detail-quarter">
|
|
<label for="category">Category</label>
|
|
<select id="category" name="category" class="editable">
|
|
<option value="Hardware">Hardware</option>
|
|
<option value="Software">Software</option>
|
|
<option value="Network">Network</option>
|
|
<option value="Security">Security</option>
|
|
<option value="General" selected>General</option>
|
|
</select>
|
|
</div>
|
|
<div class="detail-quarter">
|
|
<label for="type">Type</label>
|
|
<select id="type" name="type" class="editable">
|
|
<option value="Maintenance">Maintenance</option>
|
|
<option value="Install">Install</option>
|
|
<option value="Task">Task</option>
|
|
<option value="Upgrade">Upgrade</option>
|
|
<option value="Issue" selected>Issue</option>
|
|
</select>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="detail-group full-width">
|
|
<label for="description">Description</label>
|
|
<textarea id="description" name="description" class="editable" rows="15" required></textarea>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="ticket-footer">
|
|
<button type="submit" class="btn primary">Create Ticket</button>
|
|
<button type="button" onclick="window.location.href='<?php echo $GLOBALS['config']['BASE_URL']; ?>/'" class="btn back-btn">Cancel</button>
|
|
</div>
|
|
</form>
|
|
</div>
|
|
</body>
|
|
</html>
|