Private
Public Access
1
0

otwsetpower

This commit is contained in:
Sander Roosendaal
2018-10-08 20:38:19 +02:00
parent 545b01e823
commit 3222ced28d
2 changed files with 87 additions and 67 deletions

View File

@@ -1,75 +1,74 @@
{% extends "base.html" %}
{% extends "newbase.html" %}
{% load staticfiles %}
{% load rowerfilters %}
{% block title %}Advanced Features {% endblock %}
{% block content %}
<div id="workouts" class="grid_6 alpha">
{% block main %}
<h1>Run OTW Power Calculations</h1>
<ul class="main-content">
<li class="grid_4">
<p>
For the advanced OTW power and wind correction calculation,
we need to know the boat type and the average weight per crew member.
Currently only 1x (single) is implemented. Setting the value to
2x (double) will still run the calculations for a single.
We use FISA minimum boat weight and standard rigging for our calculations.
</p>
<h1>Run OTW Power Calculations</h1>
<div class="grid_2 alpha">
<p>
<a class="button gray small" href="/rowers/workout/{{ workout.id }}/edit">Edit Workout</a>
</p>
</div>
<div class="grid_2">
<p>
<a class="button gray small" href="/rowers/workout/{{ workout.id }}/workflow">Workflow View</a>
</p>
<p>The Quick calculation option potentially speeds up the calculation,
at the cost of a slight reduction in accuracy. It is recommended
to keep this option selected.</p>
</div>
<div class="grid_2 omega">
<p>
<a class="button gray small" href="/rowers/workout/{{ workout.id }}/advanced">Advanced Edit</a>
</p>
</div>
<div class="grid_6 alpha">
<p>
For the advanced OTW power and wind correction calculation,
we need to know the boat type and the average weight per crew member.
Currently only 1x (single) is implemented. Setting the value to
2x (double) will still run the calculations for a single.
We use FISA minimum boat weight and standard rigging for our calculations.
</p>
<p>The Quick calculation option potentially speeds up the calculation,
at the cost of a slight reduction in accuracy. It is recommended
to keep this option selected.</p>
<p>
The power calculations take wind and stream as inputs.
</p>
<p>
<a href="/rowers/workout/{{ workout.id }}/wind">Set wind strength and direction</a>
</p>
<p>
<a href="/rowers/workout/{{ workout.id }}/stream">
Set river stream strength
</a>
</p>
</li>
<li class="grid_2">
<form enctype="multipart/form-data" action="{{ formloc }}" method="post">
{% if form.errors %}
<p style="color: red;">
Please correct the error{{ form.errors|pluralize }} below.
</p>
{% endif %}
<table>
{{ form.as_table }}
</table>
{% csrf_token %}
</div>
<div id="formbutton" class="grid_2 prefix_2 suffix_2 tooltip">
{% if form.errors %}
<p style="color: red;">
Please correct the error{{ form.errors|pluralize }} below.
</p>
{% endif %}
<table>
{{ form.as_table }}
</table>
{% csrf_token %}
<div id="formbutton" class="tooltip">
<p><input class="button green" type="submit" value="Update & Run"></p>
<span class="tooltiptext">Start the calculations to get power values for your row.</span>
<span class="tooltiptext">Start the calculations to get power values for your row.</span>
</div>
</div>
</form>
</div>
<div id="advancedplots" class="grid_6 omega">
<div>
<img src="/static/img/rivercurrent.jpg" width="400">
</div>
<div>
The Rowsandall Physics Department at work.
</div>
</div>
</form>
</li>
<li class="grid_2">
<div>
<img src="/static/img/rivercurrent.jpg" width="400">
</div>
<div>
The Rowsandall Physics Department at work.
</div>
</li>
</ul>
{% endblock %}
{% block sidebar %}
{% include 'menu_workout.html' %}
{% endblock %}