updated model
This commit is contained in:
@@ -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'
|
||||
|
||||
@@ -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>
|
||||
|
||||
@@ -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 %}
|
||||
|
||||
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 %}
|
||||
{% endblock %}
|
||||
|
||||
{% block challenges %}
|
||||
<a class="button gray" href="/rowers/challenges">Race</a>
|
||||
{% endblock %}
|
||||
|
||||
{% block content %}
|
||||
|
||||
{% endblock %}
|
||||
|
||||
Reference in New Issue
Block a user