Private
Public Access
1
0

list course view

This commit is contained in:
Sander Roosendaal
2018-02-19 17:28:59 +01:00
parent 753673a0ce
commit 78c488efe7
7 changed files with 234 additions and 5 deletions

View File

@@ -0,0 +1 @@
E408191@CZ27LT9RCGN72.9092:1519040360

View File

@@ -0,0 +1,24 @@
{% extends "base.html" %}
{% load staticfiles %}
{% load rowerfilters %}
{% block scripts %}
{% include "monitorjobs.html" %}
{% endblock %}
{% block title %}{{ course.name }} {% endblock %}
{% block og_title %}{{ course.name }} {% endblock %}
{% block content %}
<div class="grid_12 alpha">
<h1>{{ course.name }}</h1>
{{ mapdiv|safe }}
{{ mapscript|safe }}
</div>
{% endblock %}

View File

@@ -32,8 +32,14 @@
</thead>
<tbody>
{% for course in courses %}
<td> {{ course.country }} </td>
<td> {{ course.name }} </td>
<td> {{ course.country }} </td>
<td>
{% if course.manager.user == user %}
<a href="/rowers/courses/{{ course.id }}/edit">{{ course.name }}</a>
{% else %}
<a href="/rowers/courses/{{ course.id }}">{{ course.name }}</a>
{% endif %}
</td>
</tr>