Private
Public Access
1
0
Files
rowsandall/rowers/templates/indoorvirtualeventcreate.html
2018-12-07 17:06:57 +01:00

107 lines
2.9 KiB
HTML

{% extends "newbase.html" %}
{% load staticfiles %}
{% load rowerfilters %}
{% block title %}New Virtual Race{% endblock %}
{% block main %}
<h1>New Indoor 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>
</li>
<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 %}
<p>
<table class="djangoform">
{{ form.as_table }}
</table>
</p>
<p>
{% csrf_token %}
<input type="submit" value="Save">
</p>
</form>
</li>
<li class="grid_1">
<p>
<ul>
<p>All times are local times in the time zone you select</p>
<p>Adding a contact phone number and email is not mandatory, but we
strongly recommend it.</p>
<p>If your event has a registration closure deadline, participants
have to enter (and can withdraw) before the registration closure time.</p>
<p>Participants can submit results until the evaluation closure time.</p>
<p>Until one hour after evaluation closure time, the race organizer
can review and reject submitted results ("disqualification"). If
you as the race organizer intend to use this functionality, it
is strongly recommended that you fill out a contact email or phone
number.
</p>
<p>
If you require a screenshot of the PM monitor, do mention this
in the comment.
</p>
</ul>
</p>
</li>
</ul>
{% endblock %}
{% block scripts %}
<script type='text/javascript'
src='https://ajax.googleapis.com/ajax/libs/jquery/2.1.4/jquery.min.js'>
</script>
<script>
$( document ).ready(function() {
$('#id_registration_form').change(function(){
var value = $(this).val();
if (value == 'windowstart') {
$('#id_registration_closure_0').val($('#id_startdate').val());
$('#id_registration_closure_1').val($('#id_start_time').val());
} else if (value == 'windowend') {
$('#id_registration_closure_0').val($('#id_enddate').val());
$('#id_registration_closure_1').val($('#id_end_time').val());
} else if (value == 'deadline') {
$('#id_registration_closure_0').val($('#id_evaluation_closure_0').val());
$('#id_registration_closure_1').val($('#id_evaluation_closure_1').val());
}
});
});
</script>
{% endblock %}
{% block sidebar %}
{% include 'menu_racing.html' %}
{% endblock %}