{% extends "assets/detail_generic.html" %} {% load i18n %} {% load static %} {% block extra_blocks %}
| {% translate "Pos." %} | {% translate "Code" %} | {% translate "Type de borne" %} | {% translate "Modèle" %} | {% translate "N° de série" %} | {% translate "Statut" %} | {% translate "Action" %} |
|---|---|---|---|---|---|---|
| #{{ plot.position }} |
{{ plot.code }}
{% if plot.get_name %}
{{ plot.get_name }}
{% endif %}
|
{% if plot.bollard_type == 'automatic' %} {{ plot.get_bollard_type_display }} {% elif plot.bollard_type == 'semi_automatic' %} {{ plot.get_bollard_type_display }} {% elif plot.bollard_type == 'removable' %} {{ plot.get_bollard_type_display }} {% else %} {{ plot.get_bollard_type_display }} {% endif %} | {{ plot.model.get_name|default:"-" }} | {{ plot.serial_number|default:"-" }} |
{% if plot.status == 'active' %} {{ plot.get_status_display }} {% elif plot.status == 'damaged' %} {{ plot.get_status_display }} {% elif plot.status == 'to_replace' %} {{ plot.get_status_display }} {% else %} {{ plot.get_status_display }} {% endif %} | {% translate "Voir" %} |
| {% translate "Rôle" %} | {% translate "Équipement" %} | {% translate "Modèle" %} | {% translate "Statut" %} | {% translate "Commentaire" %} | {% translate "Action" %} |
|---|---|---|---|---|---|
| {% if 'camera' in item.role %} {{ item.get_role_display }} {% elif item.role == 'cabinet' %} {{ item.get_role_display }} {% elif item.role == 'totem' %} {{ item.get_role_display }} {% elif item.role == 'traffic_light' %} {{ item.get_role_display }} {% else %} {{ item.get_role_display }} {% endif %} |
{{ item.asset.code }}
{% if item.asset.get_name %}
{{ item.asset.get_name }}
{% endif %}
|
{{ item.asset.model.get_name|default:"-" }} | {% if item.asset.status == 'active' %} {{ item.asset.get_status_display }} {% else %} {{ item.asset.get_status_display }} {% endif %} | {{ item.comment|default:"-" }} |
| {% translate "Numéro de contrat" %} | {% translate "Type de maintenance" %} | {% translate "Statut" %} |
|---|---|---|
| {{ sc.contract.contract_number }} - {{ sc.contract.name }} | {{ sc.get_maintenance_type_display }} | {% if sc.status == 'active' %} {% translate "Actif" %} {% else %} {{ sc.get_status_display }} {% endif %} |
{{ val }}