Private
Public Access
1
0

all plan pages now have date range form

This commit is contained in:
Sander Roosendaal
2018-11-09 14:07:18 +01:00
parent 4955ee8692
commit 2f705d0aea
11 changed files with 152 additions and 26 deletions

View File

@@ -0,0 +1 @@
E408191@CZ27LT9RCGN72.15176:1541580768

View File

@@ -8,6 +8,16 @@
<h1>Create Sessions for {{ rower.user.first_name }} {{ rower.user.last_name }}</h1>
<ul class="main-content">
<li>
<p>
<form enctype="multipart/form-data" method="get">
<table>
{{ dateform.as_table }}
</table>
<input type="Submit" value="Set Date Range">
</form>
</p>
</li>
<li class="grid_4">
<p>
On this page, you can create and edit sessions for an entire time

View File

@@ -8,8 +8,34 @@
<h1>Create Sessions for {{ rower.user.first_name }} {{ rower.user.last_name }}</h1>
<p>{{ timeperiod }}</p>
<p>
<form enctype="multipart/form-data" method="get">
<table>
{{ dateform.as_table }}
</table>
<input type="Submit" value="Set Date Range">
</form>
</p>
<ul class="main-content">
<li class="grid_2">
<h1>New Session</h1>
<form enctype="multipart/form-data" action=""
method="post">
{% if form.errors %}
<p style="color: red;">
Please correct the error{{ form.errors|pluralize }} below.
</p>
{% endif %}
<table>
{{ form.as_table }}
</table>
{% csrf_token %}
<input class="button green" type="submit" value="Save">
</form>
<div class="padded" id="id_guidance">
</li>
<li class="grid_2">
<h1>Plan</h1>
<p>
@@ -59,24 +85,6 @@
</tbody>
</table>
</li>
<li class="grid_2">
<h1>New Session</h1>
<form enctype="multipart/form-data" action=""
method="post">
{% if form.errors %}
<p style="color: red;">
Please correct the error{{ form.errors|pluralize }} below.
</p>
{% endif %}
<table>
{{ form.as_table }}
</table>
{% csrf_token %}
<input class="button green" type="submit" value="Save">
</form>
<div class="padded" id="id_guidance">
</li>
</ul>
{% endblock %}

View File

@@ -6,16 +6,27 @@
{% block main %}
<h1>Edit Session</h1>
{% if user.is_authenticated and user|is_manager %}
{% endif %}
<p>
<form enctype="multipart/form-data" method="get">
<table>
{{ dateform.as_table }}
</table>
<input type="Submit" value="Set Date Range">
</form>
</p>
<ul class="main-content">
<li class="grid_2">
<h2>{{ thesession.name }}</h2>
{% if user.is_authenticated and user|is_manager %}
<p>
<a href="/rowers/sessions/teamedit/{{ thesession.id }}/">
Assign to my Teams
</a>
</p>
{% endif %}
<form enctype="multipart/form-data" action="{{ formloc }}" method="post">
{% if form.errors %}
<p style="color: red;">

View File

@@ -15,7 +15,7 @@
<table>
{{ dateform.as_table }}
</table>
<input type="Submit">
<input type="Submit" value="Set Date Range">
</form>
</p>
</li>

View File

@@ -66,6 +66,15 @@
<h1>Clone Multiple Sessions for {{ rower.user.first_name }} {{ rower.user.last_name }}</h1>
<p>
<form enctype="multipart/form-data" method="get">
<table>
{{ dateform.as_table }}
</table>
<input type="Submit" value="Set Date Range">
</form>
</p>
<form enctype="multipart/form-data" method="post">
<ul class="main-content">

View File

@@ -11,6 +11,15 @@
<h1>Coach Overview</h1>
{% endif %}
<p>
<form enctype="multipart/form-data" method="get">
<table>
{{ dateform.as_table }}
</table>
<input type="Submit" value="Set Date Range">
</form>
</p>
<table width="90%" class="listtable">
<thead>

View File

@@ -19,6 +19,16 @@
{% block main %}
<h1>Manage Plan Execution for {{ rower.user.first_name }} {{ rower.user.last_name }}</h1>
<p>
<form enctype="multipart/form-data" method="get">
<table>
{{ dateform.as_table }}
</table>
<input type="Submit" value="Set Date Range">
</form>
</p>
<p>Select one session on the left, and one or more workouts on the right
to match the workouts to the session. For tests and training sessions,
the selected workouts must be done on the same date. For all sessions,

View File

@@ -7,6 +7,16 @@
{% block main %}
<h1>Create Team Session</h1>
<p>
<form enctype="multipart/form-data" method="get">
<table>
{{ dateform.as_table }}
</table>
<input type="Submit" value="Set Date Range">
</form>
</p>
<form enctype="multipart/form-data" action="" method="post">
{% if form.errors %}
<p style="color: red;">

View File

@@ -6,6 +6,17 @@
{% block main %}
<h1>Edit Team Session</h1>
<p>
<form enctype="multipart/form-data" method="get">
<table>
{{ dateform.as_table }}
</table>
<input type="Submit" value="Set Date Range">
</form>
</p>
<form enctype="multipart/form-data" action="" method="post">
{% if form.errors %}
<p style="color: red;">