{% extends "admin/change_form.html" %}
{% load i18n admin_urls static admin_modify %}

{% block breadcrumbs %}
<div class="breadcrumbs">
<a href="{% url 'admin:index' %}">Administration</a>
&rsaquo; {% if has_view_permission %}<a href="{% url opts|admin_urlname:'changelist' %}">{{ opts.verbose_name_plural|capfirst }}</a>{% else %}{{ opts.verbose_name_plural|capfirst }}{% endif %}
&rsaquo; {% if add %}{% blocktranslate with name=opts.verbose_name %}Add {{ name }}{% endblocktranslate %}{% else %}{{ original|truncatewords:"18" }}{% endif %}
</div>
{% endblock %}

{% block extrahead %}
    {{ block.super }}
    <script src="{% static "se/admin-change_form.js" %}"></script>
{% endblock %}

{% block extrastyle %}
    {{ block.super }}
    <link rel="stylesheet" type="text/css" href="{% static "se/admin-forms.css" %}">
{% endblock %}

{% block content %}
  {{ block.super }}
  {% include "se/components/modal.html" with id="tags" title=tags_edit_title %}
{% endblock %}

{% block object-tools %}
    <span style="text-align: right">
        <form action="{{ action_url }}" method="post">
            {% csrf_token %}
            {% for action in actions %}
                {% if action.0 and action.0 != 'delete_selected' %}
                    <button type="submit" name="action" value="{{ action.0 }}">{{ action.1 }}</button>
                {% endif %}
            {% endfor %}
        </form>
    </span>
{% endblock %}
