Uploading files
This commit is contained in:
77
cvkbrno/templates/registration/cvkbrno_login.html
Normal file
77
cvkbrno/templates/registration/cvkbrno_login.html
Normal file
@@ -0,0 +1,77 @@
|
||||
{% extends "cvkbrnobase.html" %}
|
||||
|
||||
{% block content %}
|
||||
<div class="grid_12 alpha">
|
||||
{% if form.errors %}
|
||||
<p>Your username and password didn't match. Please try again.</p>
|
||||
{% endif %}
|
||||
|
||||
<form method="post" action="{% url 'django.contrib.auth.views.login' %}">
|
||||
{% csrf_token %}
|
||||
<table>
|
||||
<tr>
|
||||
<td>{{ form.username.label_tag }}</td>
|
||||
<td>{{ form.username }}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>{{ form.password.label_tag }}</td>
|
||||
<td>{{ form.password }}</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<input type="submit" value="login" />
|
||||
|
||||
{% if next %}
|
||||
<input type="hidden" name="next" value="{{ next }}" />
|
||||
{% else %}
|
||||
<input type="hidden" name="next" value="." />
|
||||
{% endif %}
|
||||
|
||||
|
||||
</form>
|
||||
</div>
|
||||
<div class="grid_6 alpha">
|
||||
<h1>Boats Out</h1>
|
||||
|
||||
<table class="listtable" width=100%>
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Boat</th>
|
||||
<th>Departure time</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
{% for outing in activeoutings %}
|
||||
<tr>
|
||||
<td> {{ outing.boat.boatname }} </td>
|
||||
<td> {{ outing.starttime }} </td>
|
||||
</tr>
|
||||
{% endfor %}
|
||||
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
<div class="grid_6 omega">
|
||||
<h1>Reservations</h1>
|
||||
|
||||
<table class="listtable" width=100%>
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Boat</th>
|
||||
<th>Departure time</th>
|
||||
<th>Reserved by</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
{% for res in reservations %}
|
||||
<tr>
|
||||
<td> {{ res.boat.boatname }} </td>
|
||||
<td> {{ res.starttime }} </td>
|
||||
<td> {{ res.rower.user.first_name }} {{ res.rower.user.last_name }} </td>
|
||||
</tr>
|
||||
{% endfor %}
|
||||
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
{% endblock %}
|
||||
53
cvkbrno/templates/registration/login.html~
Normal file
53
cvkbrno/templates/registration/login.html~
Normal file
@@ -0,0 +1,53 @@
|
||||
{% extends "cvkbrnobase.html" %}
|
||||
|
||||
{% block content %}
|
||||
|
||||
{% if form.errors %}
|
||||
<p>Your username and password didn't match. Please try again.</p>
|
||||
{% endif %}
|
||||
|
||||
<form method="post" action="{% url 'django.contrib.auth.views.login' %}">
|
||||
{% csrf_token %}
|
||||
<table>
|
||||
<tr>
|
||||
<td>{{ form.username.label_tag }}</td>
|
||||
<td>{{ form.username }}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>{{ form.password.label_tag }}</td>
|
||||
<td>{{ form.password }}</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<input type="submit" value="login" />
|
||||
|
||||
{% if next %}
|
||||
<input type="hidden" name="next" value="{{ next }}" />
|
||||
{% else %}
|
||||
<input type="hidden" name="next" value="." />
|
||||
{% endif %}
|
||||
|
||||
|
||||
</form>
|
||||
|
||||
<h1>Lodě na vodě</h1>
|
||||
|
||||
<table class="listtable" width=100%>
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Boat</th>
|
||||
<th>Departure time</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
{% for outing in activeoutings %}
|
||||
<tr>
|
||||
<td> {{ outing.boat.boatname }} </td>
|
||||
<td> {{ outing.starttime }} </td>
|
||||
</tr>
|
||||
{% endfor %}
|
||||
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
{% endblock %}
|
||||
Reference in New Issue
Block a user