{% extends "base.html" %}
{% load staticfiles %}
{% load rowerfilters %}

{% block title %}Analysis {% endblock %}

{% block content %}

	<h1>Analysis</h1>
<p>Functionality to analyze multiple workouts.</p>


<div class="grid_12 alpha">
<div class="grid_6 alpha">
 <h2>Basic</h2>
	<div class="grid_2 alpha">
	<p>
	<a class="button blue small" href="/rowers/ote-bests">Ranking Pieces</a></p>
<p>Analyze your Concept2 ranking pieces over a date range and predict your pace on other pieces.</p>
	</div>
	<div class="grid_2">
	<p>
	<a class="button blue small" href="/rowers/flexall">Stroke Analysis</a>
	</p>
	<p>
	Plot all strokes in a date range and analyze several parameters (Power, Pace, SPM, Heart Rate).
	</p>
	</div>
	<div class="grid_2 omega">
	<p class="button white small">
	Analysis Feature 3
	</p>
	<p>
	Reserved for future functionality.
	</p>
	</div>

</div>

<div class="grid_6 omega">
  <h2>Pro</h2>
  <div class="grid_2 alpha">
    <p>
      {% if user.rower.rowerplan == 'pro' or user.rower.rowerplan == 'coach' %}
      <a class="button blue small" href="/rowers/histo">Power Histogram</a>		
      {% else %}
      <a class="button blue small" href="/rowers/promembership">Power Histogram</a>		
      {% endif %}
    </p>
    <p>
      Plot a power histogram of all your strokes over a date range. 
    </p>
  </div>
  <div class="grid_2">
    <p>
      {% if user.rower.rowerplan == 'pro' or user.rower.rowerplan == 'coach' %}
      <a class="button blue small" href="/rowers/cumstats">Statistics</a>		
      {% else %}
      <a class="button blue small" href="/rowers/promembership">Statistics</a>		
      {% endif %}
    </p>
    <p>
      BETA: Statistics of stroke metrics over a date range
    </p>
  </div>
  <div class="grid_2 omega">
    <p>
      {% if user.rower.rowerplan == 'pro' or user.rower.rowerplan == 'coach' %}
      <a class="button blue small" href="/rowers/user-boxplot-select">Box Chart</a>		
      {% else %}
      <a class="button blue small" href="/rowers/promembership">Box Chart</a>		
      {% endif %}
    </p>
    <p>
      BETA: Box Chart Statistics of stroke metrics over a date range
    </p>
  </div>
</div>

<div class="grid_12 alpha">
  <div class="grid_6 alpha">
    <p>&nbsp;</p>
  </div>

  <div class="grid_6 omega">
    <div class="grid_2 alpha">
      <p>
        {% if user.rower.rowerplan == 'pro' or user.rower.rowerplan == 'coach' %}
        <a class="button blue small" href="/rowers/otw-bests">OTW Ranking Pieces</a>		
        {% else %}
        <a class="button blue small" href="/rowers/promembership">OTW Ranking Pieces</a>		
        {% endif %}
      </p>
      <p>
        Analyse power vs piece duration to make predictions.
      </p>
    </div>
    <div class="grid_2">
      <p>
        {% if user.rower.rowerplan == 'pro' or user.rower.rowerplan == 'coach' %}
        <a class="button blue small" href="/rowers/team-compare-select/team/0/">Multi Compare</a>
        {% else %}
        <a class="button blue small" href="/rowers/promembership">Multi Compare</a>		
        {% endif %}
      </p>
      <p>
        Compare many workouts
      </p>
    </div>
    <div class="grid_2 omega">
      <p>
        {% if user.rower.rowerplan == 'pro' or user.rower.rowerplan == 'coach' %}
        <a class="button blue small" href="/rowers/user-multiflex-select">Trend Flex</a>
        {% else %}
        <a class="button blue small" href="/rowers/promembership">Trend Flex</a>		
        {% endif %}
      </p>
      <p>
        Select workouts and make X-Y charts of averages over various metrics
      </p>
    </div>
  </div>
</div>



{% endblock %}
