{% extends "audiotracks/base.html" %}
{% load i18n %}

{% block body %}
{% if user.is_authenticated %}
<form class="audiotracks-form" id="audiotracks-upload-form" 
      method="POST" enctype="multipart/form-data" action="{% url 'upload_track' %}">
  {% csrf_token %}
  <fieldset>
    <legend>{% trans 'Upload a new track' %}</legend>
    {{ form.as_p }}
  </fieldset>
  <p>
  <button class="btn primary">{% trans 'Upload' %}</button>
  </p>
</form>
{% endif %}
{% endblock %}
