Private
Public Access
1
0
Files
rowsandall/rowers/templates/instantplans.html
Sander Roosendaal 4d1035ef04 fix type
2021-11-11 17:49:49 +01:00

64 lines
2.1 KiB
HTML

{% extends "newbase.html" %}
{% load static %}
{% load rowerfilters %}
{% block title %}Rowsandall Training Plans{% endblock %}
{% block main %}
<h1>Training Plans</h1>
<ul class="main-content">
<li class="grid_4">
<p>
On this page, you find trusted training plans that work. If you are looking for a plan, this page is for you.
This ever growing list of plans contains a plan for everyone, whether you are a beginning rower or experienced,
irrespective of your current fitness level. Click on a plan to read more and see the sessions. If you're
on a Self-Coach plan or higher, you can get the plan including even more detailed workout instructions
copied straight to your training calendar on this site, with the simple click of a button.
</p>
{% if rower.eurocredits %}
<p>
<em>Your have discount vouchers for an amount of {{ rower.eurocredits }}&euro;</em>. You
will get discount for up to this amount on any paid plan.
</p>
{% endif %}
</li>
{% for plan in plans %}
<li class="rounder">
<h2><a href="/rowers/plans/{{ plan.uuid }}">{{ plan.name }}</a></h2>
<p>Created by: {{ plan.owner.first_name }} {{ plan.owner.last_name }}</p>
<p>Plan length: {{ plan.duration }} days</p>
<p>{{ plan.description }}</p>
{% if plan.target %}
<p>What the plan will achieve: {{ plan.target }}</p>
{% endif %}
{% if plan.goal %}
<p>Goal: {{ plan.goal }}</p>
{% endif %}
<p>{{ plan.hoursperweek }} hours per week over {{ plan.sessionsperweek }} sessions</p>
{% if plan.price == 0 %}
<p>Price: Free</p>
{% else %}
<p>Price: {{ plan.price }}&euro;</p>
{% endif %}
{% if rower.eurocredits and plan.price > 0 %}
<p>Your discount: {{ plan.price|discount:rower }}&euro;</p>
<p>You pay: {{ plan.price|discounted:rower }}&euro;</p>
{% endif %}
</li>
{% endfor %}
{% if user.is_authenticated and user.is_staff %}
<li class="grid_4">
<a href="/rowers/addinstantplan/">Add a New Training Plan</a>
</li>
{% endif %}
</ul>
{% endblock %}
{% block sidebar %}
{% include 'menu_plan.html' %}
{% endblock %}