Skip to content

Commit

Permalink
fixed getting user status from pp
Browse files Browse the repository at this point in the history
  • Loading branch information
Lung committed Jun 16, 2024
1 parent 8b7243c commit d5241c3
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/Templates/translatable/admin/mendParticipant.twig
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@
<div class="card paid-theme">
<h2>{% trans %}mend-admin.headline{% endtrans %}</h2>
<div>
{% trans %}payments-admin.status{% endtrans %}: <b>{{ ('dashboard.userStatus.' ~ participant.user.status.value)|trans }}</b><br/>
{# TODO add UserStatus as variable #}
{% trans %}payments-admin.status{% endtrans %}: <b>{{ ('dashboard.userStatus.' ~ participant.getUserButNotNull().status.value)|trans }}</b><br/>
{% trans %}stats-admin.role{% endtrans %}: <b>{{ ('role.' ~ participant.role.value)|trans }}</b>
{% if participant is TroopLeader %}
({{ participant.getTroopParticipantsCount() }}x {% trans %}role.tp{% endtrans %})
Expand Down Expand Up @@ -37,7 +38,7 @@
{% endif %}
</div>
<br/>
{% if participant.user.status.value == 'cancelled' %}
{% if participant.getUserButNotNull().status.value == 'cancelled' %}
<form
method="POST"
action="{{ url_for('admin-uncancel-participant', {'eventSlug': event.slug, 'participantId': participant.id}) }}"
Expand All @@ -47,7 +48,7 @@
<br/>
{% endif %}

{% if participant.user.status.value == 'paid' %}
{% if participant.getUserButNotNull().status.value == 'paid' %}
<a
href="{{ url_for('admin-show-participant-details-changeable', {'eventSlug': event.slug, 'participantId': participant.id}) }}"
class="btn">
Expand Down

0 comments on commit d5241c3

Please sign in to comment.