Private
Public Access
1
0

race submit

This commit is contained in:
Sander Roosendaal
2018-10-02 21:51:26 +02:00
parent 256d1938f9
commit 161b636447
2 changed files with 37 additions and 30 deletions

View File

@@ -48,7 +48,13 @@
<ul> <ul>
{% for member in user|team_members %} {% for member in user|team_members %}
<a href="/rowers/u/{{ member.id }}/list-workouts/{{ startdate|date:"Y-m-d" }}/{{ enddate|date:"Y-m-d" }}"> <a href="/rowers/u/{{ member.id }}/list-workouts/{{ startdate|date:"Y-m-d" }}/{{ enddate|date:"Y-m-d" }}">
<i class="fas fa-user fa-fw"></i>&nbsp;{{ member.first_name }} {{ member.last_name }} <i class="fas fa-user fa-fw"></i>
{% if member == rower.user %}
&bull;
{% else %}
&nbsp;
{% endif %}
{{ member.first_name }} {{ member.last_name }}
</a> </a>
{% endfor %} {% endfor %}
</ul> </ul>

View File

@@ -1,4 +1,4 @@
{% extends "base.html" %} {% extends "newbase.html" %}
{% load staticfiles %} {% load staticfiles %}
{% load rowerfilters %} {% load rowerfilters %}
@@ -16,17 +16,13 @@
{% endblock %} {% endblock %}
{% block content %} {% block main %}
<div class="grid_12 alpha"> <h1>Submit Your Result for {{ race.name }}</h1>
<div class="grid_6 alpha">
<h1>Submit Your Result for {{ race.name }}</h1>
</div>
</div> <ul>
<li class="grid_2">
<form id="race_submit_form" <form id="race_submit_form"
method="post"> method="post">
<div class="grid_12 alpha">
<p>Select one of the following workouts that you rowed within the race window</p> <p>Select one of the following workouts that you rowed within the race window</p>
<table width="100%"> <table width="100%">
<tr> <tr>
@@ -41,11 +37,12 @@
{% endfor %} {% endfor %}
</tr> </tr>
</table> </table>
</div> <p>
<div class="grid_2 prefix_2 suffix_8">
{% csrf_token %} {% csrf_token %}
<input class="button green" type="submit" value="Submit"> <input class="button green" type="submit" value="Submit">
</div> </p>
</li>
</ul>
</form> </form>
@@ -53,3 +50,7 @@
{% block scripts %} {% block scripts %}
{% endblock %} {% endblock %}
{% block sidebar %}
{% include 'menu_racing.html' %}
{% endblock %}