Skip to content

Commit

Permalink
Use warning color instead
Browse files Browse the repository at this point in the history
  • Loading branch information
raphodn committed Oct 12, 2023
1 parent f19749e commit 832e8f2
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 13 deletions.
16 changes: 7 additions & 9 deletions app/Resources/views/booking/_partial/modal.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -25,15 +25,13 @@

{% if bookableShifts | length == 1 %}
{% if not firstBookable.formation and beneficiary.formations | length %}
<div class="card-panel teal warning">
<span class="white-text">
<i class="material-icons">warning</i>
Ce créneau n'est <b>pas</b> qualifié.
<br>
{{ beneficiary.firstname }} a {% if beneficiary.formations | length == 1 %}une formation{% else %}des formations{% endif %} ({{ beneficiary.formations | join(', ')}}).
<br>
Tes compétences sont précieuses, pense si possible à les valoriser sur <b>un créneau qualifié</b>.
</span>
<div class="card-panel teal warning white-text">
<i class="material-icons">warning</i>
Ce créneau n'est <b>pas</b> qualifié.
<br>
{{ beneficiary.firstname }} a {% if beneficiary.formations | length == 1 %}une formation{% else %}des formations{% endif %} ({{ beneficiary.formations | join(', ')}}).
<br>
Tes compétences sont précieuses, pense si possible à les valoriser sur <b>un créneau qualifié</b>.
</div>
{% endif %}
{% endif %}
Expand Down
8 changes: 4 additions & 4 deletions app/Resources/views/booking/home_booked_shifts.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -21,16 +21,16 @@
{% endfor %}
{% if member.flying %}
<div class="col s12">
<div class="card-panel red white-text">
Votre compte est <strong>volant</strong> alors que vous avez {{ period_positions | length }} créneau{% if period_positions | length > 1 %}x{% endif %} fixe.
<div class="card-panel teal warning white-text">
{% if member.beneficiaries | length > 1 %}Votre{% else %}Ton{% endif %} compte est <strong>volant</strong> alors que {% if member.beneficiaries | length > 1 %}vous avez{% else %}tu as{% endif %} {{ period_positions | length }} créneau{% if period_positions | length > 1 %}x{% endif %} fixe.
</div>
</div>
{% endif %}
{% else %}
{% if not member.flying %}
<div class="col s12">
<div class="card-panel red white-text">
Votre compte est <strong>fixe</strong> alors que vous n'avez pas de créneaux fixe.
<div class="card-panel teal warning white-text">
{% if member.beneficiaries | length > 1 %}Votre{% else %}Ton{% endif %} compte est <strong>fixe</strong> alors que {% if member.beneficiaries | length > 1 %}vous n'avez{% else %}tu n'as{% endif %} pas de créneaux fixe.
</div>
</div>
{% else %}
Expand Down

0 comments on commit 832e8f2

Please sign in to comment.