{% extends "passerelle/manage/resource_child_base.html" %}
{% load i18n gadjo %}

{% block appbar %}
  <h2>
    {% if object %}
      {{ object }}
    {% else %}
      {% blocktrans with verbose_name=view.model_verbose_name|lower %}Add {{ verbose_name }}{% endblocktrans %}
    {% endif %}
  </h2>
{% endblock %}

{% block content %}
  <form method="post" enctype="multipart/form-data">
    <div id="form-content">
      {% csrf_token %}
      {% block form %}
        {{ form|with_template }}
      {% endblock %}
    </div>
    {% block buttons %}
      <div class="buttons">
        <button class="submit-button">{% trans "Save" %}</button>
        <a class="cancel" href="{{ view.resource.get_absolute_url }}">{% trans 'Cancel' %}</a>
      </div>
    {% endblock %}
  </form>
{% endblock %}
