27 lines
633 B
HTML
27 lines
633 B
HTML
{% extends "combo/manager_base.html" %}
|
|
{% load i18n %}
|
|
|
|
{% block appbar %}
|
|
{% if object.id %}
|
|
<h2>{% trans "Edit Image" %}</h2>
|
|
{% else %}
|
|
<h2>{% trans "New Image" %}</h2>
|
|
{% endif %}
|
|
{% endblock %}
|
|
|
|
{% block content %}
|
|
|
|
<form method="post" enctype="multipart/form-data">
|
|
{% csrf_token %}
|
|
{{ form.as_p }}
|
|
<div class="buttons">
|
|
<button>{% trans "Save" %}</button>
|
|
{% if object.id %}
|
|
<a class="cancel" href="{{ object.get_absolute_url }}">{% trans 'Cancel' %}</a>
|
|
{% else %}
|
|
<a class="cancel" href="{% url 'combo-manager-homepage' %}">{% trans 'Cancel' %}</a>
|
|
{% endif %}
|
|
</div>
|
|
</form>
|
|
{% endblock %}
|