updated model
This commit is contained in:
@@ -1056,6 +1056,15 @@ class PlannedSession(models.Model):
|
|||||||
|
|
||||||
super(PlannedSession,self).save(*args, **kwargs)
|
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
|
# Date input utility
|
||||||
class DateInput(forms.DateInput):
|
class DateInput(forms.DateInput):
|
||||||
input_type = 'date'
|
input_type = 'date'
|
||||||
|
|||||||
@@ -63,11 +63,11 @@
|
|||||||
</table>
|
</table>
|
||||||
{% csrf_token %}
|
{% csrf_token %}
|
||||||
</div>
|
</div>
|
||||||
<div class="grid_2">
|
<div class="grid_2 alpha">
|
||||||
<input name='daterange' class="button green" type="submit" value="Submit"> </form>
|
<input name='daterange' class="button green" type="submit" value="Submit"> </form>
|
||||||
</div>
|
</div>
|
||||||
{% if user.is_authenticated and user|is_manager %}
|
{% 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">
|
<button class="grid_2 alpha button green small dropbtn">
|
||||||
{{ rower.user.first_name }} {{ rower.user.last_name }}
|
{{ rower.user.first_name }} {{ rower.user.last_name }}
|
||||||
</button>
|
</button>
|
||||||
|
|||||||
@@ -52,7 +52,7 @@
|
|||||||
<div id="right" class="grid_6 omega">
|
<div id="right" class="grid_6 omega">
|
||||||
{% if plannedsession.sessiontype == 'test' or plannedsession.sessiontype == 'coursetest' %}
|
{% if plannedsession.sessiontype == 'test' or plannedsession.sessiontype == 'coursetest' %}
|
||||||
<h1>Ranking</h1>
|
<h1>Ranking</h1>
|
||||||
<table class="listtable shortpadded" width="80%">
|
<table id="rankingtable" class="listtable shortpadded tablesorter" width="80%">
|
||||||
<thead>
|
<thead>
|
||||||
<tr>
|
<tr>
|
||||||
<th>Nr</th>
|
<th>Nr</th>
|
||||||
@@ -158,4 +158,14 @@
|
|||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
||||||
{% block scripts %}
|
{% 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 %}
|
{% endblock %}
|
||||||
|
|||||||
1
static/admin/js/jquery.tablesorter.min.js
vendored
Normal file
1
static/admin/js/jquery.tablesorter.min.js
vendored
Normal file
File diff suppressed because one or more lines are too long
3192
static/admin/js/jquery.tablesorter.widgets.js
Normal file
3192
static/admin/js/jquery.tablesorter.widgets.js
Normal file
File diff suppressed because it is too large
Load Diff
1
static/js/jquery.tablesorter.min.js
vendored
Normal file
1
static/js/jquery.tablesorter.min.js
vendored
Normal file
File diff suppressed because one or more lines are too long
3192
static/js/jquery.tablesorter.widgets.js
Normal file
3192
static/js/jquery.tablesorter.widgets.js
Normal file
File diff suppressed because it is too large
Load Diff
@@ -39,6 +39,10 @@
|
|||||||
{% endif %}
|
{% endif %}
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
||||||
|
{% block challenges %}
|
||||||
|
<a class="button gray" href="/rowers/challenges">Race</a>
|
||||||
|
{% endblock %}
|
||||||
|
|
||||||
{% block content %}
|
{% block content %}
|
||||||
|
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|||||||
Reference in New Issue
Block a user