Skip to content

Commit

Permalink
Frozen icon: use parameter instead of hardcoded value. ref #968 & #732
Browse files Browse the repository at this point in the history
  • Loading branch information
raphodn committed Sep 22, 2023
1 parent f3f661a commit d273fe0
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion app/Resources/views/Profile/show_content.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@

<li>
<div class="collapsible-header">
<i class="material-icons">ac_unit</i>Gel du compte
<i class="material-icons">{{ member_frozen_material_icon }}</i>Gel du compte
</div>
<div class="collapsible-body">
{% if display_freeze_account %}
Expand Down
2 changes: 1 addition & 1 deletion app/Resources/views/layout.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
<div class="row">
<div class="col s12">
<div class="card-panel" style="background-color: rgba(0, 138, 255, 0.1);margin-bottom:0;">
<strong class="orange"><i class="material-icons left">ac_unit</i>Adhésion en pause</strong>
<strong class="orange"><i class="material-icons left">{{ member_frozen_material_icon }}</i>Adhésion en pause</strong>
<br />
{% if not app.user.beneficiary.membership.frozenChange %}
Pour dégeler ton compte, visite <a href="{{ path('fos_user_profile_show') }}">ton profil <i class="material-icons tiny">settings</i></a>
Expand Down
4 changes: 2 additions & 2 deletions app/Resources/views/member/_partial/frozen.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,13 @@
{{ form_end(freeze_change_form) }}
{% else %}
<a class="waves-effect waves-light btn modal-trigger blue" href="#freeze-confirmation-modal">
<i class="material-icons left">ac_unit</i>Geler mon compte
<i class="material-icons left">{{ member_frozen_material_icon }}</i>Geler mon compte
</a>
{{ form_start(freeze_change_form) }}
<div class="modal" id="freeze-confirmation-modal">
<div class="modal-content">
<h5>
<i class="material-icons small">ac_unit</i>&nbsp;Gel de compte
<i class="material-icons small">{{ member_frozen_material_icon }}</i>&nbsp;Gel de compte
</h5>
<p>
Besoin de faire une pause ? demande le gel de ton compte !
Expand Down
2 changes: 1 addition & 1 deletion app/Resources/views/member/show.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@
{% if is_granted("ROLE_USER_MANAGER") %}
<li id="freeze">
<div class="collapsible-header {% if frontend_cookie and frontend_cookie.user_show is defined and frontend_cookie.user_show.freeze_open is defined and frontend_cookie.user_show.freeze_open %}active{% endif %}">
<i class="material-icons">ac_unit</i>{% if member.frozen %}Dégeler le compte{% else %}Geler le compte{% endif %}
<i class="material-icons">{{ member_frozen_material_icon }}</i>{% if member.frozen %}Dégeler le compte{% else %}Geler le compte{% endif %}
</div>
<div class="collapsible-body white">
{% if is_granted("freeze_change", member) %}
Expand Down

0 comments on commit d273fe0

Please sign in to comment.