{# empty Twig template #} {% extends "@oderaScenario/Diagnostic/cell-template.html.twig" %} {% block id %}labour{% endblock %} {% block name %}Date de labour{% endblock %} {% block content %} {% if readonly %}
{{itk.decadeLabour ? itk.decadeLabour.nom}}
{% else %}
{{ form_widget(form.decadeLabour) }}
{% endif %} {% endblock %} {% block result %} {% set count_adv = 0 %} {% for etude in scenario.etudes %} {% set count_adv = count_adv + 1 %} {% set id_adv = etude.adventice.id %}
{{etude.adventice.nom}}
{% if results['note_labour'][id_adv][id_itk] is not empty %} {% set note = results['note_labour'][id_adv][id_itk]['notelabour'] |round %} {% set note_parent = null %} {% if isEnfant and iditk_parent %} {% set note_parent = results_parent['note_labour'][id_adv][iditk_parent]['notelabour'] |round %} {% set diff_note = note -note_parent %} {% endif %} {% include "@oderaScenario/Diagnostic/cell-note.html.twig" %} {% endif %}
{% endfor %} {% endblock %}