fix special custom animation stuff

mailing
Razmig Sarkissian 2 months ago
parent 99a722c63c
commit 07d5d20800
  1. 5
      tournaments/models/tournament.py
  2. 7
      tournaments/templates/tournaments/tournament_info.html

@ -1225,7 +1225,10 @@ class Tournament(BaseModel):
# Entry fee
if self.entry_fee is not None and self.entry_fee > 0:
formatted_fee = currency_service.format_amount(self.entry_fee, self.currency_code)
options.append(f"Frais d'inscription: {formatted_fee} par joueur")
if self.is_custom_animation():
options.append(f"{formatted_fee} par personne")
else:
options.append(f"Frais d'inscription: {formatted_fee} par joueur")
# Club member fee reduction
if self.club_member_fee_deduction and self.club_member_fee_deduction > 0:

@ -176,8 +176,10 @@
<h1 class="club padding10">{{ tournament.full_name }}</h1>
<div class="bubble">
<div class="semibold">{{ tournament.local_start_date_formatted }}</div>
{% if not tournament.is_custom_animation %}
<div>{{ tournament.day_duration_formatted }}</div>
<div>{{ tournament.court_count }} piste{{ tournament.court_count|pluralize }}</div>
{% endif %}
<p>
</p>
@ -202,6 +204,7 @@
{% endif %}
<hr/>
{% if not tournament.is_custom_animation %}
<p>
{% if tournament.umpire_contact %}
<div class="semibold">Organisateur</div>
@ -214,7 +217,7 @@
<div><a href="tel:{{ tournament.umpire_phone }}" class="styled-link">{{ tournament.umpire_phone }}</a></div>
{% endif %}
</p>
{% endif %}
{% if tournament.information %}
<p>
<div class="semibold">Infos</div>
@ -225,7 +228,9 @@
{% if tournament.options_fee %}
<p>
{% if not tournament.is_custom_animation %}
<div class="semibold">Frais d'inscription</div>
{% endif %}
<ul>
{% for option in tournament.options_fee %}
<li>{{ option }}</li>

Loading…
Cancel
Save