piste au lieu de terrain

sync_v2
Raz 6 months ago
parent e4f1590e27
commit 4774a2d814
  1. 2
      tournaments/models/club.py
  2. 2
      tournaments/models/court.py
  3. 2
      tournaments/models/match.py
  4. 4
      tournaments/templates/tournaments/broadcast/broadcasted_planning.html
  5. 2
      tournaments/templates/tournaments/match_cell.html
  6. 2
      tournaments/templates/tournaments/tournament_info.html

@ -42,7 +42,7 @@ class Club(BaseModel):
return court.name
if index is not None:
return f"Terrain {index + 1}"
return f"Piste {index + 1}"
return ""

@ -17,4 +17,4 @@ class Court(BaseModel):
if self.name:
return self.name
else:
return f"Terrain {self.index + 1}"
return f"Piste {self.index + 1}"

@ -67,7 +67,7 @@ class Match(SideStoreModel):
if club:
return club.court_name(index)
elif index is not None:
return f"Terrain {index + 1}"
return f"Piste {index + 1}"
return ""
def backup_name(self):

@ -292,7 +292,7 @@
<template x-for="courtNum in Array.from({length: courtCount || 1}, (_, i) => i + 1)" :key="courtNum">
<div class="court-label" :style="{'width': calculateFractionWidth()}">
<div class="bubble">
<div class="score ws bold">Terrain <span x-text="courtNum"></span></div>
<div class="score ws bold">Piste <span x-text="courtNum"></span></div>
</div>
</div>
</template>
@ -308,7 +308,7 @@
<template x-for="courtNum in Array.from({length: courtCount || 1}, (_, i) => i + 1)" :key="courtNum">
<div class="court-label" :style="{'width': calculateFractionWidth()}">
<div class="bubble">
<div class="score ws bold">Terrain <span x-text="courtNum"></span></div>
<div class="score ws bold">Piste <span x-text="courtNum"></span></div>
</div>
</div>
</template>

@ -12,7 +12,7 @@
{% else %}
<label class="matchtitle">{{ match.title }}</label>
{% endif %}
{% if not match.ended %}
{% if match.court %}
<label class="right-label minor-info">{{ match.court }}</label>
{% endif %}
</div>

@ -158,7 +158,7 @@
<div class="bubble">
<div class="semibold">{{ tournament.local_start_date_formatted }}</div>
<div>{{ tournament.day_duration_formatted }}</div>
<div>{{ tournament.court_count }} terrains</div>
<div>{{ tournament.court_count }} pistes</div>
<p>
</p>

Loading…
Cancel
Save