Private
Public Access
1
0

virtual event create - urls.py line 145

This commit is contained in:
Sander Roosendaal
2018-09-29 11:08:42 +02:00
parent aa5921fa58
commit 2350de850e
4 changed files with 31 additions and 20 deletions

View File

@@ -6,7 +6,7 @@
</a>
</li>
<li id="races-new">
<a href="/rowers/virtualevents/create">
<a href="/rowers/virtualevent/create">
<i class="far fa-flag fa-fw"></i>&nbsp;New Race
</a>
</li>

View File

@@ -1,37 +1,42 @@
{% extends "base.html" %}
{% extends "newbase.html" %}
{% load staticfiles %}
{% load rowerfilters %}
{% block title %}New Virtual Race{% endblock %}
{% block content %}
{% block main %}
<div class="grid_12 alpha">
<h1>New Virtual Race</h1>
<h1>New Virtual Race</h1>
<ul class="main-content">
<li class="grid_4">
<p>With this form, you can create a new virtual race. After you submit
the form, the race is created and will be visible to all users. From
that moment, only the site admin can delete the race (admin@rowsandall.com). You can still edit the race until the start of the race window. </p>
that moment, only the site admin can delete the race
(admin@rowsandall.com). You can still edit the race until
the start of the race window.
</p>
</li>
<div class="grid_8 alpha">
<li class="grid_3">
<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">
<p>
<table>
{{ form.as_table }}
</table>
</p>
<p>
{% csrf_token %}
<input class="button green" type="submit" value="Save">
</div>
</form>
</div>
<div class="grid_4 omega">
</p>
</form>
</li>
<li class="grid_1">
<p>
<ul>
<li>All times are local times in the race course time zone</li>
@@ -42,11 +47,15 @@
<li>Participants can submit results until the evaluation closure time.</li>
</ul>
</p>
</div>
</div>
</li>
</ul>
{% endblock %}
{% block scripts %}
{% endblock %}
{% block sidebar %}
{% include 'menu_racing.html' %}
{% endblock %}

View File

@@ -14121,6 +14121,7 @@ def virtualevent_create_view(request):
{
'form':racecreateform,
'rower':r,
'active':'nav-racing',
})