Private
Public Access
1
0

Merge branch 'feature/sliders' into develop

This commit is contained in:
sanderroosendaal
2016-10-31 15:36:12 +01:00
259 changed files with 228 additions and 21281 deletions

View File

@@ -1,31 +0,0 @@
{% extends "cvkbrnobase.html" %}
{% load i18n %}
{% load staticfiles %}
{% load rowerfilters %}
{% block title %}{% trans "Create Boat" %}{% endblock %}
{% block content %}
<div id="workouts" class="grid_6 alpha">
{% if form.errors %}
<p style="color: red;">
Please correct the error{{ form.errors|pluralize }} below.
</p>
{% endif %}
<h1>{% trans "Create Boat" %}</h1>
<form enctype="multipart/form-data" action="" method="post">
<table width=100%>
{{ form.as_table }}
</table>
{% csrf_token %}
<div id="formbutton" class="grid_1 prefix_4 suffix_1">
<input type="submit" value="Save">
</div>
</form>
</div>
{% endblock %}

View File

@@ -1,25 +0,0 @@
{% extends "cvkbrnobase.html" %}
{% load i18n %}
{% load staticfiles %}
{% load rowerfilters %}
{% block title %}{% "Delete Boat" %}{% endblock %}
{% block content %}
<div id="workouts" class="grid_6 alpha">
<div class="grid_2 suffix_4 alpha">
<p class="deletelink">
<a href="/cvkbrno/boats/{{ id }}/delete">
{% trans "Confirm Delete" %}</a>
</p>
</div>
{% if form.errors %}
<p style="color: red;">
Please correct the error{{ form.errors|pluralize }} below.
</p>
{% endif %}
</div>
{% endblock %}

View File

@@ -1,66 +0,0 @@
{% extends "cvkbrnobase.html" %}
{% load i18n %}
{% load staticfiles %}
{% load rowerfilters %}
{% block title %}{% trans "Edit Boat" %}{% endblock %}
{% block content %}
<div id="workouts" class="grid_6 alpha">
<div class="grid_2 suffix_4 alpha">
<p>
<a class="button red small" href="/cvkbrno/boats/{{ id }}/deleteconfirm">
{% trans "Delete" %}</a>
</p>
</div>
{% if form.errors %}
<p style="color: red;">
Please correct the error{{ form.errors|pluralize }} below.
</p>
{% endif %}
<h1>{% trans "Edit Boat" %}</h1>
<form enctype="multipart/form-data" action="" method="post">
<table width=100%>
{{ form.as_table }}
</table>
{% csrf_token %}
<div id="formbutton" class="grid_1 prefix_4 suffix_1">
<input class="button green" type="submit" value="{% trans 'Save' %}">
</div>
</form>
</div>
<div id="outings" class="grid_6 omega">
<h1>{% trans "Recent Outings with this boat" %}</h1>
<div class="grid_2 suffix_4 alpha">
<p>
&nbsp;
</p>
</div>
<table class="listtable" width=100%>
<thead>
<tr>
<th>{% trans "Date" %}</th>
<th>{% trans "Rower" %}</th>
<th>{% trans "Status" %}</th>
</tr>
</thead>
<tbody>
{% for outing in theoutings %}
<tr>
<td>{{ outing.starttime }}</td>
<td>{{ outing.rower.user.first_name }} {{ outing.rower.user.last_name }}</td>
<td>{% trans outing.status %}</td>
</tr>
{% endfor %}
<tbody>
</table>
</div>
{% endblock %}

View File

@@ -1,80 +0,0 @@
{% extends "cvkbrnobase.html" %}
{% load i18n %}
{% load staticfiles %}
{% load rowerfilters %}
{% block title %}{% trans "Boats Admin" %}{% endblock %}
{% block content %}
<div id="workouts" class="grid_6 alpha">
{% if form.errors %}
<p style="color: red;">
Please correct the error{{ form.errors|pluralize }} below.
</p>
{% endif %}
<h1>{% trans "Boats Admin" %}</h1>
<div id="addboat" class="grid_2 suffix_4 alpha">
<p>
<a class="button green small" href="/cvkbrno/boats/add">{% trans "Add Boat" %}</a>
</p>
</div>
<table class="listtable" width=100%>
<thead>
<tr>
<th>{% trans "Code" %}</th>
<th>{% trans "Name" %}</th>
<th>{% trans "Status" %}</th>
<th>{% trans "Edit" %}</th>
</tr>
</thead>
<tbody>
{% for boat in theboats %}
<tr>
<td>{{ boat.boatcode }}</td>
<td>{{ boat.boatname }}</td>
<td>{% trans boat.status %}</td>
<td><a href="/cvkbrno/boats/{{ boat.id }}/edit">E</a></td>
</tr>
{% endfor %}
<tbody>
</table>
{% csrf_token %}
</div>
<div id="outings" class="grid_6 omega">
<h1>{% trans "Recent Outings" %}</h1>
<div class="grid_2 suffix_4 alpha">
<p>
&nbsp;
</p>
</div>
<table class="listtable" width=100%>
<thead>
<tr>
<th>{% trans "Date" %}</th>
<th>{% trans "Name" %}</th>
<th>{% trans "Rower" %}</th>
<th>{% trans "Status" %}</th>
</tr>
</thead>
<tbody>
{% for outing in theoutings %}
<tr>
<td>{{ outing.starttime }}</td>
<td>{{ outing.boat.boatname }}</td>
<td>{{ outing.rower.user.first_name }} {{ outing.rower.user.last_name }}</td>
<td>{% trans outing.status %}</td>
</tr>
{% endfor %}
<tbody>
</table>
</div>
{% endblock %}

