From 391132092a2ab2aae8988f5b1899f8c31db9e5f4 Mon Sep 17 00:00:00 2001 From: Raphael Odini Date: Fri, 29 Sep 2023 09:53:09 +0200 Subject: [PATCH] Siae detail: show map in card when inbound deactivated --- lemarche/templates/siaes/_card_detail.html | 6 +- lemarche/templates/siaes/_detail_cta.html | 16 ++- .../templates/siaes/_useful_infos_siae.html | 98 +++++++++++++------ .../siaes/_useful_infos_siae_v2.html | 87 ---------------- 4 files changed, 73 insertions(+), 134 deletions(-) delete mode 100644 lemarche/templates/siaes/_useful_infos_siae_v2.html diff --git a/lemarche/templates/siaes/_card_detail.html b/lemarche/templates/siaes/_card_detail.html index 8bef8078d..8a3a02c81 100644 --- a/lemarche/templates/siaes/_card_detail.html +++ b/lemarche/templates/siaes/_card_detail.html @@ -71,10 +71,6 @@

- {% if inbound_email_is_activated %} - {% include "siaes/_useful_infos_siae_v2.html" with siae=siae %} - {% else %} - {% include "siaes/_useful_infos_siae.html" with siae=siae %} - {% endif %} + {% include "siaes/_useful_infos_siae.html" with siae=siae %}
diff --git a/lemarche/templates/siaes/_detail_cta.html b/lemarche/templates/siaes/_detail_cta.html index ca563096b..386d4284d 100644 --- a/lemarche/templates/siaes/_detail_cta.html +++ b/lemarche/templates/siaes/_detail_cta.html @@ -16,12 +16,6 @@

Ce prestataire vous intéresse ?

{% else %} diff --git a/lemarche/templates/siaes/_useful_infos_siae.html b/lemarche/templates/siaes/_useful_infos_siae.html index 202aa6be8..9784d48b1 100644 --- a/lemarche/templates/siaes/_useful_infos_siae.html +++ b/lemarche/templates/siaes/_useful_infos_siae.html @@ -1,55 +1,89 @@ {% load array_choices_display %} +
+
-
-
+
    +
  • Année de création : {{ siae.year_constitution_display }} -
-
-
-
+ +
  • SIRET : {{ siae.siret_display }} -
  • -
    -
    -
    + +
  • Chiffre d'affaires : {{ siae.ca_display }} -
  • -
    -
    -
    - {% include "siaes/_annuaire_entreprises_button.html" with siret=siae.siret %} -
    -
    -
    -
    -
    -
    + +
  • {% if siae.presta_type %} - - {% array_choices_display siae 'presta_type' %} + + {% array_choices_display siae 'presta_type' %} {% endif %} -
  • -
    -
    -
    + +
  • Salariés permanents : {{ siae.employees_permanent_count|default:"non disponible" }} -
  • -
    -
    -
    + +
  • {{ siae.etp_count_label_display }} : {{ siae.etp_count_display|floatformat:0|default:"non disponible" }} -
  • + + {% if inbound_email_is_activated %} + {% if siae.contact_website %} +
  • + + Site internet +
  • + {% endif %} + {% if siae.contact_social_website %} +
  • + + Réseau social +
  • + {% endif %} + {% if siae.is_missing_contact %} +
  • + + Google +
  • + {% endif %} + {% endif %} +
  • + {% include "siaes/_annuaire_entreprises_button.html" with siret=siae.siret %} +
  • + +
    + + +
    +
    +
    +
    +
    +
      +
    • + + Situé à : + {{ siae.city }} +
    • +
    • + + Adresse : + {{ siae.address }} {{ siae.post_code }} {{ siae.city }} +
    • +
    • + + Intervient sur : + {{ siae.geo_range_pretty_display }} +
    • +
    diff --git a/lemarche/templates/siaes/_useful_infos_siae_v2.html b/lemarche/templates/siaes/_useful_infos_siae_v2.html deleted file mode 100644 index 7dc66989e..000000000 --- a/lemarche/templates/siaes/_useful_infos_siae_v2.html +++ /dev/null @@ -1,87 +0,0 @@ -{% load array_choices_display %} - -
    - -
    -
      -
    • - - Année de création : - {{ siae.year_constitution_display }} -
    • -
    • - - SIRET : - {{ siae.siret_display }} -
    • -
    • - - Chiffre d'affaires : - {{ siae.ca_display }} -
    • -
    • - {% if siae.presta_type %} - - {% array_choices_display siae 'presta_type' %} - {% endif %} -
    • -
    • - - Salariés permanents : - {{ siae.employees_permanent_count|default:"non disponible" }} -
    • -
    • - - {{ siae.etp_count_label_display }} : - {{ siae.etp_count_display|floatformat:0|default:"non disponible" }} -
    • - {% if siae.contact_website %} -
    • - - Site internet -
    • - {% endif %} - {% if siae.contact_social_website %} -
    • - - Réseau social -
    • - {% endif %} - {% if siae.is_missing_contact %} -
    • - - Google -
    • - {% endif %} -
    • - {% include "siaes/_annuaire_entreprises_button.html" with siret=siae.siret %} -
    • -
    -
    - - -
    -
    -
    -
    -
    -
      -
    • - - Situé à : - {{ siae.city }} -
    • -
    • - - Adresse : - {{ siae.address }} {{ siae.post_code }} {{ siae.city }} -
    • -
    • - - Intervient sur : - {{ siae.geo_range_pretty_display }} -
    • -
    -
    -
    -