ticket.php 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. <?php
  2. namespace App;
  3. ?>
  4. <div class="modal fade" role="dialog" tabindex="-1" data-bs-backdrop="static" id="ticket-modal">
  5. <div class="modal-dialog modal-lg">
  6. <form class="modal-content" method="post">
  7. <?php
  8. View::include("modals/header", ["title" => __("New Ticket")]);
  9. ?>
  10. <div class="modal-body">
  11. <div class="mb-2">
  12. <label class="form-label" for="ticket-subject"><?=htmlspecialchars(__("Subject"))?></label>
  13. <input class="form-control" type="text" name="subject" id="ticket-subject" maxlength="255" placeholder="<?=htmlspecialchars(__("Type subject"))?>" required />
  14. </div>
  15. <div class="mb-2">
  16. <label class="form-label" for="ticket-content"><?=htmlspecialchars(__("Content"))?></label>
  17. <textarea class="form-control" name="content" id="ticket-content" rows="8" placeholder="<?=htmlspecialchars(__("Type content"))?>" required></textarea>
  18. </div>
  19. <div class="row">
  20. <div class="col-lg">
  21. <div class="mb-2">
  22. <label class="form-label" for="ticket-location"><?=htmlspecialchars(__("Location"))?></label>
  23. <select class="form-control" name="location_id" id="ticket-location" required>
  24. <option value=""><?=htmlspecialchars(__("Select Location"))?></option>
  25. </select>
  26. </div>
  27. </div>
  28. <div class="col-lg">
  29. <div class="mb-2">
  30. <label class="form-label" for="ticket-contact-name"><?=htmlspecialchars(__("Contact Name"))?></label>
  31. <input class="form-control" name="contact_name" id="ticket-contact-name" type="text" maxlength="255" placeholder="<?=htmlspecialchars(__("Type contact name"))?>" />
  32. </div>
  33. </div>
  34. </div>
  35. <div class="mb-2">
  36. <label class="form-label" for="ticket-attachments"><?=htmlspecialchars(__("Attachments"))?></label>
  37. <input class="form-control" type="file" name="attachments[]" multiple />
  38. </div>
  39. </div>
  40. <div class="modal-footer">
  41. <button type="submit" class="btn btn-success">
  42. <?= htmlspecialchars(__("Save")) ?>
  43. </button>
  44. </div>
  45. </form>
  46. </div>
  47. </div>