{% extends "skins/base.html" %}
{% load i18n admin_urls admin_static %}

{% block navbar %}
<ul class="nav" id="main-menu-left">
  <li><a href="{% url 'home' %}">Home</a></li>
  <li class="active"><a href="#">New</a></li>
</ul>
{% endblock %}

{% block script %}
<script type="text/javascript">
  $(function() {
    $(".inline.env").formset({
      prefix: "env",
      addCssClass: "add-row btn btn-primary",
      deleteCssClass: "delete-row btn btn-danger btn-xs",
    })
  })
    $(function() {
      $(".inline.label").formset({
        prefix: "label",
        addCssClass: "add-row btn btn-primary",
        deleteCssClass: "delete-row btn btn-danger btn-xs",
      })
    })

</script>
{% endblock %}

{% block content %}
<div class="row">
  <div class="col-md-6">
    <!-- general form elements -->
    <div class="box box-primary">
      <div class="box-header with-border">
        <h3 class="box-title">Import marathon app JSON</h3>
      </div>

      <form role="form" method="POST">
        {% csrf_token %}
        {{ form.as_p }}
        <p><input type="submit" value="Submit" class="btn btn-primary"/></p>
      </form>

    </div>
  </div>
</div>
{% endblock %}
