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

{% block title %}Workouts{% endblock %}

{% block main %}


<h1>Fusion Editor</h1>
<ul class="main-content">
  <li class="grid_2">

    <form enctype="multipart/form-data" action="" method="post">
      <p>
        <table>
          {{ form.as_table }}
        </table>
      </p>
      <p>
        {% csrf_token %}
        <input name='fusion' class="button green" type="submit" value="Submit">
      </p>
    </form>
  </li>
  <li class="grid_2">
    <p>
      Adding sensor data from workout {{ workout2.id }} into workout {{ workout1.id }}.
      This will create a new workout. After you submit the form, you will be
      taken to the newly created workout. If you are happy with the result, you
      can delete the two original workouts manually.
    </p>
    <p>
      Workout 1: {{ workout1.name }}
    </p>
    <p>
      Workout 2: {{ workout2.name }}
    </p>
    <p>Please select the columns from workout 2 that
      you want to replace the equivalent columns in workout 1. </p>
  </li>
</ul>

{% endblock %}

{% block sidebar %}
{% include 'menu_workout.html' %}
{% endblock %}
