{% extends "misago/admin/generic/form.html" %}
{% load i18n misago_forms %}


{% block title %}
{% if target.pk %}
{% trans target.get_final_title %}
{% else %}
{% trans "New agreement" %}
{% endif %} | {{ active_link.name }} | {{ block.super }}
{% endblock title %}


{% block page-target %}
{% if target.pk %}
{% trans target.get_final_title %}
{% else %}
{% trans "New agreement" %}
{% endif %}
{% endblock page-target %}


{% block form-header %}
<h1>
  {% if target.pk %}
  {% trans target.get_final_title %}
  {% else %}
  {% trans "New agreement" %}
  {% endif %}
</h1>
{% endblock %}


{% block form-extra %}
class="form-horizontal"
{% endblock form-extra%}


{% block form-body %}
<div class="form-body">
  {% with label_class="col-md-3" field_class="col-md-9" %}
  <fieldset>
    <legend>{% trans "Basic settings" %}</legend>

    {% form_row form.type label_class field_class %}
    {% form_row form.title label_class field_class %}
    {% form_row form.is_active "col-md-offset-3" field_class %}

  </fieldset>
  <fieldset>
    <legend>{% trans "Agreement contents" %}</legend>

    <div class="form-group">
      <p>{% trans "Fill in one of the fields." %}</p>
    </div>

    {% form_row form.link label_class field_class %}
    {% form_row form.text label_class field_class %}

  </fieldset>
  {% endwith %}
</div>
{% endblock form-body %}


{% block form-footer-class %}
col-md-offset-3
{% endblock form-footer-class %}
