{% extends "core/base.jinja" %}

{# if the template context has the `object_name` variable,
   then this one will be used in the page title,
   instead of the result of `str(object)` #}
{% if object and not object_name %}
  {% set object_name=object %}
{% endif %}

{% block title %}
  {% if object_name %}
    {% trans name=object_name %}Edit {{ name }}{% endtrans %}
  {% else %}
    {% trans %}Save{% endtrans %}
  {% endif %}
{% endblock %}

{% block content %}
  {% if object_name %}
    <h2>{% trans name=object_name %}Edit {{ name }}{% endtrans %}</h2>
  {% else %}
    <h2>{% trans %}Save{% endtrans %}</h2>
  {% endif %}
  <form action="" method="post" enctype="multipart/form-data">
    {% csrf_token %}
    {{ form.as_p() }}
    <p><input type="submit" value="{% trans %}Save{% endtrans %}" /></p>
  </form>
{% endblock %}



