Private
Public Access
1
0

updated model

This commit is contained in:
Sander Roosendaal
2018-04-11 17:16:32 +02:00
parent ea526d1ae0
commit 97cce15d68
8 changed files with 6412 additions and 3 deletions

View File

@@ -1056,6 +1056,15 @@ class PlannedSession(models.Model):
super(PlannedSession,self).save(*args, **kwargs)
class PopUpRegatta(PlannedSession):
has_registration = models.BooleanField(default=False)
registration_closure = models.DateTimeField(blank=True,null=True)
evaluation_closure = models.DateTimeField(blank=True,null=True)
start_time = models.TimeField(blank=True,null=True)
end_time = models.TimeField(blank=True,null=True)
# Date input utility
class DateInput(forms.DateInput):
input_type = 'date'

View File

@@ -63,11 +63,11 @@
</table>
{% csrf_token %}
</div>
<div class="grid_2">
<div class="grid_2 alpha">
<input name='daterange' class="button green" type="submit" value="Submit"> </form>
</div>
{% if user.is_authenticated and user|is_manager %}
<div class="grid_2 omega dropdown">
<div class="grid_2 dropdown">
<button class="grid_2 alpha button green small dropbtn">
{{ rower.user.first_name }} {{ rower.user.last_name }}
</button>

View File

@@ -52,7 +52,7 @@
<div id="right" class="grid_6 omega">
{% if plannedsession.sessiontype == 'test' or plannedsession.sessiontype == 'coursetest' %}
<h1>Ranking</h1>
<table class="listtable shortpadded" width="80%">
<table id="rankingtable" class="listtable shortpadded tablesorter" width="80%">
<thead>
<tr>
<th>Nr</th>
@@ -158,4 +158,14 @@
{% endblock %}
{% block scripts %}
<script type="text/javascript" src="/static/admin/js/jquery.min.js"></script>
<script type="text/javascript" src="/static/admin/js/jquery.tablesorter.min.js"></script>
<script type="text/javascript" src="/static/admin/js/jquery.tablesorter.widgets.js"></script>
<script>
$( document ).ready(function() {
$("#rankingtable").tablesorter();
});
</script>
{% endblock %}

File diff suppressed because one or more lines are too long

File diff suppressed because it is too large Load Diff

1
static/js/jquery.tablesorter.min.js vendored Normal file

File diff suppressed because one or more lines are too long

File diff suppressed because it is too large Load Diff

View File

@@ -39,6 +39,10 @@
{% endif %}
{% endblock %}
{% block challenges %}
<a class="button gray" href="/rowers/challenges">Race</a>
{% endblock %}
{% block content %}
{% endblock %}