{% extends 'base.html' %}
{% load i18n %}

{% block subtitle %}
    {% if object.pk %}
	    {% trans 'Edit image' %}
    {% else %}
        {% trans 'New image' %}
    {% endif %}
{% endblock %}

{% block actions %}
    <a href="{{ workshop.get_detail_url }}" class="btn btn-default">
        {% trans 'Back to the list of questions' %}
    </a>
{% endblock %}

{% block main %}
    <form action="{% if object.pk %}{{ workshopstepimage.get_edit_url }}{% else %}{% url 'workshops:step-image-create' workshop_uuid=workshop.pk %}{% endif %}"
          method="post" enctype="multipart/form-data" id="workshop-image-form">{% csrf_token %}
        {% include 'extras/form.html' with display='block' %}
        <div class="clearfix">
            <a class="btn btn-default pull-left" href="{{ workshop.get_detail_url }}">{% trans 'Cancel' %}</a>
            <input class="btn btn-primary pull-right" type="submit" value="{% trans 'Confirm' %}" />
        </div>
    </form>
{% endblock %}
