cqtu/templates/contest/registerRefs.html

115 lines
3.5 KiB
HTML
Raw Normal View History

2017-01-20 14:28:59 +01:00
{% extends "base.html" %}
2017-01-25 01:53:22 +01:00
{% load crispy_forms_tags %}
2017-01-20 14:28:59 +01:00
{% block content %}
<div class="row">
<div class="col-md-6">
2017-01-25 01:53:22 +01:00
<div class="row">
<div class="col-md-12">
<div class="panel panel-default">
<div class="panel-heading">Contest Stations</div>
<div class="panel-body">
Here is a Table with all OMs/YLs in the contest!
<table class="table">
<thead>
<tr>
<th>Call</th>
<th>Ref</th>
<th># QSO</th>
<th># Cfmd</th>
2017-01-25 01:53:22 +01:00
<th></th>
2017-01-20 14:28:59 +01:00
</tr>
2017-01-25 01:53:22 +01:00
</thead>
<tbody>
{% for u in alluser %}
<tr class="{% if not u.ref %}danger{% endif %}">
<td><a href="{% url "contest:viewUserQSOs" u.id %}">{{ u.username }}</a></td>
2017-01-25 01:53:22 +01:00
<td>{{ u.ref|default:"unknown / unset" }}</td>
<td>{{ u.getQSOCount}}</td>
<td>{{ u.getCfmdQSOCount}}</td>
2017-01-25 01:53:22 +01:00
<td><a href="{% url "contest:updateRef" u.id %}">Update / Create ref</a></td>
</tr>
{% endfor %}
</tbody>
</table>
</div>
</div>
</div>
<div class="col-md-12">
<div class="panel panel-default">
<div class="panel-heading">Shadow Stations <small>(unregistered, but active)</small></div>
<div class="panel-body">
{% if shadowForm.errors %}
<div class="alert alert-danger">
{{ shadowForm.errors }}
</div>
{% endif %}
{% crispy shadowForm %}
<table class="table">
<thead>
<tr>
<th>Call</th>
<th>Ref</th>
<th></th>
</tr>
</thead>
<tbody>
{% for shadow in shadows %}
<tr>
<td>{{ shadow.username }}</td>
<td>{{ shadow.ref|default:"unknown / unset" }}</td>
<td><a href="{% url "contest:updateShadowRef" shadow.id %}">Update / create ref</a>
</tr>
{% endfor %}
</tbody>
</table>
</div>
</div>
2017-01-20 14:28:59 +01:00
</div>
</div>
</div>
<div class="col-md-6">
<div class="panel panel-default">
<div class="panel-heading">Last {{ qsos.count }} QSOs <small><a href="{% url "contest:viewAllQSOs" %}">Show all</a></div>
2017-01-20 14:28:59 +01:00
<div class="panel-body">
2017-01-21 02:05:45 +01:00
<table class="table">
<thead>
<tr>
<th>Nr-S</th>
<th>Band</th>
<th>UTC</th>
<th>Call A</th>
<th>Call B</th>
2017-01-23 02:00:42 +01:00
<th>RS-S</th>
<th>RS-R</th>
2017-01-21 02:05:45 +01:00
<th>Nr-R</th>
<th>EXC</th>
<th>Remarks</th>
</tr>
</thead>
<tbody>
{% for qso in qsos %}
<tr id="qso-row-{{ forloop.counter0 }}">
<td>{{ qso.ownNo }}</td>
<td>{{ qso.band }}</td>
<td>{{ qso.time|date:"H:i" }}</td>
<td><a href="{% url "contest:viewUserQSOs" qso.owner.id %}">{{ qso.owner.username }}</td>
2017-01-21 02:05:45 +01:00
<td>{{ qso.call }}</td>
<td>{{ qso.reportTX }}</td>
<td>{{ qso.reportRX }}</td>
<td>{{ qso.otherNo }}</td>
<td>{{ qso.refStr }}</td>
<td>{{ qso.remarks }}</td>
</tr>
{% endfor %}
</tbody>
</table>
2017-01-20 14:28:59 +01:00
</div>
</div>
</div>
</div>
{% endblock %}