{% extends "gestion/base.html" %} {% load i18n %} {% load static %} {% get_current_language as current_language %} {% load autotranslate %} {% block titre %}{{ instru.type }}{% endblock %} {% block content %}

{% blocktrans with type=instru.type etat=instru.etat statut=instru.statut%} {{type}} en {{etat}} : {{statut}} {% endblocktrans%}

{% trans "Propriétaire : "%} {% if instru.owner %}{{instru.owner}} {% else %}-{% endif %}
{% trans "Statut : "%} {{instru.statut}}
{% ifequal instru.statut 'Prêté' %} {% trans "Utilisateur : "%} {% if instru.user %}{{instru.user}} {% else %}-{% endif %}
{% endifequal %} {% trans "Marque : "%} {% if instru.marque %}{{instru.marque}} {% else %}-{% endif %}
{% trans "Modele : "%} {% if instru.model %}{{instru.model}} {% else %}-{% endif %}
{% trans "Numéro de série : "%} {% if instru.serial %}{{instru.serial}}{% else %}-{% endif %}
{% trans "Prix : "%} {% if instru.prix %}{{instru.prix}} {% else %}-{% endif %}
{% trans "Acheté·e en" %}{% if instru.annee %}{{annee}}{% else %}-{% endif %}

{% if infos or infos_en %}

{% trans "Infos utiles :" %}

{% autotranslate current_language infos infos_en %}
{% endif %} {% if suppression %}

{{ suppression }}

{% endif %} {% if not user.profile.is_chef %}
{% endif %}

{% blocktrans count counter=reparations|length %}Réparation :{% plural %}Réparations {% endblocktrans %}

{% for rep in reparations %} {% if user.profile.is_chef %} {% endif %} {% endfor %}
{% trans "Date" %} {% trans "Description" %} {% trans "Prix" %} {% trans "lieu" %}
{{ rep.date }} {% ifequal current_language "fr" %} {{ rep.description }} {% else %} {% if instru.description_en %} {{ rep.description_en }} {% else %} {{ rep.description }} {% endif %} {% endifequal %} {{ rep.prix }} {{ rep.lieux }} {% trans "Modifier" %} {% trans "Supprimer" %}

Retour aux instruments {% if user.profile.is_chef %} Ajouter une réparation {% endif %}

{% if user.profile.is_chef %}
{% csrf_token %} {{ form.as_p }}
{% endif %}
{% endblock %}