modal.issue.report.php 4.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  1. <?php
  2. require_once(__DIR__.SLASH.'IssueReportTag.class.php');
  3. $tags = IssueReportTag::tags();
  4. ?>
  5. <div class="issue-declare-button d-flex noPrint" onclick="issue_add();" title="Déclarer un ticket"><i class="fas fa-ticket-alt m-auto"></i><i class="fas fa-cog fa-spin m-auto 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 user-select-none" 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="user,rank" 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. <input
  37. type="text"
  38. data-type="file"
  39. data-action="issue_attachments"
  40. data-label="Faites glisser vos fichiers supplémentaires ici" data-extension="jpeg,jpg,bmp,gif,png,xlsx,docx,pdf" class="component-file-default bg-white shadow-sm" data-id="document" name="document"/>
  41. <div class="issue-screenshot hidden"></div>
  42. <h5 class="d-inline-block mr-2 mt-2 w-auto bold-title">INFORMATIONS</h5>
  43. <ul class="list-group">
  44. <li class="list-group-item">
  45. <div class="mb-1 font-weight-bold">Page :</div>
  46. <u class="text-info default"><span class="page-link-issue" data-uid="from"></span></u>
  47. </li>
  48. <li class="list-group-item">
  49. <div class="mb-1 font-weight-bold">Navigateur : </div>
  50. <span data-uid="browser"></span> <small class="text-muted" data-uid="browserVersion"></small>
  51. </li>
  52. <li class="list-group-item">
  53. <div class="font-weight-bold d-inline-block">Os : </div>
  54. <span class="badge badge-primary badge-pill" data-uid="os"></span>
  55. </li>
  56. <li class="list-group-item">
  57. <div class="font-weight-bold d-inline-block">Internet : </div>
  58. <span class="badge badge-primary badge-pill" data-uid="online"></span>
  59. </li>
  60. </ul>
  61. </div>
  62. </div>
  63. <div class="modal-footer">
  64. <button type="button" class="close-button btn btn-light" data-dismiss="modal">Fermer</button>
  65. <button type="button" id="issue-send" class="btn btn-primary" onclick="issue_send(this);"><i class="far fa-paper-plane"></i> Envoyer</button>
  66. </div>
  67. </div>
  68. </div>
  69. </div>
  70. </div>