Merge branch 'release/v9.88'
This commit is contained in:
@@ -10,12 +10,13 @@
|
|||||||
function toggle(source) {
|
function toggle(source) {
|
||||||
checkboxes = document.querySelectorAll("input[type='checkbox']");
|
checkboxes = document.querySelectorAll("input[type='checkbox']");
|
||||||
for (var i=0, n=checkboxes.length;i<n;i++) {
|
for (var i=0, n=checkboxes.length;i<n;i++) {
|
||||||
if (checkboxes[i].name.includes('selector')) {
|
if (checkboxes[i].name.includes('selector')) {
|
||||||
checkboxes[i].checked = source.checked
|
checkboxes[i].checked = source.checked
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
|
||||||
<h1>Training Plan - {{ plan.name }}</h1>
|
<h1>Training Plan - {{ plan.name }}</h1>
|
||||||
<p>This plan starts on {{ plan.startdate }} and ends on {{ plan.enddate }}.
|
<p>This plan starts on {{ plan.startdate }} and ends on {{ plan.enddate }}.
|
||||||
@@ -47,7 +48,7 @@
|
|||||||
{{ macrocycle.0.name }} ({{ macrocycle.0.startdate }} - {{ macrocycle.0.enddate }})
|
{{ macrocycle.0.name }} ({{ macrocycle.0.startdate }} - {{ macrocycle.0.enddate }})
|
||||||
</th>
|
</th>
|
||||||
</tr>
|
</tr>
|
||||||
{% if todays_date <= macrocycle.0.enddate|date:"Y-m-d" %}
|
{% if todays_date <= macrocycle.0.enddate %}
|
||||||
<tr>
|
<tr>
|
||||||
|
|
||||||
</tr>
|
</tr>
|
||||||
@@ -114,7 +115,7 @@
|
|||||||
<td>{{ macrocycle.0.actualtrimp }}</td>
|
<td>{{ macrocycle.0.actualtrimp }}</td>
|
||||||
</tr>
|
</tr>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% if todays_date <= macrocycle.0.enddate|date:"Y-m-d" %}
|
{% if todays_date <= macrocycle.0.enddate %}
|
||||||
<tr>
|
<tr>
|
||||||
<td> </td>
|
<td> </td>
|
||||||
</tr>
|
</tr>
|
||||||
@@ -166,7 +167,7 @@
|
|||||||
Meso {{ mesocycle.0.name }} ({{ mesocycle.0.startdate }} - {{ mesocycle.0.enddate }})
|
Meso {{ mesocycle.0.name }} ({{ mesocycle.0.startdate }} - {{ mesocycle.0.enddate }})
|
||||||
</th>
|
</th>
|
||||||
</tr>
|
</tr>
|
||||||
{% if todays_date <= mesocycle.0.enddate|date:"Y-m-d" %}
|
{% if todays_date <= mesocycle.0.enddate %}
|
||||||
{% if mesocycle.0.plan.type == 'userdefined' %}
|
{% if mesocycle.0.plan.type == 'userdefined' %}
|
||||||
<tr>
|
<tr>
|
||||||
|
|
||||||
@@ -235,7 +236,7 @@
|
|||||||
<td>{{ mesocycle.0.actualtrimp }}</td>
|
<td>{{ mesocycle.0.actualtrimp }}</td>
|
||||||
</tr>
|
</tr>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% if todays_date <= mesocycle.0.enddate|date:"Y-m-d" %}
|
{% if todays_date <= mesocycle.0.enddate %}
|
||||||
<tr>
|
<tr>
|
||||||
<td> </td>
|
<td> </td>
|
||||||
</tr>
|
</tr>
|
||||||
@@ -292,7 +293,7 @@
|
|||||||
Micro {{ microcycle.name }} ({{ microcycle.startdate }} - {{ microcycle.enddate }})
|
Micro {{ microcycle.name }} ({{ microcycle.startdate }} - {{ microcycle.enddate }})
|
||||||
</th>
|
</th>
|
||||||
</tr>
|
</tr>
|
||||||
{% if todays_date <= microcycle.enddate|date:"Y-m-d" %}
|
{% if todays_date <= microcycle.enddate %}
|
||||||
{% if microcycle.plan.type == 'userdefined' %}
|
{% if microcycle.plan.type == 'userdefined' %}
|
||||||
<tr>
|
<tr>
|
||||||
<td> </td>
|
<td> </td>
|
||||||
@@ -365,7 +366,7 @@
|
|||||||
<td>{{ microcycle.actualtrimp }}</td>
|
<td>{{ microcycle.actualtrimp }}</td>
|
||||||
</tr>
|
</tr>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% if todays_date <= microcycle.enddate|date:"Y-m-d" %}
|
{% if todays_date <= microcycle.enddate %}
|
||||||
<tr>
|
<tr>
|
||||||
<td> </td>
|
<td> </td>
|
||||||
</tr>
|
</tr>
|
||||||
|
|||||||
BIN
rowers/tests/testdata/testdata.csv.gz
vendored
BIN
rowers/tests/testdata/testdata.csv.gz
vendored
Binary file not shown.
@@ -2301,6 +2301,7 @@ def rower_trainingplan_view(request,
|
|||||||
return render(request,'trainingplan.html',
|
return render(request,'trainingplan.html',
|
||||||
{
|
{
|
||||||
'plan':plan,
|
'plan':plan,
|
||||||
|
'todays_date': timezone.now().date(),
|
||||||
'active':'nav-plan',
|
'active':'nav-plan',
|
||||||
'breadcrumbs':breadcrumbs,
|
'breadcrumbs':breadcrumbs,
|
||||||
'rower':r,
|
'rower':r,
|
||||||
|
|||||||
@@ -288,6 +288,8 @@
|
|||||||
{
|
{
|
||||||
/* icons */
|
/* icons */
|
||||||
font: normal normal normal 1.0em/1 FontAwesome;
|
font: normal normal normal 1.0em/1 FontAwesome;
|
||||||
|
font-family: "Font Awesome 5 Pro";
|
||||||
|
font-weight: 900;
|
||||||
font-size: inherit;
|
font-size: inherit;
|
||||||
text-rendering: auto;
|
text-rendering: auto;
|
||||||
content: '\f0da';
|
content: '\f0da';
|
||||||
|
|||||||
Reference in New Issue
Block a user