Nicer index, callsign display in nav

This commit is contained in:
Sebastian Lohff 2017-01-20 14:28:17 +01:00
parent ee05f845cb
commit c27d8bc3bf
3 changed files with 8 additions and 2 deletions

View File

@ -27,8 +27,9 @@ def contestIndex(request):
#messages.error(request, "Error!!!")
#messages.success(request, "Great Success")
qsoform = QSOForm(request.user)
contest = Contest.objects.get(id=1)
return render(request, 'contest/index.html', {"qsoform": qsoform})
return render(request, 'contest/index.html', {"qsoform": qsoform, "contest": contest})
@login_required
def log(request):

View File

@ -62,6 +62,9 @@
<li><a href="/login/">Login</a></li>
{% endif %}
</ul>
{% if user.is_authenticated %}
<p class="navbar-text navbar-right"><kbd>{{ user.username }} @ {% if user.ref %}{{ user.ref }}{% else %}???{% endif %}</kbd></p>
{% endif %}
</div><!--/.nav-collapse -->
</div>
</nav>

View File

@ -23,7 +23,9 @@
<form method="post" action="{% url "login" %}" class="uniForm">
{% csrf_token %}
{{ loginForm|crispy }}
<button type="submit" class="btn btn-primary">Login</button>
<div class="form-actions">
<button type="submit" class="btn btn-primary">Login</button>
</div>
</form>
</div>
</div>