49 lines
2.0 KiB
HTML
49 lines
2.0 KiB
HTML
{% extends "membership/membership_detail.html" %}
|
|
{% load i18n %}
|
|
|
|
{% block title %} {% trans 'Kyu Score for' %} {{player.username}} {% endblock %}
|
|
|
|
{% block score_list %}
|
|
|
|
<ul class="tabs grid_12">
|
|
<li><a href="{% url 'player-ladder-score' membership.user.username %}">{% trans "Ladder Hanchans" %}</a></li>
|
|
<li><a href="{% url 'player-kyu-score' membership.user.username %}">{% trans "Kyu Hanchans" %}</a></li>
|
|
<li><a href="{% url 'player-dan-score' membership.user.username %}">{% trans "Dan Hanchans" %}</a></li>
|
|
<li class="active"><a href="{% url 'player-invalid-score' membership.user.username %}">{% trans "Invalid Hanchans" %}</a></li>
|
|
</ul>
|
|
<div class="grid_12">
|
|
<h2>{% trans 'Invalid hanchans with' %} {{membership.user.username}}</h2>
|
|
<table>
|
|
<thead><tr>
|
|
<th>{% trans 'Event' %}</th>
|
|
<th>{% trans 'Start' %}<//th>
|
|
<th colspan="4">{% trans 'Players' %}</th>
|
|
<th>{% trans 'Placement' %}</th>
|
|
<th>{% trans 'Kyu Points' %}</th>
|
|
<th>{% trans 'Comment' %}</th>
|
|
<th colspan="2"></th>
|
|
</tr></thead>
|
|
|
|
{% for result in player_list %}
|
|
<tr>
|
|
<td><a href="{{ result.hanchan.get_absolute_url }}">{{ result.hanchan.event.name }}</a></td>
|
|
<td>{{ result.hanchan.start|time:'H:i' }}</td>
|
|
{% for player in result.hanchan.player_set.all %}
|
|
<td class="center"><a href="{% url 'player-invalid-score' player.user.username %}">{{player.user}}</a><br/> {{player.score }}</td>
|
|
{% endfor %}
|
|
<td class="center">{{result.placement}}</td>
|
|
<td class="center">{{result.kyu_points}}</td>
|
|
<td>{{ result.comment }}</td>
|
|
<td>
|
|
{% if perms.mahjong_ranking.delete_hanchan %}
|
|
<a href="{% url 'delete-hanchan' result.hanchan.pk %}"><img src="{{STATIC_URL}}icons/table_delete.png" alt="{% trans 'Delete' %}" title="{% trans 'Delete Hanchan' %}"/>
|
|
{% endif %}
|
|
{% if perms.mahjong_ranking.change_hanchan %}
|
|
<a href="{% url 'edit-hanchan' result.hanchan.pk %}"><img src="{{STATIC_URL}}icons/table_edit.png" alt="{% trans 'Edit' %}" title="{% trans 'Edit Hanchan' %}"/>
|
|
{% endif %}
|
|
</td>
|
|
</tr>
|
|
{% endfor %}
|
|
</table>
|
|
</div>
|
|
{% endblock %} |