{% extends "admin/submit_line.html" %}
{% load i18n admin_urls shortcuts %}

{% block submit-row %}
  {% get_shortcuts as shortcuts %}

  {% if show_save %}<input type="submit" value="{% translate 'Save' %}" class="default" name="_save" data-hotkey="{{ shortcuts.changeform.save.1 }}">{% endif %}
  {% if show_save_as_new %}<input type="submit" value="{% translate 'Save as new' %}" name="_saveasnew">{% endif %}
  {% if show_save_and_add_another %}<input type="submit" value="{% translate 'Save and add another' %}" name="_addanother" data-hotkey="{{ shortcuts.changeform.save_and_add_another.1 }}">{% endif %}
  {% if show_save_and_continue %}<input type="submit" value="{% if can_change %}{% translate 'Save and continue editing' %}{% else %}{% translate 'Save and view' %}{% endif %}" name="_continue" data-hotkey="{{ shortcuts.changeform.save_and_continue.1 }}">{% endif %}
  {% if show_close %}
    {% url opts|admin_urlname:'changelist' as changelist_url %}
    <a role="button" href="{% add_preserved_filters changelist_url %}" class="closelink">{% translate 'Close' %}</a>
  {% endif %}
  {% if show_delete_link and original %}
    {% url opts|admin_urlname:'delete' original.pk|admin_urlquote as delete_url %}
    <a role="button" href="{% add_preserved_filters delete_url %}" class="deletelink" data-hotkey="{{ shortcuts.changeform.delete.1 }}">{% translate "Delete" %}</a>
  {% endif %}
{% endblock %}
