{% extends 'base.html.twig' %} {% block title %}Traceroute{% endblock %} {% form_theme form 'bootstrap_4_horizontal_layout.html.twig' %} {% block title_page %}Traceroute{% endblock %} {% block container_start %}
{{ form_start(form) }} {{ form_row(form.id, {'attr':{'class':'select2', 'style':'width:100%;'}}) }}
{{ form_end(form) }}
{% if productFollow is defined %}

Information :

Identifiant :
{{productFollow.id}}
Nom :
{{productFollow.product.name}}
Catégorie :
    {% for category in productFollow.product.category %}
  • {{category.name}}
  • {% endfor %}
Description :
{{productFollow.product.description}}
Référence :
{{productFollow.product.reference}}
Création :
{{productFollow.createdAt|date("d/m/Y")}}
Dernière MAJ :
{{productFollow.updatedAt|date("d/m/Y")}}
N° série fabriquant :
{% if is_granted("ROLE_VIEW_PRODUCT_FOLLOW") %} {{productFollow.manufacturerSerialNumber}}
{% else %} {{productFollow.manufacturerSerialNumber}} {% endif %}
N° série société :
{% if is_granted("ROLE_VIEW_PRODUCT_FOLLOW") %} {{productFollow.companySerialNumber}}
{% else %} {{productFollow.companySerialNumber}} {% endif %}
État :
{{productFollow.state}}

Historique :

{% endif %} {% if maintenanceDetails is defined %}
{% for md in maintenanceDetails %}
{% if md.type.name == "Ajout"%} {% elseif md.type.name == "Suppression" %} {% else %} {% endif %}
{{ md.maintenance.doAt|date("d/m/Y - H:i:s") }}

{{ md.type.name }}

Date :
{{ md.maintenance.doAt|date("d/m/Y - H:i:s") }}
Site :
{% if is_granted("ROLE_VIEW_SITE") %} {{ md.maintenance.site.name }} {% else %} {{ md.maintenance.site.name }} {% endif %}
Adresse :
{{ md.maintenance.site.address }}
Code postal :
{{ md.maintenance.site.zipcode }}
Ville :
{{ md.maintenance.site.city }}
Technicien :
{{ md.maintenance.doBy.name}} {{ md.maintenance.doBy.firstName}}
{% endfor %}
{% endif %} {% endblock %}