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

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

{% block content %}


<div class="grid_12 alpha">
    <h3>Fusion Editor</h3>
</div>
<div class="grid_12 alpha">
  <div class="grid_6 alpha">
    <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>On the right hand side, please select the columns from workout 2 that
      you want to replace the equivalent columns in workout 1. </p>
  </div>
  <div class="grid_4">

    <form enctype="multipart/form-data" action="" method="post">

      <table>
        {{ form.as_table }}
      </table>
      {% csrf_token %}
  </div>
  <div class="grid_2 omega">
    <input name='fusion' class="button green" type="submit" value="Submit">	</form>
  </div>
</div>

{% endblock %}
