Skip to content

Commit

Permalink
Admin: hide periodpositionfreelog button if use_fly_and_fixed is false (
Browse files Browse the repository at this point in the history
  • Loading branch information
raphodn authored Aug 5, 2023
1 parent e36c93d commit 6b34fc6
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions app/Resources/views/admin/index.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -71,9 +71,11 @@
<a href="{{ path("admin_period_index") }}" class="waves-effect waves-light btn white black-text">
<i class="material-icons left orange-text">date_range</i>Gérer la semaine type
</a>
<a href="{{ path("admin_periodpositionfreelog_list") }}" class="waves-effect waves-light btn orange">
<i class="material-icons left">delete_sweep</i>Annulations postes fixes
</a>
{% if use_fly_and_fixed %}
<a href="{{ path("admin_periodpositionfreelog_list") }}" class="waves-effect waves-light btn orange">
<i class="material-icons left">delete_sweep</i>Annulations postes fixes
</a>
{% endif %}
{% endif %}

{% if is_granted("ROLE_ADMIN") %}
Expand Down

0 comments on commit 6b34fc6

Please sign in to comment.