Skip to content

Commit

Permalink
Only display new tab to admins
Browse files Browse the repository at this point in the history
  • Loading branch information
raphodn committed Jun 18, 2024
1 parent f646813 commit cc1eb7f
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions lemarche/templates/dashboard/siae_edit_base.html
Original file line number Diff line number Diff line change
Expand Up @@ -79,11 +79,13 @@
Votre référencement
</a>
</li>
<li class="nav-item" role="presentation">
<a href="{% url 'dashboard_siaes:siae_edit_search_2' siae.slug %}#editTabs" id="siae-edit-search-2-tab" class="nav-link {% if 'siae_edit_search_2' in request.resolver_match.url_name %}active{% endif %}" aria-selected="{% if 'siae_edit_search_2' in request.resolver_match.url_name %}true{% else %}false{% endif %}">
Votre référencement (2)
</a>
</li>
{% if user.is_authenticated and user.is_admin %}
<li class="nav-item" role="presentation">
<a href="{% url 'dashboard_siaes:siae_edit_search_2' siae.slug %}#editTabs" id="siae-edit-search-2-tab" class="nav-link {% if 'siae_edit_search_2' in request.resolver_match.url_name %}active{% endif %}" aria-selected="{% if 'siae_edit_search_2' in request.resolver_match.url_name %}true{% else %}false{% endif %}">
Votre référencement (2)
</a>
</li>
{% endif %}
<li class="nav-item" role="presentation">
<a href="{% url 'dashboard_siaes:siae_edit_info' siae.slug %}#editTabs" id="siae-edit-info-tab" class="nav-link {% if 'siae_edit_info' in request.resolver_match.url_name %}active{% endif %}" aria-selected="{% if 'siae_edit_info' in request.resolver_match.url_name %}true{% else %}false{% endif %}">
Votre structure
Expand Down

0 comments on commit cc1eb7f

Please sign in to comment.