{% extends "admin/change_form.html" %}

{% load i18n admin_urls static admin_modify %}

{% block object-tools-items %}
    <li class="historylink-list-item">
        {% url 'admin:jstocks_tx_party_changelist' original.pk|admin_urlquote as history_url %}
        <a href="{{ history_url }}?account__exact=S" class="historylink">{% trans "shares" %}</a>
    </li>
    <li class="historylink-list-item">
        {% url 'admin:jstocks_tx_party_changelist' original.pk|admin_urlquote as history_url %}
        <a href="{% add_preserved_filters history_url %}" class="historylink">{% trans "transactions" %}</a>
    </li>
    <li class="historylink-list-item">
        {% url opts|admin_urlname:'history' original.pk|admin_urlquote as history_url %}
        <a href="{% add_preserved_filters history_url %}" class="historylink">{% trans "History" %}</a>
    </li>
{% endblock %}