View File

@@ -1,45 +0,0 @@
{% extends "cvkbrnobase.html" %}
{% load i18n %}
{% load staticfiles %}
{% load rowerfilters %}
{% block title %}{% trans "Boat Category Admin" %}{% endblock %}
{% block content %}
<div id="workouts" class="grid_6 alpha">
{% if form.errors %}
<p style="color: red;">
Please correct the error{{ form.errors|pluralize }} below.
</p>
{% endif %}
<h1>{% trans "Boat Category Admin" %}</h1>
<div id="addcategory" class="grid_2 suffix_4 alpha">
<p class="greenbar">
<a href="/cvkbrno/categories/add">{% trans "Add Boat Category" %}</a>
</p>
</div>
<table class="listtable" width=100%>
<thead>
<tr>
<th>{% trans "Name" %}</th>
<th>{% trans "Edit" %}</th>
</tr>
</thead>
<tbody>
{% for category in thecats %}
<tr>
<td>{{ category.name }}</td>
<td><a href="/cvkbrno/categories/{{ category.id }}/edit">E</a></td>
</tr>
{% endfor %}
<tbody>
</table>
{% csrf_token %}
</div>
{% endblock %}

View File

@@ -1,24 +0,0 @@
{% extends "cvkbrnobase.html" %}
{% load i18n %}
{% load staticfiles %}
{% load rowerfilters %}
{% block title %}{% trans "Delete Boat Category" %}{% endblock %}
{% block content %}
<div id="workouts" class="grid_6 alpha">
<div class="grid_2 suffix_4 alpha">
<p class="deletelink">
<a href="/cvkbrno/categories/{{ id }}/delete">{% trans "Confirm Delete" %}</a>
</p>
</div>
{% if form.errors %}
<p style="color: red;">
Please correct the error{{ form.errors|pluralize }} below.
</p>
{% endif %}
</div>
{% endblock %}

View File

@@ -1,37 +0,0 @@
{% extends "cvkbrnobase.html" %}
{% load i18n %}
{% load staticfiles %}
{% load rowerfilters %}
{% block title %}{% trans "Edit Category" %}{% endblock %}
{% block content %}
<div id="workouts" class="grid_6 alpha">
<div class="grid_2 suffix_4 alpha">
<p class="deletelink">
<a href="/cvkbrno/categories/{{ id }}/deleteconfirm">
{% trans "Delete" %}</a>
</p>
</div>
{% if form.errors %}
<p style="color: red;">
Please correct the error{{ form.errors|pluralize }} below.
</p>
{% endif %}
<h1>{% trans "Edit Category" %}</h1>
<form enctype="multipart/form-data" action="" method="post">
<table width=100%>
{{ form.as_table }}
</table>
{% csrf_token %}
<div id="formbutton" class="grid_1 prefix_4 suffix_1">
<input type="submit" value="{% trans 'Save' %}">
</div>
</form>
</div>
{% endblock %}

View File

@@ -1,31 +0,0 @@
{% extends "cvkbrnobase.html" %}
{% load i18n %}
{% load staticfiles %}
{% load rowerfilters %}
{% block title %}{% trans "Create Category" %}{% endblock %}
{% block content %}
<div id="workouts" class="grid_6 alpha">
{% if form.errors %}
<p style="color: red;">
Please correct the error{{ form.errors|pluralize }} below.
</p>
{% endif %}
<h1>{% trans "Create Category" %}</h1>
<form enctype="multipart/form-data" action="" method="post">
<table width=100%>
{{ form.as_table }}
</table>
{% csrf_token %}
<div id="formbutton" class="grid_1 prefix_4 suffix_1">
<input type="submit" value="Save">
</div>
</form>
</div>
{% endblock %}

View File

