pinax/documents/document_create.html

{% extends "pinax/documents/base.html" %}

{% block body_class %}{{ block.super }} pinax-documents-document-create{% endblock %}

{% load bootstrap %}

{% block head_title %}Upload file{% if folder %} in {{ folder.name }}{% endif %}{% endblock %}

{% block body %}
<div class="pinax-documents-document-create-container">
    <h2>
        Upload file{% if folder %} in {{ folder.name }}{% endif %}
    </h2>

    {% include "pinax/documents/_breadcrumbs.html" with member=folder %}

    <form method="POST" action="{% url 'pinax_documents:document_create' %}" enctype="multipart/form-data">
        {% csrf_token %}
        {% for hidden_field in form.hidden_fields %}
            {{ hidden_field.errors }}
            {{ hidden_field }}
        {% endfor %}
        <label class="custom-file">
            <input type="file" id="id_file" name="file" class="custom-file-input">
            <span class="custom-file-control" data-file="Choose file..."></span>
        </label>
        <div class="form-actions">
            <button>Upload</button>
        </div>
    </form>
</div>
{% endblock %}