{# empty Twig template #} {% extends "@oderaScenario/Diagnostic/cell-template.html.twig" %} {% block id %}culture{% endblock %} {% block name %} {% if readonly %} Étouffement culture {%else%} Culture {%endif%} {% endblock %} {% block content %}
{% if readonly %} {# itk.culture ? itk.culture.nom #} {%else%} {{ form_widget(form.culture, {'attr': {'data-event-change-init': 0}}) }} {%endif%}
Association de cultures : {% if readonly %} {{ itk.culture2 ? itk.culture2.nom }} {%else%} {{ form_widget(form.culture2) }} {%endif%}
{% if readonly %} {{ itk.etouffement ? itk.etouffement.nom }} {% else %} Etouffement : {{ form_widget(form.etouffement) }} {%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_etouff_culture'][id_itk] is not empty %} {% set note = results['note_etouff_culture'][id_itk]['noteetouffculture'] |round %} {% set note_parent = null %} {% if isEnfant and iditk_parent %} {% set note_parent = results_parent['note_etouff_culture'][iditk_parent]['noteetouffculture'] |round %} {% endif %} {% include "@oderaScenario/Diagnostic/cell-note.html.twig" %} {% endif %}
{% endfor %} {% endblock %}