Private
Public Access
1
0

race edit form

This commit is contained in:
Sander Roosendaal
2018-04-17 16:45:21 +02:00
parent 2c979bf27b
commit e62e20a091
6 changed files with 151 additions and 2 deletions

View File

@@ -10,6 +10,12 @@
<h1>{{ race.name }}</h1>
{% if request.user == race.manager %}
<div class="grid_2 alpha">
<p>
<a href="/rowers/virtualevent/{{ race.id }}/edit" class="button gray small">Edit</a>
</p>
{% endif %}
</div>
@@ -40,6 +46,9 @@
<tr>
<th>Contact Phone</th><td>{{ race.contact_phone }}</td>
</tr>
<tr>
<th>Comment</th><td>{{ race.comment }}</td>
</tr>
</tbody>
</table>
</p>

View File

@@ -0,0 +1,49 @@
{% extends "base.html" %}
{% load staticfiles %}
{% load rowerfilters %}
{% block title %}Edit Virtual Race{% endblock %}
{% block content %}
<div class="grid_12 alpha">
<h1>Edit Race {{ race.name }}</h1>
<div class="grid_8 alpha">
<form enctype="multipart/form-data" action="{{ formloc }}" method="post">
{% if form.errors %}
<p style="color: red;">
Please correct the error{{ form.errors|pluralize }} below.
</p>
{% endif %}
<table>
{{ 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>
<div class="grid_4 omega">
<p>
<ul>
<li>All times are local times in the race course time zone</li>
<li>Adding a contact phone number and email is not mandatory, but we
strongly recommend it.</li>
<li>If your event has a registration closure deadline, participants
have to enter (and can withdraw) before the registration closure time.</li>
<li>Participants can submit results until the evaluation closure time.</li>
</ul>
</p>
</div>
</div>
{% endblock %}
{% block scripts %}
{% endblock %}