Skip to content

Commit

Permalink
Hide 'Semaine' in Period index
Browse files Browse the repository at this point in the history
  • Loading branch information
raphodn committed Aug 4, 2023
1 parent f002e73 commit 8b710c8
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
4 changes: 3 additions & 1 deletion app/Resources/views/admin/period/edit.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,9 @@
Aucun poste n'existe pour ce créneau
{% endif %}
{% for week, positions in period.positionsperweekcycle %}
<h6>Semaine {{ week }}</h6>
{% if cycle_type == 'abcd' %}
<h6>Semaine {{ week }}</h6>
{% endif %}
<ul class="collapsible">
{% for position in positions %}
{% if position.shifter %}
Expand Down
8 changes: 6 additions & 2 deletions app/Resources/views/period/_partial/period_card.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,9 @@
{# if display by job/training #}
<div id="training" style="margin-top:1em;">
{% for week, positions in period.groupedpositionsperweekcycle(week_filter) %}
<h6>Semaine {{ week }}</h6>
{% if cycle_type == 'abcd' %}
<h6>Semaine {{ week }}</h6>
{% endif %}
{% for training, nb_shifters in positions %}
<i class="material-icons">person</i>{{ nb_shifters }} x {{ training }}
<br/>
Expand All @@ -53,7 +55,9 @@
<div id="shifter" style="margin-top:1em;">
{% for week, positions in period.positionsperweekcycle %}
{% if (week in week_filter) or not week_filter %}
<h6>Semaine {{ week }}</h6>
{% if cycle_type == 'abcd' %}
<h6>Semaine {{ week }}</h6>
{% endif %}
{% for position in positions %}
{% include 'period/_partial/position_shifter_display.html.twig' with { 'position': position, 'anonymized': anonymized } %}
{% endfor %}
Expand Down

0 comments on commit 8b710c8

Please sign in to comment.