{% extends "documents/document_base.html" %}
{% load i18n %}

{% block title %} {% trans "Replace Document" %} - {{ block.super }} {% endblock %}

{% block body_class %}documents replace{% endblock body_class %}

{% block head %}
    {% include "geonode/app_header.html" %}
    {{ block.super }}
{% endblock %}

{% block body %}
    <div class="block">
        <div class="span8">
          <h2 class="page-title">{% trans "Replace " %}{{ document.title }}</h2>
            <div id="upload_form">
                <form method="post" enctype="multipart/form-data" action="{% url "document_replace" document.id %}">
                    <input type="hidden" name="csrfmiddlewaretoken" value="{{ csrf_token }}" />
                    {{ form.errors }}

                    {% if document.doc_file %}
                        {{ form.doc_file }}
                    {% elif document.doc_url %}
                        {{ form.doc_url }}
                    {% endif %}
                    <div><input class="btn" type="submit" value="Update" /></div>

                </form>
            </div>
        </div>
    </div>

{% endblock %}
