選択できるのは25トピックまでです。 トピックは、先頭が英数字で、英数字とダッシュ('-')を使用した35文字以内のものにしてください。

96 行
5.2KB

  1. {% extends '@LcSov/adminlte/layout.html.twig' %}
  2. {% import '@LcSov/adminlte/macro/infobox.html.twig' as macro %}
  3. {% block content_title %}
  4. {{ 'detail'|sov_trans_admin_title(ea.getEntity().getFqcn(), {id: ea.getEntity().getInstance().getId()}) }}
  5. {% endblock %}
  6. {% block main %}
  7. <div class="row">
  8. <div class="col-4">
  9. {% embed '@LcSov/adminlte/embed/infobox.html.twig' %}
  10. {% block color %}blue{% endblock %}
  11. {% block icon %}fa fa-toggle-on{% endblock %}
  12. {% block title %}Status{% endblock %}
  13. {% block content %}
  14. {% form_theme form_ticket_status '@LcSov/adminlte/crud/form_theme.html.twig' %}
  15. {{ form_start(form_ticket_status,{'attr' : {'id' : 'ticketStatusForm'}}) }}
  16. {% for field in form_ticket_status.status %}
  17. {{ form_widget(field, {'attr': {"class" : 'ticket-status'}}) }}
  18. {% endfor %}
  19. {{ form_end(form_ticket_status) }}
  20. {% endblock %}
  21. {% endembed %}
  22. {% embed '@LcSov/adminlte/embed/infobox.html.twig' %}
  23. {% block color %}blue{% endblock %}
  24. {% block icon %}fa fa-user{% endblock %}
  25. {% block title %}Utilisateur{% endblock %}
  26. {% block content %}
  27. {{ ticket.getUserInfosTicket() }}
  28. {% endblock %}
  29. {% endembed %}
  30. {{ macro.infobox('Date',ticket.createdAt|date('d/m/Y'), "yellow", "fa fa-calendar") }}
  31. {{ macro.infobox('Catégorie',ticket_container.solver.getTypeLabel(ticket)|trans({},'admin'), "green", "fa fa-archive") }}
  32. </div>
  33. <div class="col-8">
  34. {% embed '@LcSov/adminlte/embed/card.html.twig' %}
  35. {% block class %}card-primary{% endblock %}
  36. {% block header %}
  37. <h3 class="card-title">
  38. Liste des messages
  39. </h3>
  40. {% endblock header %}
  41. {% block body_wrapper %}
  42. <div class="card-body row">
  43. <div class="col-12 direct-chat-primary">
  44. {% for message in ticket.ticketMessages %}
  45. <div class="direct-chat-msg {{ message.answerByAdmin ? 'right' }}">
  46. <div class="direct-chat-infos clearfix">
  47. <div class="direct-chat-name {{ message.answerByAdmin ? 'float-right' : 'float-left' }}">
  48. {{ message.createdBy }}
  49. </div>
  50. <div class="direct-chat-timestamp {{ message.answerByAdmin ? 'float-left' : 'float-right' }}">
  51. {{ message.createdAt|date('d/m/Y H:i') }}
  52. </div>
  53. </div>
  54. {% if message.answerByAdmin %}
  55. <div class="direct-chat-img align-items-center">
  56. <i class="fa fa-user-circle" style="font-size: 2rem; color: red"></i>
  57. </div>
  58. {% else %}
  59. <div class="direct-chat-img align-items-center">
  60. <i class="fa fa-user-circle" style="font-size: 2rem"></i>
  61. </div>
  62. {% endif %}
  63. <div class="direct-chat-text">
  64. <p>{{ message.message|nl2br }}</p>
  65. {% if message.imageFilename is not null %}
  66. <i>Photo jointe au message : </i> <br/>
  67. <a href="{{ sov_liip(message.imageFilename, 'big') }}"
  68. data-toggle="lightbox">
  69. <img src="{{ sov_liip(message.imageFilename, 'thumb') }}"
  70. alt="Illustration ticket"/>
  71. </a>
  72. {% endif %}
  73. </div>
  74. </div>
  75. {% endfor %}
  76. </div>
  77. <hr />
  78. {{ form_start(form_add_ticket_message, {"attr" : {"class" : 'col-12', 'id' : 'addTicketMessageForm'}}) }}
  79. {% form_theme form_add_ticket_message '@LcSov/adminlte/crud/form_theme.html.twig' %}
  80. <div class="row">
  81. <div class="col-12">
  82. {{ form_row(form_add_ticket_message.message) }}
  83. </div>
  84. </div>
  85. {{ form_end(form_add_ticket_message) }}
  86. </div>
  87. {% endblock %}
  88. {% endembed %}
  89. </div>
  90. </div>
  91. {% endblock %}