@@ -1,81 +0,0 @@
{% extends "cvkbrnobase.html" %}
{% load i18n %}
{% block content %}
<div class="grid_12 alpha">
{% if form.errors %}
<p>{% trans "Your username and password didn't match. Please try again." %}</p>
{% endif %}
<form method="post" action="">
{% csrf_token %}
{% if next %}
<input type="hidden" name="next" value="{{ next }}" />
{% endif %}
<table align="center">
<tr><th>
<label class="control-label" for="username">{% trans "Username" %}</label>
</th>
<td>
<input type="text" id="username" name="username" placeholder="Username">
</td></tr>
<tr><th>
<label class="control-label" for="password">
{% trans "Password" %}</label>
</th>
<td>
<input type="password" name="password" id="password" placeholder="Password">
</td></tr>
<tr>
<td>&nbsp;</p>
<td>
<button type="submit" class="btn">{% trans "Login" %}</button>
</td></tr>
</table>
</form>
</div>
<div class="grid_6 alpha">
<h1>{% trans "Boats Out" %}</h1>
<table class="listtable" width=100%>
<thead>
<tr>
<th>{% trans "Boat" %}</th>
<th>{% trans "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>{% trans "Reservations" %}</h1>
<table class="listtable" width=100%>
<thead>
<tr>
<th>{% trans "Boat" %}</th>
<th>{% trans "Departure time" %}</th>
<th>{% trans "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>
{% endblock %}

View File

@@ -1,33 +0,0 @@
{% extends "cvkbrnobase.html" %}
{% load i18n %}
{% load staticfiles %}
{% load rowerfilters %}
{% block title %}{% trans "Create Member" %}{% endblock %}
{% block content %}
<div id="workouts" class="grid_6 alpha">
{% if form.errors %}
<p style="color: red;">
Please correct the error{{ form.errors|pluralize }} below.
</p>
{% endif %}
<h1>{% trans "Create Member" %}</h1>
<form enctype="multipart/form-data" action="" method="post">
<table width=100%>
{{ form1.as_table }}
{{ form2.as_table }}
{{ form3.as_table }}
</table>
{% csrf_token %}
<div id="formbutton" class="grid_1 prefix_4 suffix_1">
<input type="submit" value="{% trans 'Save' %}">
</div>
</form>
</div>
{% endblock %}

View File

@@ -1,38 +0,0 @@
{% extends "cvkbrnobase.html" %}
{% load i18n %}
{% load staticfiles %}
{% load rowerfilters %}
{% block title %}{% trans "Edit Member" %}{% endblock %}
{% block content %}
<div id="workouts" class="grid_6 alpha">
<div class="grid_2 suffix_4 alpha">
<p>
<a class="button small red" href="/cvkbrno/members/{{ id }}/deleteconfirm">
{% trans "Delete" %}</a>
</p>
</div>
{% if form.errors %}
<p style="color: red;">
Please correct the error{{ form.errors|pluralize }} below.
</p>
{% endif %}
<h1>{% trans "Edit Member" %}</h1>
<form enctype="multipart/form-data" action="" method="post">
<table width=100%>
{{ form1.as_table }}
{{ form2.as_table }}
</table>
{% csrf_token %}
<div id="formbutton" class="grid_1 prefix_4 suffix_1">
<input type="submit" value="{% trans 'Save' %}">
</div>
</form>
</div>
{% endblock %}

View File

@@ -1,53 +0,0 @@
{% extends "cvkbrnobase.html" %}
{% load i18n %}
{% load staticfiles %}
{% load rowerfilters %}
{% block title %}{% trans "Members Admin" %}{% endblock %}
{% block content %}
<div id="workouts" class="grid_6 alpha">
{% if form.errors %}
<p style="color: red;">
Please correct the error{{ form.errors|pluralize }} below.
</p>
{% endif %}
<h1>{% trans "Members Admin" %}</h1>
<div id="addboat" class="grid_2 suffix_4 alpha">
<p class="greenbar">
<a href="/cvkbrno/members/add">{% trans "Add Member" %}</a>
</p>
</div>
{% if themembers %}
<table class="listtable" width=100%>
<thead>
<tr>
<th>{% trans "Last Name" %}</th>
<th>{% trans "First Name" %}</th>
<th>{% trans "Contributions" %}</th>
<th>{% trans "Edit" %}</th>
</tr>
</thead>
<tbody>
{% for member in themembers %}
<tr>
<td>{{ member.user.last_name }}</td>
<td>{{ member.user.first_name }}</td>
<td>{{ member.contributions }}</td>
<td><a href="/cvkbrno/members/{{ member.id }}/edit">E</a></td>
</tr>
{% endfor %}
<tbody>
</table>
{% endif %}
{% csrf_token %}
</div>
{% endblock %}

View File

@@ -1,24 +0,0 @@
{% extends "cvkbrnobase.html" %}
{% load i18n %}
{% load staticfiles %}
{% load rowerfilters %}
{% block title %}{% trans "Delete Member" %}{% endblock %}
{% block content %}
<div id="workouts" class="grid_6 alpha">
<div class="grid_2 suffix_4 alpha">
<p class="deletelink">
<a href="/cvkbrno/members/{{ id }}/delete">{% trans "Confirm Delete" %}</a>
</p>
</div>
{% if form.errors %}
<p style="color: red;">
Please correct the error{{ form.errors|pluralize }} below.
</p>
{% endif %}
</div>
{% endblock %}

View File

@@ -1,53 +0,0 @@
{% extends "cvkbrnobase.html" %}
{% load i18n %}
{% load staticfiles %}
{% load rowerfilters %}
{% block title %}{% trans "Members Admin" %}{% endblock %}
{% block content %}
<div id="workouts" class="grid_6 alpha">
{% if form.errors %}
<p style="color: red;">
Please correct the error{{ form.errors|pluralize }} below.
</p>
{% endif %}
<h1>{% trans "Members Admin" %}</h1>
<div id="addboat" class="grid_2 suffix_4 alpha">
<p>
<a class="button green small" href="/cvkbrno/members/add">{% trans "Add Member" %}</a>
</p>
</div>
{% if themembers %}
<table class="listtable" width=100%>
<thead>
<tr>
<th>{% trans "Last Name" %}</th>
<th>{% trans "First Name" %}</th>
<th>{% trans "Contributions" %}</th>
<th>{% trans "Edit" %}</th>
</tr>
</thead>
<tbody>
{% for member in themembers %}
<tr>
<td>{{ member.user.last_name }}</td>
<td>{{ member.user.first_name }}</td>
<td>{{ member.contributions }}</td>
<td><a href="/cvkbrno/members/{{ member.id }}/edit">E</a></td>
</tr>
{% endfor %}
<tbody>
</table>
{% endif %}
{% csrf_token %}
</div>
{% endblock %}

View File

@@ -1,66 +0,0 @@
{% extends "cvkbrnobase.html" %}
{% load i18n %}
{% load staticfiles %}
{% load rowerfilters %}
{% block title %}{% trans "Edit Member Work" %}{% endblock %}
{% block content %}
<div id="workouts" class="grid_6 alpha">
<div class="grid_2 suffix_4 alpha">
<p>
<a class="button red small" href="/cvkbrno/boats/{{ id }}/deleteconfirm">
{% trans "Delete" %}</a>
</p>
</div>
{% if form.errors %}
<p style="color: red;">
Please correct the error{{ form.errors|pluralize }} below.
</p>
{% endif %}
<h1>{% trans "Edit Boat" %}</h1>
<form enctype="multipart/form-data" action="" method="post">
<table width=100%>
{{ form.as_table }}
</table>
{% csrf_token %}
<div id="formbutton" class="grid_1 prefix_4 suffix_1">
<input class="button green" type="submit" value="{% trans 'Save' %}">
</div>
</form>
</div>
<div id="outings" class="grid_6 omega">
<h1>{% trans "Recent Outings with this boat" %}</h1>
<div class="grid_2 suffix_4 alpha">
<p>
&nbsp;
</p>
</div>
<table class="listtable" width=100%>
<thead>
<tr>
<th>{% trans "Date" %}</th>
<th>{% trans "Rower" %}</th>
<th>{% trans "Status" %}</th>
</tr>
</thead>
<tbody>
{% for outing in theoutings %}
<tr>
<td>{{ outing.starttime }}</td>
<td>{{ outing.rower.user.first_name }} {{ outing.rower.user.last_name }}</td>
<td><a href="/cvkbrno/outing/{{ outing.id }}">{% trans outing.status %}</a></td>
</tr>
{% endfor %}
<tbody>
</table>
</div>
{% endblock %}

View File

@@ -1,50 +0,0 @@
{% extends "cvkbrnobase.html" %}
{% load i18n %}
{% load staticfiles %}
{% load rowerfilters %}
{% block title %}{% trans "Meterboard" %}{% endblock %}
{% block content %}
<div id="workouts" class="grid_6 alpha">
{% if form.errors %}
<p style="color: red;">
Please correct the error{{ form.errors|pluralize }} below.
</p>
{% endif %}
<h1>{% trans "Meterboard" %}</h1>
{{ data|safe }}
{% csrf_token %}
</div>
<div id="outings" class="grid_6 omega">
<h1>{% trans "Recent Outings" %}</h1>
<table class="listtable" width=100%>
<thead>
<tr>
<th>{% trans "Date" %}</th>
<th>{% trans "Name" %}</th>
<th>{% trans "Rower" %}</th>
<th>{% trans "Status" %}</th>
</tr>
</thead>
<tbody>
{% for outing in theoutings %}
<tr>
<td>{{ outing.starttime }}</td>
<td>{{ outing.boat.boatname }}</td>
<td>{{ outing.rower.user.first_name }} {{ outing.rower.user.last_name }}</td>
<td><a href="/cvkbrno/outing/{{ outing.id }}">{% trans outing.status %}</a></td>
</tr>
{% endfor %}
<tbody>
</table>
</div>
{% endblock %}

View File

@@ -1,66 +0,0 @@
{% extends "cvkbrnobase.html" %}
{% load i18n %}
{% load staticfiles %}
{% load rowerfilters %}
{% block title %}{% trans "View Outing" %}{% endblock %}
{% block content %}
<div id="workouts" class="grid_6 alpha">
<div class="grid_2 suffix_4 alpha">
<p>
<a class="button red small" href="/cvkbrno/boats/{{ id }}/deleteconfirm">
{% trans "Delete" %}</a>
</p>
</div>
{% if form.errors %}
<p style="color: red;">
Please correct the error{{ form.errors|pluralize }} below.
</p>
{% endif %}
<h1>{% trans "Edit Boat" %}</h1>
<form enctype="multipart/form-data" action="" method="post">
<table width=100%>
{{ form.as_table }}
</table>
{% csrf_token %}
<div id="formbutton" class="grid_1 prefix_4 suffix_1">
<input class="button green" type="submit" value="{% trans 'Save' %}">
</div>
</form>
</div>
<div id="outings" class="grid_6 omega">
<h1>{% trans "Recent Outings with this boat" %}</h1>
<div class="grid_2 suffix_4 alpha">
<p>
&nbsp;
</p>
</div>
<table class="listtable" width=100%>
<thead>
<tr>
<th>{% trans "Date" %}</th>
<th>{% trans "Rower" %}</th>
<th>{% trans "Status" %}</th>
</tr>
</thead>
<tbody>
{% for outing in theoutings %}
<tr>
<td>{{ outing.starttime }}</td>
<td>{{ outing.rower.user.first_name }} {{ outing.rower.user.last_name }}</td>
<td><a href="/cvkbrno/outing/{{ outing.id }}">{% trans outing.status %}</a></td>
</tr>
{% endfor %}
<tbody>
</table>
</div>
{% endblock %}

View File

@@ -1,40 +0,0 @@
{% extends "cvkbrnobase.html" %}
{% load i18n %}
{% load staticfiles %}
{% load rowerfilters %}
{% block title %}{% trans "Return from outing" %}
{% endblock %}
{% block content %}
<div id="workouts" class="grid_12 alpha">
{% if form.errors %}
<p style="color: red;">
Please correct the error{{ form.errors|pluralize }} below.
</p>
{% endif %}
<h1>{% trans "Return from outing" %}</h1>
<h2>{{ outing.boat.boatcode }} {{ outing.boat.boatname }}</h2>
<p>{% trans "Please check the boat" %}</p>
<form enctype="multipart/form-data" action="" method="post">
<table width=100%>
<tr>
<th><label for="id_damagecheck">{% trans "Is boat OK?" %}</label></th>
<td><select id="id_damagecheck" name="damagecheck">
<option value="Yes" selected="selected">{% trans 'Yes' %}</option>
<option value="No">{% trans 'No' %}</option>
</select></td>
</tr>
{{ form.as_table }}
</table>
{% csrf_token %}
<div id="formbutton" class="grid_1 prefix_4 suffix_1">
<input type="submit" value="{% trans 'Save' %}">
</div>
</form>
</div>
{% endblock %}

View File

@@ -1,182 +0,0 @@
{% extends "cvkbrnobase.html" %}
{% load i18n %}
{% load staticfiles %}
{% load rowerfilters %}
{% load tz %}
{% block title %}{% trans "Going Rowing" %} {% endblock %}
{% block content %}
{% localtime on %}
<script type="text/JavaScript">
var themembers = {{ jsonmembers|safe }};
function getformfields(nrseat) {
var s = "<table>"
for (i=2;i<=nrseat;i++) {
s+='<tr><td>'
s+=i
s+=': </td><td><select id="idcrew'
s+=i
s+='" name="crew'
s+=i
s+='"><option disabled selected value> -- </option>'
for (var id in themembers) {
s+= "<option value="
s+= id
s+= ">"+themembers[id]+"</option>"
}
s+= '</select></td></tr>'
}
s+= "</table>"
return s
}
</script>
<div id="workouts" class="grid_6 alpha">
{% if form.errors %}
<p style="color: red;">
Please correct the error{{ form.errors|pluralize }} below.
</p>
{% endif %}
<h1>{% trans "Going Rowing" %}</h1>
<form enctype="multipart/form-data" action="" method="post" content="text/html;charset=UTF-8">
<table width=100%>
{{ form.as_table }}
<tr><th><label for="id_boat">{% trans "Boat" %}:</label></th>
<td><select id="id_boat" name="boat"
onchange="document.getElementById('crew').innerHTML =
getformfields(this.options[this.selectedIndex].getAttribute('data-nrseat'));"
onload="document.getElementById('crew').innerHTML =
getformfields(this.options[this.selectedIndex].getAttribute('data-nrseat'));">
{% if selectedboat %}
<option value="{{ selectedboat.id }}" data-nrseat="{{ selectedboat.nrseats }}" selected="selected">
{{ selectedboat.boatcode }} {{ selectedboat.boatname }}
({{ selectedboat.nrseats }})</option>
{% else %}
<option value="" selected="selected">---------</option>
{% endif %}
{% for boat in theboats %}
<option value="{{ boat.id }}" data-nrseat="{{ boat.nrseats }}">{{ boat.boatcode }} {{ boat.boatname }} ({{ boat.nrseats }})</option>
{% endfor %}
</select></td></tr>
</table>
<p>&nbsp;</p>
<p>1: {{ user.first_name }} {{ user.last_name }}</p>
<p id="crew"></p>
{% csrf_token %}
<div id="formbutton" class="grid_1 prefix_4 suffix_1">
<input class="button green" type="submit" value="{% trans 'Save' %}">
</div>
</form>
</div>
<div id="reservations" class="grid_6 omega">
<h1>{% trans "Reservations" %}</h1>
<table class="listtable" width=100%>
<thead>
<tr>
<th>{% trans "Boat" %}</th>
<th>{% trans "Departure time" %}</th>
<th>{% trans "Reserved by" %}</th>
<th>{% trans "Delete" %}
</tr>
</thead>
<tbody>
{% for outing in reservations %}
<tr>
<td> {{ outing.boat.boatname }} </td>
<td> {{ outing.starttime }} </td>
<td> {{ outing.rower.user.first_name }} {{ outing.rower.user.last_name }} </td>
{% if user == outing.rower.user or thisclub_admin %}
<td><a href="/cvkbrno/outing/{{ outing.id }}/delete">D</a></td>
{% else %}
<td>&nbsp;</td<
{% endif %}
<td>
</tr>
{% endfor %}
</tbody>
</table>
</div>
<div id="damaged" class="grid_6 omega">
{% if damagedboats %}
<h1>{% trans "Temporarily Unavailable" %}</h1>
<table class="listtable" width=100%>
<tbody>
{% for boat in damagedboats %}
<tr>
<td> {{ boat.boatname }} </td>
</tr>
{% endfor %}
</tbody>
</table>
{% endif %}
{% if races %}
<h1>{% trans "Upcoming Races" %}</h1>
<table class="listtable" width=100%>
<thead>
<tr>
<th>{% trans "Name" %}</th>
<th>{% trans "Start Date" %}</th>
<th>{% trans "End Date" %}</th>
</tr>
</thead>
<tbody>
{% for race in races %}
<tr>
<td>{{ race.name }}</td>
<td>{{ race.startdatetime }}</td>
<td>{{ race.enddatetime }}</td>
</tr>
{% endfor %}
<tbody>
</table>
{% endif %}
</div>
<div id="plannedwork" class="grid_6 omega">
{% if plannedwork %}
<h1>{% trans "Upcoming Members Work" %}</h1>
<table class="listtable" width=100%>
<thead>
<tr>
<th>{% trans "Name" %}</th>
<th>{% trans "Date" %}</th>
<th>{% trans "Action" %}</th>
</tr>
</thead>
<tbody>
{% for w in plannedwork %}
<tr>
<td>{{ w.name }}</td>
<td>{{ w.date }}</td>
{% if member in w.worker.all %}
<td><a class="button red small" href="/cvkbrno/memberswork/{{ w.id }}/removeme">{% trans "Remove me" %}</a></td>
{% else %}
<td><a class="button green small" href="/cvkbrno/memberswork/{{ w.id }}/addme">{% trans "Add me" %}</a></td>
{% endif %}
</tr>
{% endfor %}
<tbody>
</table>
{% endif %}
</div>
{% endlocaltime %}
{% endblock %}

View File

@@ -1,31 +0,0 @@
{% extends "cvkbrnobase.html" %}
{% load i18n %}
{% load staticfiles %}
{% load rowerfilters %}
{% block title %}{% trans "Create Races Event" %}{% endblock %}
{% block content %}
<div id="workouts" class="grid_6 alpha">
{% if form.errors %}
<p style="color: red;">
Please correct the error{{ form.errors|pluralize }} below.
</p>
{% endif %}
<h1>{% trans "Create Races Event" %}</h1>
<form enctype="multipart/form-data" action="" method="post">
<table width=100%>
{{ form.as_table }}
</table>
{% csrf_token %}
<div id="formbutton" class="grid_1 prefix_4 suffix_1">
<input type="submit" value="Save">
</div>
</form>
</div>
{% endblock %}

View File

@@ -1,45 +0,0 @@
{% extends "cvkbrnobase.html" %}
{% load i18n %}
{% load staticfiles %}
{% load rowerfilters %}
{% block title %}{% trans "Races Admin" %}{% endblock %}
{% block content %}
<div id="workouts" class="grid_6 alpha">
{% if form.errors %}
<p style="color: red;">
Please correct the error{{ form.errors|pluralize }} below.
</p>
{% endif %}
<h1>{% trans "Races Admin" %}</h1>
<div id="addcategory" class="grid_2 suffix_4 alpha">
<p>
<a class="button small green" href="/cvkbrno/transport/add">{% trans "Add Race Event" %}</a>
</p>
</div>
<table class="listtable" width=100%>
<thead>
<tr>
<th>{% trans "Name" %}</th>
<th>{% trans "Edit" %}</th>
</tr>
</thead>
<tbody>
{% for race in races %}
<tr>
<td>{{ race.name }}</td>
<td><a href="/cvkbrno/transport/{{ race.id }}/edit">E</a></td>
</tr>
{% endfor %}
<tbody>
</table>
{% csrf_token %}
</div>
{% endblock %}

View File

@@ -1,74 +0,0 @@
{% extends "cvkbrnobase.html" %}
{% load i18n %}
{% load staticfiles %}
{% load rowerfilters %}
{% block title %}{% trans "Make a Reservation" %}{% endblock %}
{% block content %}
<div id="workouts" class="grid_6 alpha">
{% if form.errors %}
<p style="color: red;">
Please correct the error{{ form.errors|pluralize }} below.
</p>
{% endif %}
<h1>{% trans "Make a reservation" %}</h1>
<form enctype="multipart/form-data" action="" method="post">
<table width=100%>
{{ form.as_table }}
<tr><th><label for="id_boat">{% trans "Boat:" %}</label></th>
<td><select id="id_boat" name="boat">
<option value="" selected="selected">---------</option>
{% for boat in theboats %}
<option value="{{ boat.id }}">{{boat.boatcode}} {{ boat.boatname }}</option>
{% endfor %}
</select></td>
</tr>
</table>
{% csrf_token %}
<div id="formbutton" class="grid_1 prefix_4 suffix_1">
<input class="button green" type="submit" value="{% trans 'Save' %}">
</div>
</form>
</div>
<div id="reservations" class="grid_6 omega">
<h1>{% trans "Reservations" %}</h1>
<table class="listtable" width=100%>
<thead>
<tr>
<th>{% trans "Boat" %}</th>
<th>{% trans "Date" %}</th>
<th>{% trans "Departure time" %}</th>
<th>{% trans "Return time" %}</th>
<th>{% trans "Reserved by" %}</th>
<th>{% trans "Delete" %}</th>
</tr>
</thead>
<tbody>
{% for outing in reservations %}
<tr>
<td> {{ outing.boat.boatname }} </td>
<td> {{ outing.starttime |date:'d/m/y ' }} &nbsp;</td>
<td> {{ outing.starttime |time:'H:i ' }} &nbsp;</td>
<td> {{ outing.endtime |time:'H:i '}} &nbsp;</td>
<td> {{ outing.rower.user.first_name }} {{ outing.rower.user.last_name }} </td>
{% if user == outing.rower.user or thisclub_admin %}
<td><a href="/cvkbrno/outing/{{ outing.id }}/delete">D</a></td>
{% else %}
<td>&nbsp;</td<
{% endif %}
<td>
</tr>
{% endfor %}
</tbody>
</table>
</div>
{% endblock %}

View File

@@ -1,24 +0,0 @@
{% extends "cvkbrnobase.html" %}
{% load staticfiles %}
{% load rowerfilters %}
{% block title %}Jdu na vodu {% endblock %}
{% block content %}
{% load i18n %}
<form action="{% url 'set_language' %}" method="post">{% csrf_token %}
<input name="next" type="hidden" value="{{ redirect_to }}" />
<select name="language">
{% get_current_language as LANGUAGE_CODE %}
{% get_available_languages as LANGUAGES %}
{% get_language_info_list for LANGUAGES as languages %}
{% for language in languages %}
<option value="{{ language.code }}"{% if language.code == LANGUAGE_CODE %} selected="selected"{% endif %}>
{{ language.name_local }} ({{ language.code }})
</option>
{% endfor %}
</select>
<input type="submit" value="Go" />
</form>
{% endblock %}

View File

@@ -1,193 +0,0 @@
<!DOCTYPE HTML>
<html>
<head>
{% load i18n %}
{% load tz %}
{% get_current_language as LANGUAGE_CODE %}
{% language LANGUAGE_CODE %}
{% get_available_languages as LANGUAGES %}
{% get_current_language_bidi as LANGUAGE_BIDI %}
<link rel="shortcut icon" href="/static/img/myicon.png" />
<link rel="shortcut icon" href="/static/img/favicon.ico" />
<meta charset="utf-8" />
<meta name="viewport" content="initial-scale=0.67">
<title>CVK Brno</title>
<link rel="stylesheet" href="/static/css/reset.css" />
<link rel="stylesheet" href="/static/css/text.css" />
<link rel="stylesheet" href="/static/css/960_12_col.css" />
<link rel="stylesheet" href="/static/css/rowsandall.css" />
<meta http-equiv="content-type" content="text/html;charset=utf-8" />
{% block meta %} {% endblock %}
</head>
<body>
<div class="container_12">
<div id="logo" class="grid_2">
<p><a href="/cvkbrno"><img src="/static/img/cvkbrnologo.gif"
alt="Rowsandall logo" width="160" heigt="160"></a></p>
</div>
<div class="grid_10 omega">
<div class="grid_5 alpha">
<h2>{% trans "Welcome," %} {{ user.first_name }}</h2>
</div>
<div class="grid_1">
<a href="/cvkbrno/language/cs/">
<img src="/static/flags_iso/24/cz.png" alt="CZ flag">
</a>
</div>
<div class="grid_1">
<a href="/cvkbrno/language/en-GB/">
<img src="/static/flags_iso/24/gb.png" alt="EN flag">
</a>
</div>
<div class="grid_1">
<a href="/cvkbrno/language/nl/">
<img src="/static/flags_iso/24/nl.png" alt="NL flag">
</a>
</div>
<div class="grid_2 omega">
{% if user.is_authenticated %}
<p><a class="button gray" href="/password_change/">
{% trans "Password Change" %}</a></p>
{% else %}
<p><a class="button gray small" href="/password_reset/">{% trans "Forgotten Password?" %}</a></p>
{% endif %}
</div>
</div>
<div class="grid_10">
<div class="grid_2 alpha">
<p>{% trans "Worked hours" %}: {{ worked_hours }}
</p>
</div>
<div class="grid_2">
{% if user.is_authenticated %}
<p>
<a class="button blue small" href="/cvkbrno/meterboard">
{% trans "Meterboard" %}
</a>
</p>
{% else %}
<p>&nbsp;</p>
{% endif %}
</div>
<div class="grid_2 prefix_3">
{% if thisclub_admin %}
<p>
<a class="button rosy small" href="/cvkbrno/memberswork">
{% trans "Members Work" %}</a>
</p>
{% else %}
<p>&nbsp;</p>
{% endif %}
</div>
</div>
<div class="grid_10" omega>
<div class="grid_2 alpha">
{% if user.is_authenticated %}
<p>
<a class="button blue" href="/cvkbrno/createouting">
{% trans "Go Rowing" %}</a>
</p>
{% else %}
<p>&nbsp;</p>
{% endif %}
</div>
<div class="grid_2">
{% if user.is_authenticated %}
<p>
<a class="button blue" href="/cvkbrno/makereservation">
{% trans "Reservations" %}</a>
</p>
{% else %}
<p>&nbsp;</p>
{% endif %}
</div>
<div class="grid_1">
{% if thisclub_admin %}
<p><a class="button rosy" href="/cvkbrno/boats">
{% trans "Boats" %}</a></p>
{% else %}
<p>&nbsp;</p>
{% endif %}
</div>
<div class="grid_1">
{% if thisclub_admin %}
<p><a class="button rosy" href="/cvkbrno/members">
{% trans "Members" %}</a></p>
{% else %}
<p>&nbsp;</p>
{% endif %}
</div>
<div class="grid_1">
{% if thisclub_admin %}
<p><a class="button rosy" href="/cvkbrno/transport">
{% trans "Transport" %}</a></p>
{% else %}
<p>&nbsp;</p>
{% endif %}
</div>
<div class="grid_2">
{% if thisclub_admin %}
<p><a class="button rosy" href="/cvkbrno/categories">
{% trans "Categories" %}</a></p>
{% else %}
<p>&nbsp;</p>
{% endif %}
</div>
<div class="grid_1 omega">
{% if user.is_authenticated %}
<p><a class="button blue" href="/cvkbrno/logout/">{% trans "logout" %}</a></p>
{% else %}
<p>&nbsp</p>
{% endif %}
</div>
</div>
<div class="clear"></div>
<div class="grid_12">
{% block message %}
{% if message %}
<p class="message">
{{ message }}
</p>
{% endif %}
{% if successmessage %}
<p class="successmessage">
{{ successmessage }}
</p>
{% endif %}
{% endblock %}
</div>
<div class="grid_12">
{% timezone "Europe/Paris" %}
{% block content %}{% endblock %}
{% endtimezone %}
</div>
<div class="clear"></div>
<div class="grid_12 omega" >
{% block footer %}
<p id="footer"
>{{ versionstring }}</p>
<div class="grid_3 prefix_1 suffix_1 alpha">
<p id="footer">&copy; Sander Roosendaal</p>
</div>
<div class="grid_2">
<p id="footer">About</p>
</div>
<div class="grid_1 prefix_2 suffix_2 omega">
<p id="footer">Contact</p>
</div>
{% endblock %}
</div>
</div>
<!-- end container -->
</body>
{% endlanguage %}
</html>

View File

@@ -1,53 +0,0 @@
{% 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&#283; na vod&#283;</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 %}