modal.issue.report.php 4.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. <?php
  2. require_once(__DIR__.SLASH.'IssueReportTag.class.php');
  3. $tags = IssueReportTag::tags();
  4. ?>
  5. <div class="issue-declare-button noPrint" onclick="issue_add();" title="Déclarer un ticket"><i class="fas fa-ticket-alt"></i><i class="fas fa-cog fa-spin hidden"></i></div>
  6. <!-- Modal -->
  7. <div class="modal fade issue-report-modal" id="issue-report-modal" tabindex="-1" role="dialog" aria-labelledby="modal-issue-report-label" aria-hidden="true">
  8. <div class="modal-dialog" role="document">
  9. <div class="modal-content">
  10. <div class="modal-header">
  11. <h4 class="modal-title text-muted" id="modal-issue-report-label">NOUVEAU TICKET</h4>
  12. <button type="button" class="close" data-dismiss="modal" aria-label="Close">
  13. <span aria-hidden="true">&times;</span>
  14. </button>
  15. </div>
  16. <div class="modal-body">
  17. <div class="row issue-form">
  18. <div class="col-md-8">
  19. <div class="row">
  20. <div class="col-md-12">
  21. <span class="mr-2 bold-title">CATEGORIE</span>
  22. <div class="d-inline-block">
  23. <input type="text" data-tags='<?php echo json_encode($tags); ?>' class="issue-modal-tags no-select" data-type="tagcloud">
  24. </div>
  25. </div>
  26. <div class="col-md-12">
  27. <span class="mr-2 bold-title">COMMENTAIRE<small class="text-muted"> - (eg. votre demande, étapes pour arriver à l'erreur, etc...)</small></span>
  28. <textarea data-type="wysiwyg" data-mention-user="true" data-mention-object='issue_autocomplete' id="issue-comment" class="mt-0"></textarea>
  29. </div>
  30. </div>
  31. </div>
  32. <div class="col-md-4">
  33. <span class="d-inline-block mr-2 w-auto bold-title">FICHIERS</span>
  34. <div onclick="issue_screenshot()" class="btn d-inline-block p-0 float-right"><i class="fas fa-camera-retro"></i> <small class="text-muted">Prendre une capture d'écran</small></div>
  35. <div data-type="dropzone" data-label="Faites glisser vos fichiers supplémentaires ici" data-allowed="jpeg,jpg,bmp,gif,png,xlsx,docx,pdf" class="form-control mt-2" id="document" name="document"></div>
  36. <div class="issue-screenshot hidden"></div>
  37. <h5 class="d-inline-block mr-2 mt-2 w-auto bold-title">INFORMATIONS</h5>
  38. <ul class="list-group">
  39. <li class="list-group-item">
  40. <div class="mb-1 font-weight-bold">Page :</div>
  41. <u class="text-info default"><span class="page-link-issue" data-uid="from"></span></u>
  42. </li>
  43. <li class="list-group-item">
  44. <div class="mb-1 font-weight-bold">Navigateur : </div>
  45. <span data-uid="browser"></span> <small class="text-muted" data-uid="browserVersion"></small>
  46. </li>
  47. <li class="list-group-item">
  48. <div class="font-weight-bold d-inline-block">Os : </div>
  49. <span class="badge badge-primary badge-pill" data-uid="os"></span>
  50. </li>
  51. <li class="list-group-item">
  52. <div class="font-weight-bold d-inline-block">Internet : </div>
  53. <span class="badge badge-primary badge-pill" data-uid="online"></span>
  54. </li>
  55. </ul>
  56. </div>
  57. </div>
  58. <div class="modal-footer">
  59. <button type="button" class="close-button btn btn-light" data-dismiss="modal">Fermer</button>
  60. <button type="button" id="issue-send" class="btn btn-primary" onclick="issue_send(this);"><i class="far fa-paper-plane"></i> Envoyer</button>
  61. </div>
  62. </div>
  63. </div>
  64. </div>
  65. </div>