Private
Public Access
1
0

better time switching

This commit is contained in:
Sander Roosendaal
2018-10-29 14:03:27 +01:00
parent 0d8cab48be
commit d201fc90de
6 changed files with 139 additions and 75 deletions

View File

@@ -29,22 +29,22 @@
</label>
<ul>
<li id="sessions-list">
<a href="/rowers/sessions/">
<a href="/rowers/sessions/?when={{ timeperiod }}">
<i class="far fa-calendar-alt fa-fw"></i>&nbsp;Sessions
</a>
</li>
<li id="sessions-link">
<a href="/rowers/sessions/manage/">
<a href="/rowers/sessions/manage/?when={{ timeperiod }}">
<i class="fas fa-tasks fa-fw"></i>&nbsp;Link Workouts
</a>
</li>
<li id="sessions-coach">
<a href="/rowers/sessions/coach/">
<a href="/rowers/sessions/coach/?when={{ timeperiod }}">
<i class="fas fa-bullhorn fa-fw"></i>&nbsp;Coach View
</a>
</li>
<li id="sessions-print">
<a href="/rowers/sessions/print/">
<a href="/rowers/sessions/print/?when={{ timeperiod }}">
<i class="fas fa-print fa-fw"></i>&nbsp;Print View
</a>
</li>
@@ -57,17 +57,17 @@
</label>
<ul>
<li id="plan-session">
<a href="/rowers/sessions/create/">
<a href="/rowers/sessions/create/?when={{ timeperiod }}">
<i class="far fa-calendar-plus fa-fw"></i>&nbsp;Add Session
</a>
</li>
<li id="plan-teamsession">
<a href="/rowers/sessions/teamcreate/">
<a href="/rowers/sessions/teamcreate/?when={{ timeperiod }}">
<i class="fas fa-whistle fa-fw"></i>&nbsp;Add Team Session
</a>
</li>
<li id="plan-microcycle">
<a href="/rowers/sessions/multicreate/">
<a href="/rowers/sessions/multicreate/?when={{ timeperiod }}">
<i class="fas fa-expand fa-fw"></i>Plan Microcycle
</a>
</li>

View File

@@ -7,6 +7,8 @@
{% block main %}
<h1>Create Sessions for {{ rower.user.first_name }} {{ rower.user.last_name }}</h1>
<p>{{ timeperiod }}</p>
<ul class="main-content">
<li class="grid_2">
<h1>Plan</h1>
@@ -59,7 +61,8 @@
</li>
<li class="grid_2">
<h1>New Session</h1>
<form enctype="multipart/form-data" action="{{ formloc }}" method="post">
<form enctype="multipart/form-data" action=""
method="post">
{% if form.errors %}
<p style="color: red;">
Please correct the error{{ form.errors|pluralize }} below.

View File

@@ -114,7 +114,7 @@ by your coach if you are part of a team. You can create your own
planned workouts by purchasing the "Coach" or "Self-Coach" plans.
{% endif %}
<p>
<a class="grid_2 button gray"
<a
href="/rowers/sessions/print/user/{{ rower.user.id }}/?when={{ timeperiod }}">
Print View</a>
</p>