|
|
|
|
@ -42,29 +42,23 @@ |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
}" x-init="loop()"> |
|
|
|
|
<div class="wrapper"> |
|
|
|
|
<main> |
|
|
|
|
|
|
|
|
|
<div class="grid-x"> |
|
|
|
|
<div class="cell medium-6 large-6 topblock my-block"> |
|
|
|
|
<div class="bubble"> |
|
|
|
|
<img |
|
|
|
|
src="{% static 'tournaments/images/PadelClub_logo_512.png' %}" |
|
|
|
|
class="logo inline" |
|
|
|
|
/> |
|
|
|
|
<div class="inline"> |
|
|
|
|
<h1 class="club">{{ tournament.display_name }}</h1> |
|
|
|
|
<h1 class="event">Matchs</h1> |
|
|
|
|
<!-- <span>Propulsé par Padel Club</span> --> |
|
|
|
|
</div> |
|
|
|
|
</div> |
|
|
|
|
</div> |
|
|
|
|
<div class="cell medium-6 large-6 topblock my-block"> |
|
|
|
|
<div class="alignright"> |
|
|
|
|
{% qr_from_text qr_code_url options=qr_code_options %} |
|
|
|
|
</div> |
|
|
|
|
|
|
|
|
|
<header> |
|
|
|
|
<div id="header"> |
|
|
|
|
<div class="left-content bubble"> |
|
|
|
|
<img src="{% static 'tournaments/images/PadelClub_logo_512.png' %}" alt="logo" class="logo left-image"> |
|
|
|
|
<div> |
|
|
|
|
<h1 class="club">{{ tournament.display_name }}</h1> |
|
|
|
|
<h1 class="event">Matchs</h1> |
|
|
|
|
</div> |
|
|
|
|
</div> |
|
|
|
|
<div class="right-content">{% qr_from_text qr_code_url options=qr_code_options %}</div> |
|
|
|
|
</div> |
|
|
|
|
</header> |
|
|
|
|
|
|
|
|
|
<div class="wrapper"> |
|
|
|
|
<main> |
|
|
|
|
|
|
|
|
|
<div class="grid-x padding-bottom"> |
|
|
|
|
|
|
|
|
|
@ -75,82 +69,6 @@ |
|
|
|
|
|
|
|
|
|
{% include 'tournaments/broadcasted_match.html' %} |
|
|
|
|
|
|
|
|
|
<!-- <div class="bubble"> |
|
|
|
|
|
|
|
|
|
<div class="flex-row"> |
|
|
|
|
<label class="left-label matchtitle"><span x-text="match.title"></span></label> |
|
|
|
|
</div> |
|
|
|
|
|
|
|
|
|
<template x-for="i in match.teams.length"> |
|
|
|
|
|
|
|
|
|
<div> |
|
|
|
|
<div class="match-result"> |
|
|
|
|
|
|
|
|
|
<div class="player"> |
|
|
|
|
<template x-for="name in match.teams[i-1].names"> |
|
|
|
|
|
|
|
|
|
<div class="ws" x-data="{ |
|
|
|
|
showName(name, team) { |
|
|
|
|
let html = `<span class='` |
|
|
|
|
if (team.is_winner) html += `winner` |
|
|
|
|
html += `'>` |
|
|
|
|
html += name |
|
|
|
|
html += `</span>` |
|
|
|
|
return html |
|
|
|
|
}, |
|
|
|
|
}" x-html="showName(name, match.teams[i-1])"> |
|
|
|
|
</div> |
|
|
|
|
|
|
|
|
|
</template> |
|
|
|
|
</div> |
|
|
|
|
<div class="scores"> |
|
|
|
|
<template x-for="score in match.teams[i-1].scores"> |
|
|
|
|
|
|
|
|
|
<span x-data="{ |
|
|
|
|
showScore(score, team) { |
|
|
|
|
let html = `<span class='score ws w30px` |
|
|
|
|
if (team.is_winner) html += ` winner` |
|
|
|
|
html += `'>` |
|
|
|
|
html += score |
|
|
|
|
html += `</span>` |
|
|
|
|
return html |
|
|
|
|
}, |
|
|
|
|
}" x-html="showScore(score, match.teams[i-1])"> |
|
|
|
|
</span> |
|
|
|
|
|
|
|
|
|
</template> |
|
|
|
|
|
|
|
|
|
<span x-data="{ |
|
|
|
|
showWalkOut(match, team) { |
|
|
|
|
let html = `` |
|
|
|
|
|
|
|
|
|
if (match.has_walk_out) { |
|
|
|
|
html += `<span class='score ws w60px'>` |
|
|
|
|
if (team.walk_out) html += `WO` |
|
|
|
|
html += `</span>` |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
return html |
|
|
|
|
}, |
|
|
|
|
}" x-html="showWalkOut(match, match.teams[i-1])"> |
|
|
|
|
</span> |
|
|
|
|
</div> |
|
|
|
|
|
|
|
|
|
</div> |
|
|
|
|
|
|
|
|
|
<div x-show="i === 1"> |
|
|
|
|
<div class="bottom-border"></div> |
|
|
|
|
</div> |
|
|
|
|
|
|
|
|
|
</div> |
|
|
|
|
</template> |
|
|
|
|
|
|
|
|
|
<div class="top-margin flex-row"> |
|
|
|
|
<label class="left-label minor-info bold"><span x-text="match.duration"></span></label> |
|
|
|
|
<label class="right-label minor-info semibold"><span x-text="match.court"></span></label> |
|
|
|
|
</div> |
|
|
|
|
|
|
|
|
|
</div> --> |
|
|
|
|
</div> |
|
|
|
|
|
|
|
|
|
</template> |
|
|
|
|
|