diff --git a/streetup/assets/templates/assets/components/asset_interventions.html b/streetup/assets/templates/assets/components/asset_interventions.html new file mode 100644 index 0000000..06e6fdf --- /dev/null +++ b/streetup/assets/templates/assets/components/asset_interventions.html @@ -0,0 +1,89 @@ +{% load i18n %} + +{# Interventions liées à l'asset #} +
| {% translate "Code" %} | +{% translate "Titre" %} | +{% translate "Symptôme" %} | +{% translate "Statut" %} | +{% translate "Priorité" %} | +{% translate "Attribué à" %} | +{% translate "Date" %} | +
|---|---|---|---|---|---|---|
| + + {{ intervention.code }} + + | ++ + {{ intervention.title }} + + | ++ {% if intervention.symptom %} + {{ intervention.symptom.get_name }} + {% else %} + - + {% endif %} + | ++ + {{ intervention.get_status_display }} + + | ++ {% if intervention.priority == '1' %} + {{ intervention.get_priority_display }} + {% elif intervention.priority == '2' %} + {{ intervention.get_priority_display }} + {% elif intervention.priority == '3' %} + {{ intervention.get_priority_display }} + {% elif intervention.priority == '4' %} + {{ intervention.get_priority_display }} + {% else %} + {{ intervention.get_priority_display|default:"-" }} + {% endif %} + | ++ {% if intervention.assigned_team %} + {{ intervention.assigned_team.name }} + {% elif intervention.assigned_provider %} + {{ intervention.assigned_provider.name }} + {% else %} + - + {% endif %} + | ++ {{ intervention.creation_time|date:"d/m/Y" }} + | +