cqtu/templates/contest/registerRefs.html

111 lines
3.2 KiB
HTML

{% extends "base.html" %}
{% load crispy_forms_tags %}
{% block content %}
<div class="row">
<div class="col-md-6">
<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></th>
</tr>
</thead>
<tbody>
{% for u in alluser %}
<tr class="{% if not u.ref %}danger{% endif %}">
<td>{{ u.username }}</td>
<td>{{ u.ref|default:"unknown / unset" }}</td>
<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>
</div>
</div>
</div>
<div class="col-md-6">
<div class="panel panel-default">
<div class="panel-heading">Current QSOs</div>
<div class="panel-body">
<table class="table">
<thead>
<tr>
<th>Nr-S</th>
<th>Band</th>
<th>UTC</th>
<th>Call A</th>
<th>Call B</th>
<th>RS-S</th>
<th>RS-R</th>
<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>{{ qso.owner.username }}</td>
<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>
</div>
</div>
</div>
</div>
{% endblock %}