{% extends '@LcSov/adminlte/layout.html.twig' %} {% import '@LcSov/adminlte/macro/infobox.html.twig' as macro %} {% block content_title %} {{ 'detail'|sov_trans_admin_title(ea.getEntity().getFqcn(), {id: ea.getEntity().getInstance().getId()}) }} {% endblock %} {% block main %}
{% embed '@LcSov/adminlte/embed/infobox.html.twig' %} {% block color %}blue{% endblock %} {% block icon %}fa fa-toggle-on{% endblock %} {% block title %}Status{% endblock %} {% block content %} {% form_theme form_ticket_status '@LcSov/adminlte/crud/form_theme.html.twig' %} {{ form_start(form_ticket_status,{'attr' : {'id' : 'ticketStatusForm'}}) }} {% for field in form_ticket_status.status %} {{ form_widget(field, {'attr': {"class" : 'ticket-status'}}) }} {% endfor %} {{ form_end(form_ticket_status) }} {% endblock %} {% endembed %} {% embed '@LcSov/adminlte/embed/infobox.html.twig' %} {% block color %}blue{% endblock %} {% block icon %}fa fa-user{% endblock %} {% block title %}Utilisateur{% endblock %} {% block content %} {{ ticket_container.solver.getUserInfosTicket(ticket) }} {% endblock %} {% endembed %} {{ macro.infobox('Date',ticket.createdAt|date('d/m/Y H:i'), "yellow", "fa fa-calendar") }} {{ macro.infobox('Catégorie',ticket_container.solver.getTypeLabel(ticket)|trans({},'admin'), "green", "fa fa-archive") }}
{% embed '@LcSov/adminlte/embed/card.html.twig' %} {% block class %}card-primary{% endblock %} {% block header %}

Liste des messages

{% endblock header %} {% block body_wrapper %}
{% for message in ticket.ticketMessages %}
{{ message.createdBy }}
{{ message.createdAt|date('d/m/Y H:i') }}
{% if message.answerByAdmin %}
{% else %}
{% endif %}

{{ message.message|nl2br }}

{% if message.imageFilename is not null %} Photo jointe au message :
Illustration ticket {% endif %}
{% endfor %}

{{ form_start(form_add_ticket_message, {"attr" : {"class" : 'col-12', 'id' : 'addTicketMessageForm'}}) }} {% form_theme form_add_ticket_message '@LcSov/adminlte/crud/form_theme.html.twig' %}
{{ form_row(form_add_ticket_message.message) }}
{{ form_end(form_add_ticket_message) }}
{% endblock %} {% endembed %}
{% endblock %}