mirror of
https://gitlab.com/animath/si/plateforme.git
synced 2025-06-25 04:20:31 +02:00
Add & join teams
This commit is contained in:
@ -89,7 +89,7 @@
|
||||
<a class="nav-link" href="{% url "member:my_account" %}"><i class="fas fa-user"></i> {% trans "My account" %}</a>
|
||||
</li>
|
||||
{% if user.participates %}
|
||||
{% if user.team is None %}
|
||||
{% if not user.team %}
|
||||
<li class="nav-item active">
|
||||
<a class="nav-link" href="{% url "member:add_team" %}"><i class="fas fa-folder-plus"></i> {% trans "Add a team" %}</a>
|
||||
</li>
|
||||
|
@ -15,6 +15,9 @@
|
||||
<dt class="col-xl-6 text-right">{% trans 'trigram'|capfirst %}</dt>
|
||||
<dd class="col-xl-6">{{ team.trigram }}</dd>
|
||||
|
||||
<dt class="col-xl-6 text-right">{% trans 'access code'|capfirst %}</dt>
|
||||
<dd class="col-xl-6">{{ team.access_code }}</dd>
|
||||
|
||||
<dt class="col-xl-6 text-right">{% trans 'tournament'|capfirst %}</dt>
|
||||
<dd class="col-xl-6"><a href="{% url "tournament:detail" pk=team.tournament.pk %}">{{ team.tournament }}</a></dd>
|
||||
|
||||
@ -23,12 +26,17 @@
|
||||
|
||||
<dt class="col-xl-6 text-right">{% trans 'participants'|capfirst %}</dt>
|
||||
<dd class="col-xl-6">{% autoescape off %}{{ team.linked_participants|join:", " }}{% endautoescape %}</dd>
|
||||
|
||||
<dt class="col-xl-6 text-right">{% trans 'validation status'|capfirst %}</dt>
|
||||
<dd class="col-xl-6">{{ team.get_validation_status_display }}</dd>
|
||||
</dl>
|
||||
</div>
|
||||
|
||||
{% if user.admin or user in team.tournament.organizers.all or team == user.team %}
|
||||
<div class="card-footer text-center">
|
||||
<a href="{% url "tournament:team_update" pk=team.pk %}"><button class="btn btn-secondary">{% trans "Edit team" %}</button></a>
|
||||
{% if team.invalid or user.organizes %}
|
||||
<a href="{% url "tournament:team_update" pk=team.pk %}"><button class="btn btn-secondary">{% trans "Edit team" %}</button></a>
|
||||
{% endif %}
|
||||
{% if team.invalid %}
|
||||
<form method="post">
|
||||
{% csrf_token %}
|
||||
|
Reference in New Issue
Block a user