Private
Public Access
1
0

edit plan

This commit is contained in:
Sander Roosendaal
2018-10-29 21:47:58 +01:00
parent 1811e45d7f
commit bdf86d7321
2 changed files with 8 additions and 6 deletions

View File

@@ -70,7 +70,7 @@
{{ macrocycle.0.name }} ({{ macrocycle.0.startdate }} - {{ macrocycle.0.enddate }})
</th>
</tr>
{% if macrocycle.0.type == 'userdefined' %}
{% if macrocycle.0.type == 'userdefined' and macrocycle.0.plan.status %}
<tr>
<td></td>
<td>dist (m)</td>
@@ -180,7 +180,7 @@
Meso {{ mesocycle.0.name }} ({{ mesocycle.0.startdate }} - {{ mesocycle.0.enddate }})
</th>
</tr>
{% if mesocycle.0.type == 'userdefined' %}
{% if mesocycle.0.type == 'userdefined' and mesoocycle0.plan.plan.status %}
<tr>
<td></td>
<td>dist (m)</td>
@@ -259,7 +259,7 @@
</th>
</tr>
{% if todays_date <= microcycle.enddate|date:"Y-m-d" %}
{% if microcycle.plan.type == 'userdefined' %}
{% if microcycle.plan.type == 'userdefined' %}
<tr>
<td>&nbsp;</td>
</tr>
@@ -276,7 +276,7 @@
</tr>
{% endif %}
{% else %}
{% if microcycle.plan.type == 'userdefined' %}
{% if microcycle.plan.type == 'userdefined' %}
<tr>
<td>&nbsp;</td>
</tr>
@@ -299,6 +299,7 @@
Micro {{ microcycle.name }} ({{ microcycle.startdate }} - {{ microcycle.enddate }})
</th>
</tr>
{% if microcycle.plan.plan.plan.status %}
<tr>
<td></td>
<td>dist (m)</td>
@@ -320,6 +321,7 @@
<td>{{ microcycle.actualrscore }}</td>
<td>{{ microcycle.actualtrimp }}</td>
</tr>
{% endif %}
{% if todays_date <= microcycle.enddate|date:"Y-m-d" %}
<tr>
<td>&nbsp;</td>

View File

@@ -73,13 +73,13 @@
<td><a href="/rowers/plan/{{ plan.id }}">{{ plan.name }}</a></td>
<td> {% if plan.status %} active {% else %} inactive {% endif %}</td>
<td>
{% if request.user == plan.manager %}
{% if request.user.rower == plan.manager %}
<a href="/rowers/editplan/{{ plan.id }}">Edit</a>
{% endif %}
</td>
<td> <a href="/rowers/plan/{{ plan.id }}">Plan</a></td>
<td>
{% if request.user == plan.manager %}
{% if request.user.rower == plan.manager %}
<a href="/rowers/deleteplan/{{ plan.id }}">Delete</a>
{% endif %}
</td>