{% load i18n %}
{% load lfc_tags %}

<h2 class="first-heading">
    {% trans "Data" %}
</h2>

{% ifhasperm edit %}
    {% if above_form %}
        <div id="core-data-above-form">
            {{ above_form }}
        </div>
    {% endif %}

    <form action="{% url 'lfc_save_object_core_data' obj.id %}"
          method="POST">
        {% csrf_token %}
        {% include "lfc/manage/lfc_form.html" %}
        <input class="ajax-submit"
               type="submit"
               value="{% trans 'Save core data' %}" />
    </form>

    {% if below_form %}
        <div id="core-data-below-form">
            {{ below_form }}
        </div>
    {% endif %}
{% else %}
    {% include "lfc/manage/lfc_form_view.html" %}
{% endifhasperm %}
