From 59b3cadb9b19ed7a2860ddbda6ac391889ded8f6 Mon Sep 17 00:00:00 2001 From: Raphael Odini Date: Tue, 10 Oct 2023 11:32:54 +0200 Subject: [PATCH] Siae detail: display etablissement count if multiple --- lemarche/templates/siaes/_card_detail.html | 2 +- ..._useful_infos_siae.html => _useful_infos.html} | 15 +++++++++++---- 2 files changed, 12 insertions(+), 5 deletions(-) rename lemarche/templates/siaes/{_useful_infos_siae.html => _useful_infos.html} (85%) diff --git a/lemarche/templates/siaes/_card_detail.html b/lemarche/templates/siaes/_card_detail.html index 8a3a02c81..ad27a9b79 100644 --- a/lemarche/templates/siaes/_card_detail.html +++ b/lemarche/templates/siaes/_card_detail.html @@ -71,6 +71,6 @@

- {% include "siaes/_useful_infos_siae.html" with siae=siae %} + {% include "siaes/_useful_infos.html" with siae=siae %}
diff --git a/lemarche/templates/siaes/_useful_infos_siae.html b/lemarche/templates/siaes/_useful_infos.html similarity index 85% rename from lemarche/templates/siaes/_useful_infos_siae.html rename to lemarche/templates/siaes/_useful_infos.html index f3b6f8a58..f02e9bef8 100644 --- a/lemarche/templates/siaes/_useful_infos_siae.html +++ b/lemarche/templates/siaes/_useful_infos.html @@ -1,4 +1,4 @@ -{% load array_choices_display %} +{% load get_verbose_name array_choices_display %}
@@ -19,10 +19,17 @@ Chiffre d'affaires : {{ siae.ca_display }} -
  • + {% if siae.etablissement_count > 1 %} +
  • + + Nombre d'établissements : + {{ siae.etablissement_count }} +
  • + {% endif %} +
  • {% if siae.presta_type %} - - {% array_choices_display siae 'presta_type' %} + + {% array_choices_display siae 'presta_type' %} {% endif %}