{% extends "base_generic.html" %}
{% load static %}
{% load crispy_forms_tags %}
{% crispy product product.helper %}
{% crispy credits credits.helper %}

{% block content %}
<link rel="stylesheet" href="{% static "ajaxuploader/css/fileuploader.css" %}">

<style media="screen">
  .form-error {
    padding: 60 0 0 20;
    color: #F00;

  }
</style>

<div class="container-lg">
  <form id='upload_mab' enctype="multipart/form-data" method="post">
    {% csrf_token %}
        <div class="col-sm-10">
          <div class="">
  &nbsp;
</div>
<h3>Reichen Sie Ihr Projekt ein</h3>
               <div class="">
  &nbsp;
</div>
                  <div class="col-sm-10" style="margin-bottom: 5px">{{info_txt|safe}}</div>
               <div class="">
  &nbsp;
</div>
        </div>
    <div class="col-sm-10">
      {% crispy product %}
    </div>


    <div class="col-sm-10">

    </div>



       <div class="col-sm-10">

         <div class='form-error' style="" >{{ product_errors }}</div>
      {{ product.terms|as_crispy_field  }}

    </div>
             <div class="col-sm-10">


             </div>

    <div class="col-sm-10" style="margin-bottom: 5px">
      <br><br>
      <div class="buttonHolder">
        <input type="submit" name="submit" class=" btn border-thin mybtn" style="margin-right: " value="Absenden">
        <span class="">
          &nbsp;&nbsp;&nbsp;
        </span>
        <input type="submit" name="addImage" class="btn border-thin mybtn" value="Absenden & Bilder hochladen">
        <br><br>
      </div>
    </div>

  </form>

</div>

<div class="">
  &nbsp; &nbsp;
</div>

<script src="{% static "jquery/dist/jquery.js" %}"></script>
<script src="{% static "ajaxuploader/js/fileuploader.js" %}"></script>
<script src="{% static "file_form/file_form.js" %}"></script>
<script>
  $(function() {
    initUploadFields($('#upload_mab'));
  });
</script>
{% endblock %}
