{% load i18n geotrek_tags mapentity_tags %} {% if modelname != "intervention" %}

{% trans "Works" %}

{% if modelname != "project" %} {% with object.projects.all as projects %} {% if projects.exists %} {% for project in projects %} {% endfor %} {% endif %} {% endwith %} {% endif %}
{% trans "Interventions" %} {% with columns="target,name,status,stake,total_cost,date" %} {% if modelname == "project" %} {% valuetable object.interventions.existing enumeration=True columns=columns %} {% else %} {% valuetable object.interventions.all columns=columns %} {% endif %} {% endwith %}

{% is_topology_model model as is_topology_model %} {% is_blade_model model as is_blade_model %} {% is_site_model model as is_site_model %} {% is_course_model model as is_course_model %} {% if perms.maintenance.add_intervention %}

{% trans "Add a new intervention" %}

{% endif %}
{% trans "Projects" %}
{% trans "Name" %} {% trans "Begin year" %} {% trans "End year" %}
{{ project.name }} {{ project.begin_year }} {{ project.end_year|default:"" }}
{% endif %}