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
+9
View File
@@ -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'
+2 -2
View File
@@ -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>
+11 -1
View File
@@ -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 %}
File diff suppressed because one or more lines are too long
File diff suppressed because it is too large Load Diff
File diff suppressed because one or more lines are too long
File diff suppressed because it is too large Load Diff
+4
View File
@@ -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 %}