{# empty Twig template #} {% if isSupervised is not defined %} {% set isSupervised = false %} {% endif %} {% extends "@oderaScenario/layout.html.twig" %} {% block scenario_body %} {% if scenario_parent is null %} {% set isEnfant = false %} {% else %} {% set isEnfant = true %} {% endif %}

Étape 2 : construction d'un nouveau système


{{ form_start(form) }}
{% if step > 2 and step <= 10 %} Retour {% endif %} Enregistrer et recharger {# return $this->redirectToRoute('odera_systeme_pas_a_pas', [ 'id' => $scenario->getId(), 'step' => $step + 1, #}
{{ form_widget(form.save, { 'label':"Suivant", 'attr' : {'class' : 'bt-suivant'},}) }}

{{ form_widget(form.nom) }}
{% if step == 2 %}

{{ step - 1 }}. Déterminez les cultures de la succession culturale

Conseil : Diversifier au maximum les dates de semis des cultures à l’échelle de la succession.

{% endif %} {% if step == 3 %}

{{ step - 1 }}. Déterminez les dates de semis des cultures

Conseil : Positionner de préférence la date de semis après le pic de levée des adventices.

{% endif %} {% if step == 4 %}

{{ step - 1 }}. Déterminez la place du travail superficiel du sol dans la rotation

Conseil : Positionner les interventions pendant la période de levée préférentielle des adventices.

{% endif %} {% if step == 5 %}

{{ step - 1 }}. Déterminez la place du labour dans la rotation

Conseil : Alterner labour et non-labour et labourer pendant la période de levée préférentielle des adventices.

{% endif %} {% if step == 6 %}

{{ step - 1 }}. Déterminez la densité de semis pour les céréales

Conseil : Augmenter la densité de semis permet concurrencer les adventices vis-à-vis de l’espace et de la lumière. (ATTENTION l’augmentation de la densité de semis augmente le risque en maladies)

{% endif %} {% if step == 7 %}

{{ step - 1 }}. Déterminez l'écartement entre rangs

Conseil : Réduire l’écartement entre les rangs pour concurrencer les adventices vis-à-vis de l’espace et de la lumière.

{% endif %} {% if step == 8 %}

{{ step - 1 }}. Déterminez la variété

Conseil : Privilégier les variétés hautes, avec des feuilles à port retombant et précoces à la montaison.

{% endif %} {% if step == 9 %}

{{ step - 1 }}. Déterminez la place du désherbage mécanique dans la rotation

Conseil : Choisir le ou les outils utilisés et positionner les interventions pendant la période de levée préférentielle des adventices.

{% endif %} {% if step == 10 %}

{{ step - 1 }}. Déterminez la place du désherbage chimique dans la rotation

{% endif %}
{% set resultat = true %} {% if form.vars is defined %} {% set itks = form.vars['data'].itks %} {% set index = 0 %}
{% for itk in form.itks %} {% set id_itk = itk.vars.data.id %} {% set iditk_parent = null %} {% if isEnfant %} {% for itk_parent in scenario_parent.itks %} {% if (itk.ancienOrdre is defined) and itk_parent.annee == itk.ancienOrdre %} {% set iditk_parent = itk_parent.id %} {% elseif (itk.vars.data.ancienOrdre is defined) and itk_parent.annee == itk.vars.data.ancienOrdre %} {% set iditk_parent = itk_parent.id %} {% endif %} {% endfor %} {% endif %}
{{ form_widget(itk.id, {'data' : itk.id.vars.value}) }} {#
Année {{ index + 1 }} {% if step > 2 %} {% if itk.vars.data.culture is null %} - Non définie {% else %} - {{ itk.vars.data.culture.nom }} {% endif %} {% endif %}  
#} {% set nomculture = "" %} {% if step > 2 %} {% if itk.vars.data.culture is null %} {% set nomculture = "Non définie" %} {% else %} {% set nomculture = itk.vars.data.culture.nom %} {% endif %} {% endif %} {% set cultureinheader = false %} {% if step > 2 %} {% set cultureinheader = true %} {% endif %} {% include '@oderaScenario/Diagnostic/cell-annee.html.twig' %} {# step 2 #} {% set iterator_step = 2 %} {% if step == iterator_step %} {% include '@oderaScenario/Diagnostic/cell-culture.html.twig' with {'form':itk, 'etouffement' : scenario.itks[loop.index0].etouffement} %} {% elseif step > iterator_step %} {% include '@oderaScenario/Diagnostic/cell-culture.html.twig' with {'form':itk, 'readonly': true, 'itk':itks_existants[loop.index0] } %} {% endif %} {# step 3 #} {% set iterator_step = iterator_step + 1 %} {% if step == iterator_step %} {% include '@oderaScenario/Diagnostic/cell-semis.html.twig' with {'form':itk} %} {% elseif step > iterator_step %} {% include '@oderaScenario/Diagnostic/cell-semis.html.twig' with {'form':itk, 'readonly': true, 'itk':itks_existants[loop.index0] } %} {% endif %} {# step 4 #} {% set iterator_step = iterator_step + 1 %} {% if step == iterator_step %} {% set interculture = itks[loop.index0].travSuperfs %} {% if is_granted("ROLE_EXPERT") and itks[loop.index0].travSuperfs |length > 0 %} {% set efficaciteInterculture = itks[loop.index0].travSuperfs[0].efficaciteTravSuperf %} {% else %} {% set efficaciteInterculture = 50 %} {%endif %} {% include '@oderaScenario/Diagnostic/cell-interculture.html.twig' with {'form':itk, 'interculture':interculture, 'efficaciteInterculture': efficaciteInterculture} %} {% elseif step > iterator_step %} {% set interculture = itks[loop.index0].travSuperfs %} {% include '@oderaScenario/Diagnostic/cell-interculture.html.twig' with {'form':itk, 'readonly':true, 'itk':itks_existants[loop.index0] } %} {% endif %} {# step 5 #} {% set iterator_step = iterator_step + 1 %} {% if step == iterator_step %} {% include '@oderaScenario/Diagnostic/cell-labour.html.twig' with {'form':itk} %} {% elseif step > iterator_step %} {% include '@oderaScenario/Diagnostic/cell-labour.html.twig' with {'form':itk, 'readonly': true, 'itk':itks_existants[loop.index0] } %} {% endif %} {# step 6 #} {% set iterator_step = iterator_step + 1 %} {% if step == iterator_step %} {% include '@oderaScenario/Diagnostic/cell-densitesemis.html.twig' with {'form':itk, 'densite' : scenario.itks[loop.index0].densiteSemis} %} {% elseif step > iterator_step %} {% include '@oderaScenario/Diagnostic/cell-densitesemis.html.twig' with {'form':itk, 'readonly':true, 'densite' : scenario.itks[loop.index0].densiteSemis, 'itk':itks_existants[loop.index0]} %} {% endif %} {#{% if step < iterator_step %} {% include '@oderaScenario/Diagnostic/cell-densitesemis.html.twig' with {'form':itk} %} {% endif %}#} {# step 7 #} {% set iterator_step = iterator_step + 1 %} {% if step == iterator_step %} {% include '@oderaScenario/Diagnostic/cell-entrerang.html.twig' with {'form':itk, 'ecart' : scenario.itks[loop.index0].ecart} %} {% elseif step > iterator_step %} {% include '@oderaScenario/Diagnostic/cell-entrerang.html.twig' with {'form':itk, 'readonly':true, 'ecart' : scenario.itks[loop.index0].ecart, 'itk':itks_existants[loop.index0]} %} {% endif %} {# step 8 #} {% set iterator_step = iterator_step + 1 %} {% if step == iterator_step %} {% include '@oderaScenario/Diagnostic/cell-variete.html.twig' with {'form':itk} %} {% elseif step > iterator_step %} {% include '@oderaScenario/Diagnostic/cell-variete.html.twig' with {'form':itk, 'readonly':true, 'itk':itks_existants[loop.index0]} %} {% endif %} {# step 9 #} {% set iterator_step = iterator_step + 1 %} {% if step == iterator_step %} {% set desh_meca = itks[loop.index0].deshMecas %} {% include '@oderaScenario/Diagnostic/cell-deshmeca.html.twig' with {'index':loop.index0, 'desh_meca':desh_meca, 'form':itk} %} {% elseif step > iterator_step %} {% set desh_meca = itks[loop.index0].deshMecas %} {% include '@oderaScenario/Diagnostic/cell-deshmeca.html.twig' with {'index':loop.index0, 'desh_meca':desh_meca, 'form':itk, 'readonly':true, 'itk':itks_existants[loop.index0] } %} {% endif %} {# step 10 #} {% set iterator_step = iterator_step + 1 %} {% if step == iterator_step %} {% set desh_chim = itks[loop.index0].deshChims %} {% include '@oderaScenario/Diagnostic/cell-deshchim.html.twig' with {'index':loop.index0, 'desh_chim':desh_chim} %} {% elseif step > iterator_step %} {% set desh_chim = itks[loop.index0].deshChims %} {% include '@oderaScenario/Diagnostic/cell-deshchim.html.twig' with {'index':loop.index0, 'desh_chim':desh_chim, 'readonly':true, 'itk':itks_existants[loop.index0]} %} {% endif %} {% set index = index + 1 %}
{% endfor %} {#
#} {% if step > 2 %}

Si vous ajoutez une année, vous serez redirigés au début du pas à pas.
Tout ce que vous avez saisi dans les années existantes sera conservé.

{% else %}
{% endif %}
{% endif %} {{ form_end(form) }}
{% include '@oderaScenario/Diagnostic/js-saisie.js.twig' %} {% endblock scenario_body %}