Skip to content

Commit

Permalink
Bénéficiaire : ne pas cacher les informations qui débordent (#930)
Browse files Browse the repository at this point in the history
* Beneficiary card: don't truncate data

* Remove useless truncate
  • Loading branch information
raphodn authored Aug 5, 2023
1 parent 3e907ef commit cf823f8
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 11 deletions.
4 changes: 2 additions & 2 deletions app/Resources/views/admin/user/list.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -296,7 +296,7 @@
<td class="hide-on-med-and-down">
{% for beneficiary in member.beneficiaries %}
{% for formation in beneficiary.formations %}
<div class="chip truncate">
<div class="chip">
{{ formation.name }}
</div>
{% endfor %}
Expand All @@ -305,7 +305,7 @@
<td class="hide-on-med-and-down">
{% for beneficiary in member.beneficiaries %}
{% for commission in beneficiary.commissions %}
<div class="chip truncate">
<div class="chip">
{{ commission.name }}
</div>
{% endfor %}
Expand Down
18 changes: 9 additions & 9 deletions app/Resources/views/beneficiary/_partial/info.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -22,17 +22,17 @@
</div>

<div class="row">
<div class="col s12 truncate">
<div class="col s12">
<i class="material-icons tiny">phone</i>
<span>{{ beneficiary.phone }}</span>
</div>
{% if phone_only is not defined %}
<div class="col s12 truncate">
<div class="col s12">
<i class="material-icons tiny">mail</i>
<span>{{ beneficiary.email }}</span>
</div>
{% if beneficiary.address %}
<div class="col s12 truncate">
<div class="col s12">
<i class="material-icons tiny">location_on</i>
{{ beneficiary.address.street1 }}
{% if beneficiary.address.street2 %}
Expand All @@ -43,7 +43,7 @@
</div>
{% endif %}
{% endif %}
<div class="col s12 truncate">
<div class="col s12">
<i class="material-icons tiny">person</i>&nbsp;{{ beneficiary.user.username }}
{% if is_granted("ROLE_ADMIN") %}
(<i class="material-icons tiny" title="dernière connexion">exit_to_app</i>
Expand All @@ -55,7 +55,7 @@
{% endif %}
</div>
{% if use_fly_and_fixed %}
<div class="col s12 truncate">
<div class="col s12">
<i class="material-icons tiny">accessibility</i>
{% if beneficiary.flying %}
<div class="chip green-text">Equipe volante</div>
Expand All @@ -65,31 +65,31 @@
</div>
{% endif %}
{% if beneficiary.formations | length %}
<div class="col s12 truncate">
<div class="col s12">
<i class="material-icons tiny">assignment_ind</i>
{% for formation in beneficiary.formations %}
<div class="chip red-text">{{ formation.name }}</div>
{% endfor %}
</div>
{% endif %}
{% if beneficiary.commissions | length %}
<div class="col s12 truncate">
<div class="col s12">
<i class="material-icons tiny">group</i>
{% for commission in beneficiary.commissions %}
<div class="chip blue-text">{{ commission.name }}</div>
{% endfor %}
</div>
{% endif %}
{% if beneficiary.user and beneficiary.user.roles | length %}
<div class="col s12 truncate">
<div class="col s12">
<i class="material-icons tiny">settings</i>
{% for role in beneficiary.user.roles %}
<div class="chip purple-text">{{ role }}</div>
{% endfor %}
</div>
{% endif %}
{% if beneficiary.membership.lastRegistration %}
<div class="col s12 truncate">
<div class="col s12">
<i class="material-icons tiny">perm_contact_calendar</i>
<span>Adhésion du {{ beneficiary.membership.lastRegistration.date | date_fr_full }} au {{ beneficiary.membership | expire | date_fr_full }}</span>
</div>
Expand Down

0 comments on commit cf823f8

Please sign in to comment.