modal.issue.report.php 4.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  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 bug"><i class="fas fa-bug"></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" id="modal-issue-report-label">Nouveau ticket (Bug / Demandes) :</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. <h5 class="d-inline-block mr-2 w-auto">Sélectionnez une catégorie :</h5>
  22. <input type="text" data-tags='<?php echo json_encode($tags); ?>' class="issue-modal-tags no-select" data-type="tagcloud">
  23. </div>
  24. <div class="col-md-12"><hr></div>
  25. <div class="col-md-8">
  26. <h5 class="d-inline-block mr-2 w-auto">Commentez votre ticket :<small class="text-muted"> (eg. votre demande, étapes pour arriver à l'erreur, etc...)</small></h5>
  27. <textarea data-type="wysiwyg" id="issue-comment" class="form-control mt-0"></textarea>
  28. </div>
  29. <div class="col-md-4">
  30. <h5 class="d-inline-block mr-2 w-auto">Informations :</h5>
  31. <ul class="list-group">
  32. <li class="list-group-item">
  33. <div class="mb-1 font-weight-bold">Page :</div>
  34. <u class="text-info default"><span class="page-link-issue" data-uid="from"></span></u>
  35. </li>
  36. <li class="list-group-item">
  37. <div class="mb-1 font-weight-bold">Navigateur : </div>
  38. <span data-uid="browser"></span> <small class="text-muted" data-uid="browserVersion"></small>
  39. </li>
  40. <li class="list-group-item">
  41. <div class="font-weight-bold d-inline-block">Os : </div>
  42. <span class="badge badge-primary badge-pill" data-uid="os"></span>
  43. </li>
  44. <li class="list-group-item">
  45. <div class="font-weight-bold d-inline-block">Internet : </div>
  46. <span class="badge badge-primary badge-pill" data-uid="online"></span>
  47. </li>
  48. </ul>
  49. </div>
  50. </div>
  51. </div>
  52. <div class="col-md-4">
  53. <h5 class="d-inline-block mr-2 w-auto">Fichiers joints :</h5>
  54. <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>
  55. <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>
  56. <div class="issue-screenshot hidden"></div>
  57. </div>
  58. </div>
  59. <div class="modal-footer">
  60. <button type="button" class="close-button btn btn-light" data-dismiss="modal">Fermer</button>
  61. <button type="button" id="issue-send" class="btn btn-primary" onclick="issue_send(this);"><i class="far fa-paper-plane"></i> Envoyer</button>
  62. </div>
  63. </div>
  64. </div>
  65. </div>