Uploading files
This commit is contained in:
31
cvkbrno/templates/cvkbrno_boat_add_form.html
Normal file
31
cvkbrno/templates/cvkbrno_boat_add_form.html
Normal file
@@ -0,0 +1,31 @@
|
||||
{% 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 class="button green" type="submit" value="{% trans 'Save' %}">
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
|
||||
{% endblock %}
|
||||
31
cvkbrno/templates/cvkbrno_boat_add_form.html~
Normal file
31
cvkbrno/templates/cvkbrno_boat_add_form.html~
Normal file
@@ -0,0 +1,31 @@
|
||||
{% 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 %}
|
||||
24
cvkbrno/templates/cvkbrno_boat_delete_confirm.html
Normal file
24
cvkbrno/templates/cvkbrno_boat_delete_confirm.html
Normal file
@@ -0,0 +1,24 @@
|
||||
{% extends "cvkbrnobase.html" %}
|
||||
{% load i18n %}
|
||||
{% load staticfiles %}
|
||||
{% load rowerfilters %}
|
||||
|
||||
|
||||
{% block content %}
|
||||
<div id="workouts" class="grid_6 alpha">
|
||||
<div class="grid_2 suffix_4 alpha">
|
||||
<p>
|
||||
<a class="button small red" 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 %}
|
||||
25
cvkbrno/templates/cvkbrno_boat_delete_confirm.html~
Normal file
25
cvkbrno/templates/cvkbrno_boat_delete_confirm.html~
Normal file
@@ -0,0 +1,25 @@
|
||||
{% 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 %}
|
||||
66
cvkbrno/templates/cvkbrno_boat_edit_form.html
Normal file
66
cvkbrno/templates/cvkbrno_boat_edit_form.html
Normal file
@@ -0,0 +1,66 @@
|
||||
{% 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>
|
||||
|
||||
</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 %}
|
||||
66
cvkbrno/templates/cvkbrno_boat_edit_form.html~
Normal file
66
cvkbrno/templates/cvkbrno_boat_edit_form.html~
Normal file
@@ -0,0 +1,66 @@
|
||||
{% 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>
|
||||
|
||||
</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 %}
|
||||
80
cvkbrno/templates/cvkbrno_boats_admin.html
Normal file
80
cvkbrno/templates/cvkbrno_boats_admin.html
Normal file
@@ -0,0 +1,80 @@
|
||||
{% 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>
|
||||
|
||||
</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><a href="/cvkbrno/outing/{{ outing.id }}">{% trans outing.status %}</a></td>
|
||||
</tr>
|
||||
{% endfor %}
|
||||
<tbody>
|
||||
</table>
|
||||
|
||||
|
||||
</div>
|
||||
{% endblock %}
|
||||
80
cvkbrno/templates/cvkbrno_boats_admin.html~
Normal file
80
cvkbrno/templates/cvkbrno_boats_admin.html~
Normal file
@@ -0,0 +1,80 @@
|
||||
{% 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>
|
||||
|
||||
</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 %}
|
||||
45
cvkbrno/templates/cvkbrno_categories_admin.html
Normal file
45
cvkbrno/templates/cvkbrno_categories_admin.html
Normal file
@@ -0,0 +1,45 @@
|
||||
{% 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>
|
||||
<a class="button small green" 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 %}
|
||||
45
cvkbrno/templates/cvkbrno_categories_admin.html~
Normal file
45
cvkbrno/templates/cvkbrno_categories_admin.html~
Normal file
@@ -0,0 +1,45 @@
|
||||
{% 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 %}
|
||||
24
cvkbrno/templates/cvkbrno_categories_delete_confirm.html
Normal file
24
cvkbrno/templates/cvkbrno_categories_delete_confirm.html
Normal file
@@ -0,0 +1,24 @@
|
||||
{% 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>
|
||||
<a class="button red small" 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 %}
|
||||
24
cvkbrno/templates/cvkbrno_categories_delete_confirm.html~
Normal file
24
cvkbrno/templates/cvkbrno_categories_delete_confirm.html~
Normal file
@@ -0,0 +1,24 @@
|
||||
{% 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 %}
|
||||
37
cvkbrno/templates/cvkbrno_categories_edit_form.html
Normal file
37
cvkbrno/templates/cvkbrno_categories_edit_form.html
Normal file
@@ -0,0 +1,37 @@
|
||||
{% 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>
|
||||
<a class="button red small" 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 class="button green" type="submit" value="{% trans 'Save' %}">
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
|
||||
{% endblock %}
|
||||
37
cvkbrno/templates/cvkbrno_categories_edit_form.html~
Normal file
37
cvkbrno/templates/cvkbrno_categories_edit_form.html~
Normal file
@@ -0,0 +1,37 @@
|
||||
{% 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 %}
|
||||
31
cvkbrno/templates/cvkbrno_category_add_form.html
Normal file
31
cvkbrno/templates/cvkbrno_category_add_form.html
Normal file
@@ -0,0 +1,31 @@
|
||||
{% 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 class="button green" type="submit" value="Save">
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
|
||||
{% endblock %}
|
||||
31
cvkbrno/templates/cvkbrno_category_add_form.html~
Normal file
31
cvkbrno/templates/cvkbrno_category_add_form.html~
Normal file
@@ -0,0 +1,31 @@
|
||||
{% 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 %}
|
||||
81
cvkbrno/templates/cvkbrno_login.html
Normal file
81
cvkbrno/templates/cvkbrno_login.html
Normal file
@@ -0,0 +1,81 @@
|
||||
{% 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> </p>
|
||||
<td>
|
||||
<button class="button green" 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 %}
|
||||
81
cvkbrno/templates/cvkbrno_login.html~
Normal file
81
cvkbrno/templates/cvkbrno_login.html~
Normal file
@@ -0,0 +1,81 @@
|
||||
{% 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> </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 %}
|
||||
33
cvkbrno/templates/cvkbrno_member_add_form.html
Normal file
33
cvkbrno/templates/cvkbrno_member_add_form.html
Normal file
@@ -0,0 +1,33 @@
|
||||
{% 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 class="button green" type="submit" value="{% trans 'Save' %}">
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
|
||||
{% endblock %}
|
||||
33
cvkbrno/templates/cvkbrno_member_add_form.html~
Normal file
33
cvkbrno/templates/cvkbrno_member_add_form.html~
Normal file
@@ -0,0 +1,33 @@
|
||||
{% 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 %}
|
||||
39
cvkbrno/templates/cvkbrno_member_edit_form.html
Normal file
39
cvkbrno/templates/cvkbrno_member_edit_form.html
Normal file
@@ -0,0 +1,39 @@
|
||||
{% 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>
|
||||
|
||||
<p>{% trans "username" %}: {{ username }}</p>
|
||||
|
||||
<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 %}
|
||||
38
cvkbrno/templates/cvkbrno_member_edit_form.html~
Normal file
38
cvkbrno/templates/cvkbrno_member_edit_form.html~
Normal file
@@ -0,0 +1,38 @@
|
||||
{% 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 %}
|
||||
53
cvkbrno/templates/cvkbrno_members_admin.html
Normal file
53
cvkbrno/templates/cvkbrno_members_admin.html
Normal file
@@ -0,0 +1,53 @@
|
||||
{% 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 %}
|
||||
53
cvkbrno/templates/cvkbrno_members_admin.html~
Normal file
53
cvkbrno/templates/cvkbrno_members_admin.html~
Normal file
@@ -0,0 +1,53 @@
|
||||
{% 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 %}
|
||||
24
cvkbrno/templates/cvkbrno_members_delete_confirm.html
Normal file
24
cvkbrno/templates/cvkbrno_members_delete_confirm.html
Normal file
@@ -0,0 +1,24 @@
|
||||
{% 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>
|
||||
<a class="button red small" 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 %}
|
||||
24
cvkbrno/templates/cvkbrno_members_delete_confirm.html~
Normal file
24
cvkbrno/templates/cvkbrno_members_delete_confirm.html~
Normal file
@@ -0,0 +1,24 @@
|
||||
{% 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 %}
|
||||
31
cvkbrno/templates/cvkbrno_memberswork_add_form.html
Normal file
31
cvkbrno/templates/cvkbrno_memberswork_add_form.html
Normal file
@@ -0,0 +1,31 @@
|
||||
{% extends "cvkbrnobase.html" %}
|
||||
{% load i18n %}
|
||||
{% load staticfiles %}
|
||||
{% load rowerfilters %}
|
||||
|
||||
{% block title %}{% trans "Create Members Work" %}{% 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 Members Work" %}</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 %}
|
||||
55
cvkbrno/templates/cvkbrno_memberswork_admin.html
Normal file
55
cvkbrno/templates/cvkbrno_memberswork_admin.html
Normal file
@@ -0,0 +1,55 @@
|
||||
{% extends "cvkbrnobase.html" %}
|
||||
{% load i18n %}
|
||||
{% load staticfiles %}
|
||||
{% load rowerfilters %}
|
||||
|
||||
{% block title %}{% trans "Members Work 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 Work Admin" %}</h1>
|
||||
|
||||
|
||||
<div id="addboat" class="grid_2 suffix_4 alpha">
|
||||
<p>
|
||||
<a class="button green small" href="/cvkbrno/memberswork/add">{% trans "Add Members Work" %}</a>
|
||||
</p>
|
||||
</div>
|
||||
|
||||
{% if theworks %}
|
||||
|
||||
<table class="listtable" width=100%>
|
||||
<thead>
|
||||
<tr>
|
||||
<th>{% trans "Date" %}</th>
|
||||
<th>{% trans "Name" %}</th>
|
||||
<th>{% trans "Edit" %}</th>
|
||||
<th>{% trans "Complete" %}</th>
|
||||
<th>{% trans "Delete" %}</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
{% for work in theworks %}
|
||||
<tr>
|
||||
<td>{{ work.date }}</td>
|
||||
<td>{{ work.name }}</td>
|
||||
<td><a href="/cvkbrno/memberswork/{{ work.id }}/edit">E</a></td>
|
||||
<td><a href="/cvkbrno/memberswork/{{ work.id }}/complete">C</a></td>
|
||||
<td><a href="/cvkbrno/memberswork/{{ work.id }}/delete">D</a></td>
|
||||
</tr>
|
||||
{% endfor %}
|
||||
<tbody>
|
||||
</table>
|
||||
|
||||
{% endif %}
|
||||
{% csrf_token %}
|
||||
</div>
|
||||
|
||||
{% endblock %}
|
||||
53
cvkbrno/templates/cvkbrno_memberswork_admin.html~
Normal file
53
cvkbrno/templates/cvkbrno_memberswork_admin.html~
Normal file
@@ -0,0 +1,53 @@
|
||||
{% 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 %}
|
||||
31
cvkbrno/templates/cvkbrno_memberwork_edit_form.html
Normal file
31
cvkbrno/templates/cvkbrno_memberwork_edit_form.html
Normal file
@@ -0,0 +1,31 @@
|
||||
{% 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">
|
||||
|
||||
{% if form.errors %}
|
||||
<p style="color: red;">
|
||||
Please correct the error{{ form.errors|pluralize }} below.
|
||||
</p>
|
||||
{% endif %}
|
||||
|
||||
<h1>{% trans "Edit Member Work" %}</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>
|
||||
|
||||
{% endblock %}
|
||||
66
cvkbrno/templates/cvkbrno_memberwork_edit_form.html~
Normal file
66
cvkbrno/templates/cvkbrno_memberwork_edit_form.html~
Normal file
@@ -0,0 +1,66 @@
|
||||
{% 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>
|
||||
|
||||
</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 %}
|
||||
49
cvkbrno/templates/cvkbrno_meterboard.html
Normal file
49
cvkbrno/templates/cvkbrno_meterboard.html
Normal file
@@ -0,0 +1,49 @@
|
||||
{% extends "cvkbrnobase.html" %}
|
||||
{% load i18n %}
|
||||
{% load staticfiles %}
|
||||
{% load rowerfilters %}
|
||||
|
||||
{% block title %}{% trans "Meterboard" %}{% endblock %}
|
||||
|
||||
{% block content %}
|
||||
<div class="grid_12 alpha">
|
||||
<div class="grid_2 prefix_3 alpha">
|
||||
<p>
|
||||
<a class="button gray small" href="/cvkbrno/meterboard?sortby=year">{% trans "by year" %}</a>
|
||||
</p>
|
||||
</div>
|
||||
<div class="grid_2">
|
||||
<p>
|
||||
<a class="button gray small" href="/cvkbrno/meterboard?sortby=month">{% trans "by month" %}</a>
|
||||
</p>
|
||||
</div>
|
||||
<div class="grid_2 suffix_3 omega">
|
||||
<p>
|
||||
<a class="button gray small" href="/cvkbrno/meterboard?sortby=week">{% trans "by week" %}</a>
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<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 "Meterboard Boats" %}</h1>
|
||||
|
||||
|
||||
{{ datab|safe }}
|
||||
|
||||
</div>
|
||||
{% endblock %}
|
||||
50
cvkbrno/templates/cvkbrno_meterboard.html~
Normal file
50
cvkbrno/templates/cvkbrno_meterboard.html~
Normal file
@@ -0,0 +1,50 @@
|
||||
{% 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 %}
|
||||
48
cvkbrno/templates/cvkbrno_outing_admin.html
Normal file
48
cvkbrno/templates/cvkbrno_outing_admin.html
Normal file
@@ -0,0 +1,48 @@
|
||||
{% extends "cvkbrnobase.html" %}
|
||||
{% load i18n %}
|
||||
{% load staticfiles %}
|
||||
{% load rowerfilters %}
|
||||
{% load filter %}
|
||||
{% load tz %}
|
||||
|
||||
{% block title %}{% trans "View Outing" %}{% endblock %}
|
||||
|
||||
{% block content %}
|
||||
{% localtime on %}
|
||||
<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 "View Outing" %}</h1>
|
||||
|
||||
<table width=100%>
|
||||
<tbody>
|
||||
<tr>
|
||||
<th>{% trans "Start" %}</th><td>{{ outing.starttime }}</td>
|
||||
</tr><tr>
|
||||
<th>{% trans "End" %}</th><td>{{ outing.endtime }}</td>
|
||||
</tr><tr>
|
||||
<th>{% trans "Boat" %}</th><td>{{ outing.boat.boatname }}</td>
|
||||
</tr><tr>
|
||||
<th>{% trans "Rower" %}</th><td>{{ outing.rower.user.first_name }} {{ outing.rower.user.last_name }}</td>
|
||||
</tr><tr>
|
||||
{% for otherrower in outing.otherrowers.all %}
|
||||
<th>{{ forloop.counter|filteriternum }}</th><td>{{ otherrower.user.first_name}} {{ otherrower.user.last_name }}</td></tr><tr>
|
||||
{% endfor %}
|
||||
<th>{% trans "Status" %}</th><td>{% trans outing.status %}</td>
|
||||
</tr><tr>
|
||||
<th>{% trans "Distance (km)" %}</th><td>{{ outing.distance }}</td>
|
||||
</tr><tr>
|
||||
<th>{% trans "Comment" %}</th><td>{{ outing.comment }}</td>
|
||||
<tbody>
|
||||
</table>
|
||||
|
||||
|
||||
</div>
|
||||
{% endlocaltime %}
|
||||
|
||||
{% endblock %}
|
||||
66
cvkbrno/templates/cvkbrno_outing_admin.html~
Normal file
66
cvkbrno/templates/cvkbrno_outing_admin.html~
Normal file
@@ -0,0 +1,66 @@
|
||||
{% 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>
|
||||
|
||||
</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 %}
|
||||
40
cvkbrno/templates/cvkbrno_outing_closeform.html
Normal file
40
cvkbrno/templates/cvkbrno_outing_closeform.html
Normal file
@@ -0,0 +1,40 @@
|
||||
{% 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 class="button green" type="submit" value="{% trans 'Save' %}">
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
|
||||
{% endblock %}
|
||||
40
cvkbrno/templates/cvkbrno_outing_closeform.html~
Normal file
40
cvkbrno/templates/cvkbrno_outing_closeform.html~
Normal file
@@ -0,0 +1,40 @@
|
||||
{% 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 %}
|
||||
182
cvkbrno/templates/cvkbrno_outing_form.html
Normal file
182
cvkbrno/templates/cvkbrno_outing_form.html
Normal file
@@ -0,0 +1,182 @@
|
||||
{% 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> </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> </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 %}
|
||||
182
cvkbrno/templates/cvkbrno_outing_form.html~
Normal file
182
cvkbrno/templates/cvkbrno_outing_form.html~
Normal file
@@ -0,0 +1,182 @@
|
||||
{% 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> </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> </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 %}
|
||||
31
cvkbrno/templates/cvkbrno_races_form.html
Normal file
31
cvkbrno/templates/cvkbrno_races_form.html
Normal file
@@ -0,0 +1,31 @@
|
||||
{% 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 class="button green" type="submit" value="Save">
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
|
||||
{% endblock %}
|
||||
31
cvkbrno/templates/cvkbrno_races_form.html~
Normal file
31
cvkbrno/templates/cvkbrno_races_form.html~
Normal file
@@ -0,0 +1,31 @@
|
||||
{% 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 %}
|
||||
51
cvkbrno/templates/cvkbrno_races_list.html
Normal file
51
cvkbrno/templates/cvkbrno_races_list.html
Normal file
@@ -0,0 +1,51 @@
|
||||
{% 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>
|
||||
{% load tz %}
|
||||
{% localtime on %}
|
||||
<table class="listtable" width=100%>
|
||||
<thead>
|
||||
<tr>
|
||||
<th>{% trans "Name" %}</th>
|
||||
<th>{% trans "Start Date" %}</th>
|
||||
<th>{% trans "End Date" %}</th>
|
||||
<th>{% trans "Delete" %}</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
{% for race in races %}
|
||||
<tr>
|
||||
<td>{{ race.name }}</td>
|
||||
<td>{{ race.startdatetime }}</td>
|
||||
<td>{{ race.enddatetime }}</td>
|
||||
<td><a href="/cvkbrno/transport/{{ race.id }}/delete">D</a></td>
|
||||
</tr>
|
||||
{% endfor %}
|
||||
<tbody>
|
||||
</table>
|
||||
{% endlocaltime %}
|
||||
{% csrf_token %}
|
||||
</div>
|
||||
|
||||
{% endblock %}
|
||||
45
cvkbrno/templates/cvkbrno_races_list.html~
Normal file
45
cvkbrno/templates/cvkbrno_races_list.html~
Normal file
@@ -0,0 +1,45 @@
|
||||
{% 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 %}
|
||||
77
cvkbrno/templates/cvkbrno_reservation_form.html
Normal file
77
cvkbrno/templates/cvkbrno_reservation_form.html
Normal file
@@ -0,0 +1,77 @@
|
||||
{% extends "cvkbrnobase.html" %}
|
||||
{% load i18n %}
|
||||
{% load staticfiles %}
|
||||
{% load rowerfilters %}
|
||||
{% load tz %}
|
||||
|
||||
{% block title %}{% trans "Make a Reservation" %}{% endblock %}
|
||||
|
||||
{% block content %}
|
||||
{% localtime on %}
|
||||
<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 ' }} </td>
|
||||
<td> {{ outing.starttime |time:'H:i ' }} </td>
|
||||
<td> {{ outing.endtime |time:'H:i '}} </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> </td<
|
||||
{% endif %}
|
||||
<td>
|
||||
</tr>
|
||||
{% endfor %}
|
||||
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
</div>
|
||||
|
||||
{% endlocaltime %}
|
||||
{% endblock %}
|
||||
74
cvkbrno/templates/cvkbrno_reservation_form.html~
Normal file
74
cvkbrno/templates/cvkbrno_reservation_form.html~
Normal file
@@ -0,0 +1,74 @@
|
||||
{% 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 ' }} </td>
|
||||
<td> {{ outing.starttime |time:'H:i ' }} </td>
|
||||
<td> {{ outing.endtime |time:'H:i '}} </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> </td<
|
||||
{% endif %}
|
||||
<td>
|
||||
</tr>
|
||||
{% endfor %}
|
||||
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
</div>
|
||||
|
||||
{% endblock %}
|
||||
24
cvkbrno/templates/cvkbrno_setlanguage.html
Normal file
24
cvkbrno/templates/cvkbrno_setlanguage.html
Normal file
@@ -0,0 +1,24 @@
|
||||
{% 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 class="button green" type="submit" value="Go" />
|
||||
</form>
|
||||
{% endblock %}
|
||||
24
cvkbrno/templates/cvkbrno_setlanguage.html~
Normal file
24
cvkbrno/templates/cvkbrno_setlanguage.html~
Normal file
@@ -0,0 +1,24 @@
|
||||
{% 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 %}
|
||||
193
cvkbrno/templates/cvkbrnobase.html
Normal file
193
cvkbrno/templates/cvkbrnobase.html
Normal file
@@ -0,0 +1,193 @@
|
||||
<!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/base"><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> </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> </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> </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> </p>
|
||||
{% endif %}
|
||||
</div>
|
||||
<div class="grid_1">
|
||||
{% if thisclub_admin %}
|
||||
<p><a class="button rosy" href="/cvkbrno/boats">
|
||||
{% trans "Boats" %}</a></p>
|
||||
{% else %}
|
||||
<p> </p>
|
||||
{% endif %}
|
||||
</div>
|
||||
<div class="grid_1">
|
||||
{% if thisclub_admin %}
|
||||
<p><a class="button rosy" href="/cvkbrno/members">
|
||||
{% trans "Members" %}</a></p>
|
||||
{% else %}
|
||||
<p> </p>
|
||||
{% endif %}
|
||||
</div>
|
||||
<div class="grid_1">
|
||||
{% if thisclub_admin %}
|
||||
<p><a class="button rosy" href="/cvkbrno/transport">
|
||||
{% trans "Transport" %}</a></p>
|
||||
{% else %}
|
||||
<p> </p>
|
||||
{% endif %}
|
||||
</div>
|
||||
<div class="grid_2">
|
||||
{% if thisclub_admin %}
|
||||
<p><a class="button rosy" href="/cvkbrno/categories">
|
||||
{% trans "Categories" %}</a></p>
|
||||
{% else %}
|
||||
<p> </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> </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">© 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>
|
||||
193
cvkbrno/templates/cvkbrnobase.html~
Normal file
193
cvkbrno/templates/cvkbrnobase.html~
Normal file
@@ -0,0 +1,193 @@
|
||||
<!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> </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> </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> </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> </p>
|
||||
{% endif %}
|
||||
</div>
|
||||
<div class="grid_1">
|
||||
{% if thisclub_admin %}
|
||||
<p><a class="button rosy" href="/cvkbrno/boats">
|
||||
{% trans "Boats" %}</a></p>
|
||||
{% else %}
|
||||
<p> </p>
|
||||
{% endif %}
|
||||
</div>
|
||||
<div class="grid_1">
|
||||
{% if thisclub_admin %}
|
||||
<p><a class="button rosy" href="/cvkbrno/members">
|
||||
{% trans "Members" %}</a></p>
|
||||
{% else %}
|
||||
<p> </p>
|
||||
{% endif %}
|
||||
</div>
|
||||
<div class="grid_1">
|
||||
{% if thisclub_admin %}
|
||||
<p><a class="button rosy" href="/cvkbrno/transport">
|
||||
{% trans "Transport" %}</a></p>
|
||||
{% else %}
|
||||
<p> </p>
|
||||
{% endif %}
|
||||
</div>
|
||||
<div class="grid_2">
|
||||
{% if thisclub_admin %}
|
||||
<p><a class="button rosy" href="/cvkbrno/categories">
|
||||
{% trans "Categories" %}</a></p>
|
||||
{% else %}
|
||||
<p> </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> </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">© 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>
|
||||
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