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

{% block title %}{{ document.typename }} — {{ block.super }}{% endblock %}

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

{% block body_class %}data{% endblock %}

{% block body_outer %}  
<form class="form-horizontal" action="{% url "document_metadata" document.id %}" method="POST">
    <legend>
      {% blocktrans with document.typename as document_title %}
        Editing details for {{ document_title }}
      {% endblocktrans %}
    </legend>
    {% csrf_token %}
    <div class="form-controls">
      {{ document_form|as_bootstrap }}
    </div>
    <fieldset class="form-controls modal-forms modal hide fade" id="poc_form" >
      <h2>{% trans "Point of Contact" %}</h2>
      {{ poc_form|as_bootstrap }}
      <button type='button' class="modal-cloose-btn btn btn-primary">Done</button>
    </fieldset>
    <fieldset class="form-controls modal-forms modal hide fade" id="metadata_form">
      <h2>{% trans "Metadata Provider" %}</h2>
        {{ author_form|as_bootstrap }}
      <button type='button' class="modal-cloose-btn btn btn-primary">Done</button>
    </fieldset>
    <div class="form-actions">
      <input type="submit" class="btn btn-primary" value="{% trans "Update" %}"/>
    </div>
  </form>
{% endblock %}
{% block extra_script %}
{% include 'metadata_form_js.html' %}
{% endblock %}