Skip to content

Commit

Permalink
Siae detail: display etablissement count if multiple
Browse files Browse the repository at this point in the history
  • Loading branch information
raphodn committed Oct 10, 2023
1 parent b300ab8 commit 1d9f405
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 5 deletions.
2 changes: 1 addition & 1 deletion lemarche/templates/siaes/_card_detail.html
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,6 @@ <h1 class="h2 mb-2">
</div>
</div>
<div class="card-body" style="border-top:1px solid #e6e6eb">
{% include "siaes/_useful_infos_siae.html" with siae=siae %}
{% include "siaes/_useful_infos.html" with siae=siae %}
</div>
</div>
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{% load array_choices_display %}
{% load get_verbose_name array_choices_display %}

<div class="row">
<!-- First column -->
Expand All @@ -19,10 +19,17 @@
<strong>Chiffre d'affaires :</strong>
<span>{{ siae.ca_display }}</span>
</li>
<li class="mb-2">
{% if siae.etablissement_count > 1 %}
<li class="mb-2">
<i class="ri-building-4-line"></i>
<strong>Nombre d'établissements :</strong>
<span>{{ siae.etablissement_count }}</span>
</li>
{% endif %}
<li class="mb-2" title="{% get_verbose_name siae 'presta_type' %}">
{% if siae.presta_type %}
<i class="ri-briefcase-4-line"></i>
<strong>{% array_choices_display siae 'presta_type' %}</strong>
<i class="ri-briefcase-4-line"></i>
<strong>{% array_choices_display siae 'presta_type' %}</strong>
{% endif %}
</li>
<li class="mb-2">
Expand Down

0 comments on commit 1d9f405

Please sign in to comment.