cqtu/templates/index.html

69 lines
1.8 KiB
HTML
Raw Permalink Normal View History

2017-01-18 02:25:12 +01:00
{% extends "base.html" %}
2017-01-19 18:42:11 +01:00
{% load crispy_forms_tags %}
{% load humanize %}
2017-01-19 18:42:11 +01:00
2017-01-18 02:25:12 +01:00
{% block content %}
2017-01-19 18:42:11 +01:00
2017-01-18 02:25:12 +01:00
<div class="row">
2017-01-20 17:29:21 +01:00
<div class="col-sm-12">
{% if current_contest %}
<p class="lead">Hello and welcome to the {{ current_contest.contestNo | ordinal }} DK0TU CQ TU contest, the {{ current_contest.name }}!</p>
{% else %}
<p class="lead">ERROR: No contest set in admin area! If you're an admin <a href="/admin/">go create one</a>.</p>
{% endif %}
2017-01-20 17:29:21 +01:00
</div>
</div>
<div class="row">
<div class="col-sm-6">
<div class="panel panel-default">
<div class="panel-heading"><h3 class="panel-title">Participate!</h3></div>
2017-01-20 17:29:21 +01:00
<div class="panel-body">
<p>
What next? Here are some ideas:
</p>
<p>
<ul>
<!--<li>If you want to review the contest rules, take a look at <a href="{% url "contest:overview" %}">the contest overview page</a></li>-->
2017-01-20 17:29:21 +01:00
<li>Need an account and already got a call? <a href="{% url "register" %}">Register here</a>!</li>
<li>Already have an account? Login on the right.</li>
</ul>
</p>
<!--
2017-01-20 17:29:21 +01:00
<p>
Und nun noch ein Wort von unserem Sponsor:
<blockquote>
Serverbasierte Loesung finde ich nach eingem Ueberlegen doof.
<footer>DL7BST</footer>
</blockquote>
</p>
-->
2017-01-20 17:29:21 +01:00
</div>
</div>
2017-01-18 02:25:12 +01:00
</div>
<div class="col-sm-6">
2017-01-20 17:29:21 +01:00
<div class="panel panel-default">
<div class="panel-heading"><h3 class="panel-title">Login</h3></div>
<div class="panel-body">
<p>
Login with callsign (uppercase) and password.
</p>
2017-01-23 00:10:55 +01:00
<form method="post" action="{% url "login" %}">
2017-01-20 17:29:21 +01:00
{% csrf_token %}
{{ loginForm|crispy }}
<div class="form-actions">
<button type="submit" class="btn btn-primary">Login</button>
</div>
</form>
2017-01-20 14:28:17 +01:00
</div>
2017-01-20 17:29:21 +01:00
</div>
2017-01-18 02:25:12 +01:00
</div>
</div>
2017-01-19 18:42:11 +01:00
<div class="row">
<div class="col-sm-12">
</div>
</div>
2017-01-18 02:25:12 +01:00
{% endblock %}