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

{% block title %}CrewNerd Summary loading{% endblock %}

{% block main %}
<form enctype="multipart/form-data" action="{{ formloc }}" method="post">
  <h1>Upload Workout Summary File (CrewNerd)</h1>
  {% if form.errors %}
  <p style="color: red;">
    Please correct the error{{ form.errors|pluralize }} below.
  </p>
  {% endif %}
  
  <table>
    {{ form.as_table }}
  </table>
  {% csrf_token %}
  <input type="submit" value="Submit">
</form>
{% endblock %}

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