|
@@ -5,6 +5,9 @@ namespace App;
|
|
|
<div class="modal-dialog modal-lg">
|
|
<div class="modal-dialog modal-lg">
|
|
|
<form class="modal-content" method="post">
|
|
<form class="modal-content" method="post">
|
|
|
<?php
|
|
<?php
|
|
|
|
|
+
|
|
|
|
|
+ use App\Helpers\HtmlHelper;
|
|
|
|
|
+
|
|
|
View::include("modals/header", ["title" => __("New Ticket")]);
|
|
View::include("modals/header", ["title" => __("New Ticket")]);
|
|
|
?>
|
|
?>
|
|
|
<div class="modal-body">
|
|
<div class="modal-body">
|
|
@@ -16,22 +19,52 @@ namespace App;
|
|
|
<label class="form-label" for="ticket-content"><?=htmlspecialchars(__("Content"))?></label>
|
|
<label class="form-label" for="ticket-content"><?=htmlspecialchars(__("Content"))?></label>
|
|
|
<textarea class="form-control" name="content" id="ticket-content" rows="8" placeholder="<?=htmlspecialchars(__("Type content"))?>" required></textarea>
|
|
<textarea class="form-control" name="content" id="ticket-content" rows="8" placeholder="<?=htmlspecialchars(__("Type content"))?>" required></textarea>
|
|
|
</div>
|
|
</div>
|
|
|
- <div class="row">
|
|
|
|
|
- <div class="col-lg">
|
|
|
|
|
|
|
+ <div class="mb-2">
|
|
|
|
|
+ <label class="form-label" for="ticket-contact-name"><?=htmlspecialchars(__("Contact Name"))?></label>
|
|
|
|
|
+ <input class="form-control" name="contact_name" id="ticket-contact-name" type="text" maxlength="255" placeholder="<?=htmlspecialchars(__("Type contact name"))?>" />
|
|
|
|
|
+ </div>
|
|
|
|
|
+ <div id="location-row" class="mb-2">
|
|
|
|
|
+ <label class="form-label" for="ticket-location">
|
|
|
|
|
+ <?=htmlspecialchars(__("Location"))?>
|
|
|
|
|
+ </label>
|
|
|
|
|
+ <select class="form-control" name="location_id" id="ticket-location" required>
|
|
|
|
|
+ <option value=""><?=htmlspecialchars(__("Select Location"))?></option>
|
|
|
|
|
+ </select>
|
|
|
|
|
+ <a id="no-location-action" href="#"><?=htmlspecialchars(__("Click here if the location is not listed."))?></a>
|
|
|
|
|
+ </div>
|
|
|
|
|
+
|
|
|
|
|
+ <div id="no-location-row" class="row" style="display: none;">
|
|
|
|
|
+ <div class="col-lg-4">
|
|
|
<div class="mb-2">
|
|
<div class="mb-2">
|
|
|
- <label class="form-label" for="ticket-location"><?=htmlspecialchars(__("Location"))?></label>
|
|
|
|
|
- <select class="form-control" name="location_id" id="ticket-location" required>
|
|
|
|
|
- <option value=""><?=htmlspecialchars(__("Select Location"))?></option>
|
|
|
|
|
|
|
+ <label class="form-label" for="ticket-customer-id">
|
|
|
|
|
+ <?=htmlspecialchars(__("Customer"))?>
|
|
|
|
|
+ </label>
|
|
|
|
|
+ <select class="form-control" name="customer_id" id="ticket-customer-id">
|
|
|
|
|
+ <option value=""><?=htmlspecialchars(__("Select Customer"))?></option>
|
|
|
|
|
+ <?php
|
|
|
|
|
+ HtmlHelper::renderOptions(Customer::getOptions());
|
|
|
|
|
+ ?>
|
|
|
</select>
|
|
</select>
|
|
|
</div>
|
|
</div>
|
|
|
</div>
|
|
</div>
|
|
|
- <div class="col-lg">
|
|
|
|
|
|
|
+ <div class="col-lg-4">
|
|
|
|
|
+ <div class="mb-2">
|
|
|
|
|
+ <label class="form-label" for="ticket-location-name">
|
|
|
|
|
+ <?=htmlspecialchars(__("Location Name"))?>
|
|
|
|
|
+ </label>
|
|
|
|
|
+ <input class="form-control" type="text" name="location_name" id="ticket-location-name" maxlength="255" placeholder="<?=htmlspecialchars(__("Type location name"))?>" />
|
|
|
|
|
+ </div>
|
|
|
|
|
+ </div>
|
|
|
|
|
+ <div class="col-lg-4">
|
|
|
<div class="mb-2">
|
|
<div class="mb-2">
|
|
|
- <label class="form-label" for="ticket-contact-name"><?=htmlspecialchars(__("Contact Name"))?></label>
|
|
|
|
|
- <input class="form-control" name="contact_name" id="ticket-contact-name" type="text" maxlength="255" placeholder="<?=htmlspecialchars(__("Type contact name"))?>" />
|
|
|
|
|
|
|
+ <label class="form-label" for="ticket-postal-code">
|
|
|
|
|
+ <?=htmlspecialchars(__("Location Postcode"))?>
|
|
|
|
|
+ </label>
|
|
|
|
|
+ <input class="form-control" type="text" name="postal_code" id="ticket-postal-code" maxlength="255" placeholder="<?=htmlspecialchars(__("Type postcode"))?>" />
|
|
|
</div>
|
|
</div>
|
|
|
</div>
|
|
</div>
|
|
|
</div>
|
|
</div>
|
|
|
|
|
+
|
|
|
<div class="mb-2">
|
|
<div class="mb-2">
|
|
|
<label class="form-label" for="ticket-attachments"><?=htmlspecialchars(__("Attachments"))?></label>
|
|
<label class="form-label" for="ticket-attachments"><?=htmlspecialchars(__("Attachments"))?></label>
|
|
|
<input class="form-control" type="file" name="attachments[]" multiple />
|
|
<input class="form-control" type="file" name="attachments[]" multiple />
|