diff --git a/lemarche/templates/dashboard/_siae_activity_card.html b/lemarche/templates/dashboard/_siae_activity_card.html index 816a7e714..267340f22 100644 --- a/lemarche/templates/dashboard/_siae_activity_card.html +++ b/lemarche/templates/dashboard/_siae_activity_card.html @@ -1,4 +1,4 @@ -{% load static siae_sectors_display %} +{% load siae_sectors_display %}
diff --git a/lemarche/templates/siaes/_siae_activity_content.html b/lemarche/templates/siaes/_siae_activity_content.html new file mode 100644 index 000000000..a293e6e56 --- /dev/null +++ b/lemarche/templates/siaes/_siae_activity_content.html @@ -0,0 +1,18 @@ +{% load siae_sectors_display %} + +

{{ activity.sector_group }}

+ + + +

+ + Type(s) de prestation : + {{ activity.presta_type_display }} +

+

+ + Intervient sur : {{ siae.geo_range_pretty_title }} + {{ siae.geo_range_pretty_display }} +

diff --git a/lemarche/templates/siaes/detail.html b/lemarche/templates/siaes/detail.html index a09f9c1f7..95bfd9c7a 100644 --- a/lemarche/templates/siaes/detail.html +++ b/lemarche/templates/siaes/detail.html @@ -91,11 +91,18 @@

Présentation du prestataire

Secteurs d'activité

- - {% if not siae.sector_count %} -

Non renseigné

+ {% if user.is_authenticated and user.is_admin %} + {% for activity in siae.activities.all %} + {% include "siaes/_siae_activity_content.html" with activity=activity %} + {% endfor %} + {% else %} + {% if not siae.sector_count %} +

Non renseigné

+ {% else %} + + {% endif %} {% endif %}