parent
ca672ee1e3
commit
710106bd34
@ -0,0 +1,23 @@ |
||||
# Generated by Django 4.2.11 on 2024-05-21 16:10 |
||||
|
||||
from django.db import migrations, models |
||||
|
||||
|
||||
class Migration(migrations.Migration): |
||||
|
||||
dependencies = [ |
||||
('tournaments', '0051_club_court_count_alter_tournament_court_count'), |
||||
] |
||||
|
||||
operations = [ |
||||
migrations.AddField( |
||||
model_name='teamregistration', |
||||
name='final_ranking', |
||||
field=models.IntegerField(blank=True, null=True), |
||||
), |
||||
migrations.AddField( |
||||
model_name='teamregistration', |
||||
name='points_earned', |
||||
field=models.IntegerField(blank=True, null=True), |
||||
), |
||||
] |
||||
@ -0,0 +1,13 @@ |
||||
{% load static %} |
||||
|
||||
<div class="table-row-4-colums bottom-border"> |
||||
|
||||
<div class="table-cell table-cell-large semibold"> |
||||
{% for name in ranking.names %} |
||||
<div>{{ name }}</div> |
||||
{% endfor %} |
||||
</div> |
||||
|
||||
<div class="table-cell center">{{ ranking.ranking }}</div> |
||||
<div class="table-cell"><div class="mybox center">{{ ranking.points }}</div></div> |
||||
</div> |
||||
@ -0,0 +1,35 @@ |
||||
{% extends 'tournaments/base.html' %} |
||||
|
||||
{% block head_title %}Classement{% endblock %} |
||||
{% block first_title %}{{ tournament.display_name }}{% endblock %} |
||||
{% block second_title %}Classement{% endblock %} |
||||
|
||||
{% if tournament.display_rankings %} |
||||
|
||||
{% block content %} |
||||
|
||||
{% load static %} |
||||
|
||||
{% include 'tournaments/navigation_tournament.html' %} |
||||
|
||||
{% if rankings %} |
||||
|
||||
<div class="grid-x padding-bottom"> |
||||
|
||||
<div class="cell medium-6 large-6 my-block"> |
||||
<div class="bubble"> |
||||
{% for ranking in rankings %} |
||||
|
||||
{% include 'tournaments/ranking_row.html' %} |
||||
|
||||
{% endfor %} |
||||
|
||||
</div> |
||||
</div> |
||||
|
||||
</div> |
||||
|
||||
{% endif %} |
||||
|
||||
{% endblock %} |
||||
{% endif %} |
||||
Loading…
Reference in new issue