Private
Public Access
1
0

link to import and end fitness stat

This commit is contained in:
Sander Roosendaal
2020-12-03 08:33:50 +01:00
parent 6fc4e33e39
commit b11e75e456
4 changed files with 49 additions and 15 deletions

View File

@@ -29,6 +29,9 @@
// var parsedJSON = $.parseJSON(data); //
$("#id_script").replaceWith('<div id="id_script">'+data.script+'</d'+'iv>');
$("#id_chart").replaceWith('<div id="id_chart">'+data.div+'</d'+'iv>');
$("#endfitness").html(data.endfitness)
$("#endfatigue").html(data.endfatigue)
$("#endform").html(data.endform)
console.log('done');
}
});
@@ -84,7 +87,7 @@
{{ the_div|safe }}
</div>
</li>
<li class="grid_2">
<li class="grid_1">
<form id="performanceform" enctype="multipart/form-data" method="post">
<table>
{{ form.as_table }}
@@ -109,6 +112,11 @@
on the left. The model balances out after a few weeks of regular training, so don't
make this chart shorter than a few months.
</p>
<p>
For this chart to reflect your fitness and freshness, it is important to have all workouts on
Rowsandall.com. You can automatically import workouts from other fitness platforms. Change
your <a href="/rowers/me/exportsettings/">Import and Export Settings here.</a>
</p>
<p>
The time constants used in generating this performance chart were
a fitness decay constant of {{ rower.kfit }} days
@@ -116,7 +124,25 @@
You can change these values in your <a href="/rowers/me/preferences/">Profile Settings</a>.
</p>
</li>
<li class="grid_1">
<div class="rounder">
<p>
<table width="100%">
<tbody>
<tr>
<td><h2>Fitness</h2></td><td><h2><span id="endfitness">{{ endfitness }}</span></h2></td>
</tr>
<tr>
<td><h2>Fatigue</h2></td><td><h2><span id="endfatigue"> {{ endfatigue }}</span></h2></td>
</tr>
<tr>
<td><h2>Freshness</h2></td><td><h2><span id="endform"> {{ endform }}</span></h2></td>
</tr>
</tbody>
</table>
</p>
</div>
</li>
</ul>