parent
903ca3123c
commit
6555d026e1
@ -0,0 +1,19 @@ |
|||||||
|
# Generated by Django 4.2.11 on 2024-03-08 11:09 |
||||||
|
|
||||||
|
import django.contrib.postgres.fields |
||||||
|
from django.db import migrations, models |
||||||
|
|
||||||
|
|
||||||
|
class Migration(migrations.Migration): |
||||||
|
|
||||||
|
dependencies = [ |
||||||
|
('tournaments', '0010_alter_groupstage_tournament_alter_round_tournament'), |
||||||
|
] |
||||||
|
|
||||||
|
operations = [ |
||||||
|
migrations.AlterField( |
||||||
|
model_name='teamstate', |
||||||
|
name='score', |
||||||
|
field=django.contrib.postgres.fields.ArrayField(base_field=models.IntegerField(), blank=True, null=True, size=None), |
||||||
|
), |
||||||
|
] |
||||||
@ -0,0 +1,18 @@ |
|||||||
|
# Generated by Django 4.2.11 on 2024-03-08 11:40 |
||||||
|
|
||||||
|
from django.db import migrations, models |
||||||
|
|
||||||
|
|
||||||
|
class Migration(migrations.Migration): |
||||||
|
|
||||||
|
dependencies = [ |
||||||
|
('tournaments', '0011_alter_teamstate_score'), |
||||||
|
] |
||||||
|
|
||||||
|
operations = [ |
||||||
|
migrations.AlterField( |
||||||
|
model_name='teamstate', |
||||||
|
name='score', |
||||||
|
field=models.CharField(blank=True, max_length=50, null=True), |
||||||
|
), |
||||||
|
] |
||||||
@ -0,0 +1,33 @@ |
|||||||
|
<div class="bubble"> |
||||||
|
|
||||||
|
<div class="flex-row"> |
||||||
|
<label class="left-label matchtitle">{{ match.title }}</label> |
||||||
|
<label class="right-label info">{{ match.formatted_start_date }}</label> |
||||||
|
</div> |
||||||
|
|
||||||
|
<div> |
||||||
|
|
||||||
|
{% for team in match.teams %} |
||||||
|
<div class="test bottom-border padding-bottom-small"> |
||||||
|
<div class="left-label"> |
||||||
|
{% for name in team.names %} |
||||||
|
<div class="winner"> |
||||||
|
{{ name }} |
||||||
|
</div> |
||||||
|
{% endfor %} |
||||||
|
</div> |
||||||
|
<div class=""> |
||||||
|
{% for score in team.scores %} |
||||||
|
<span class="score ws {% if team.is_winner %}winner{% endif %}">{{ score }}</span> |
||||||
|
{% endfor %} |
||||||
|
</div> |
||||||
|
</div> |
||||||
|
{% endfor %} |
||||||
|
|
||||||
|
</div> |
||||||
|
|
||||||
|
<div class="top-margin flex-row"> |
||||||
|
<label class="left-label minor-info">{{ match.duration }}</label> |
||||||
|
<!-- <a href="" class="right-label">détails</a> --> |
||||||
|
</div> |
||||||
|
</div> |
||||||
@ -0,0 +1,26 @@ |
|||||||
|
{% extends 'tournaments/base.html' %} |
||||||
|
|
||||||
|
{% block head_title %}Matchs{% endblock %} |
||||||
|
{% block title %}Matchs{% endblock %} |
||||||
|
|
||||||
|
{% block content %} |
||||||
|
|
||||||
|
{% if matches %} |
||||||
|
|
||||||
|
<div class="grid-x"> |
||||||
|
<div class="cell medium-6 large-6 topblock my-block"> |
||||||
|
{% if matches %} |
||||||
|
|
||||||
|
{% for match in matches %} |
||||||
|
|
||||||
|
{% include 'tournaments/match_cell.html' %} |
||||||
|
|
||||||
|
{% endfor %} |
||||||
|
|
||||||
|
{% endif %} |
||||||
|
</div> |
||||||
|
</div> |
||||||
|
|
||||||
|
{% endif %} |
||||||
|
|
||||||
|
{% endblock %} |
||||||
Loading…
Reference in new issue