Private
Public Access
1
0

courses functionality

This commit is contained in:
Sander Roosendaal
2018-02-21 12:57:46 +01:00
parent d3e3925625
commit 289d3fc2cc
13 changed files with 322 additions and 62 deletions

View File

@@ -9,21 +9,47 @@
{% block og_title %}{{ course.name }} {% endblock %}
{% block content %}
<div class="grid_12 alpha">
{% if nosessions %}
<div class="grid_2 alpha">
{% if nosessions %}
<a class="button small red" href="/rowers/courses/{{ course.id }}/delete">Delete</a>
</div>
{% else %}
&nbsp;
{% endif %}
</div>
<div class="grid_2">
{% if course.manager == rower %}
<a class="button small gray" href="/rowers/courses/{{ course.id }}/edit">Edit</a>
{% else %}
&nbsp;
{% endif %}
</div>
<div class="grid_2">
<a class="button small gray" href="/rowers/list-courses">Courses</a>
</div>
</div>
<div class="grid_12 alpha">
<h1>{{ course.name }}</h1>
<div class="grid_6 alpha">
<table class="listtable shortpadded" width="100%">
<tr>
<th>Name</th><td>{{ course.name }}</td>
</tr>
<tr>
<th>Country</th><td>{{ course.country }}</td>
</tr>
<tr>
<th>Notes</th><td>{{ course.notes }}</td>
</tr>
</table>
</div>
<div class="grid_6 omega">
{{ mapdiv|safe }}
{{ mapscript|safe }}
</div>
</div>