{% extends 'base_douchette.html.twig' %} {% import 'macros/macro.html.twig' as macro %} {% block title %} {{ parent() }} Recherche REPLOC {% endblock %} {% block stylesheets %} {{ parent() }} {% endblock %} {% block body %} {{ parent() }}
{{ form_start(form, {'attr' : {'id' : 'repLocForm', 'class' : 'spinner_form form-inline'}}) }} Menu {{ form_widget(form.search) }} {{ form_end(form) }}
{% if status != 'default' %}
{% if status == 'notFound' %}

Aucune REPLOC trouvée

{% elseif status == 'ok' %}
Référence REPLOC :
{{ reploc.code }}
Statut actuel :
{{ reploc.displayStatus }}
Libellé article :
{% if reploc.articleName == '' %}INCONNU{% else %}{{ reploc.articleName }}{% endif %}
Code article :
{% if reploc.articleCode == '' %}INCONNU{% else %}{{ reploc.articleCode }}{% endif %}
Date prévisionnelle de réparation :
{% if reploc.datePlanifRepar != null %}{{ reploc.datePlanifRepar| date("d/m/Y") }}{% else %}Aucune{% endif %}
Date de remise en location :
{% if reploc.dateRemiseLoc != null %}{{ reploc.dateRemiseLoc| date("d/m/Y") }}{% else %}Aucune{% endif %}
{% if reploc.isStatusEnr %}
{% endif %} {% if reploc.isStatusDiag or reploc.isStatusFourEnv or reploc.isStatusFourP %}
{% if reploc.isCal %} {% if reploc.getHasCertif == "oui" %}
{% else %}

La CALLOC ne peut pas être terminée sans certificat

{% endif %} {% elseif reploc.isRep %} {% if not reploc.isDiagnosticCalibYes or reploc.getHasCertif == "oui" %}
{% else %}

La REPLOC ne peut pas être terminée sans certificat

{% endif %} {% endif %} {% elseif isButtonLoc == 0 %}
{% elseif reploc.isStatusTermine %}

La REPLOC est terminée

{% elseif reploc.isStatusIrrep %}

La REPLOC est irréparable

{% endif %} {% endif %}
{% endif %}
{% endblock %} {% block modal %} {% endblock %} {% block javascripts %} {{ parent() }} {% endblock %}