﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
3128	[patch] add an object_tools block to admin templates	Gary Wilson <gary.wilson@…>	Adrian Holovaty	"Currently, if I want to add object tools I have you have to override all of block content:
{{{
#!xml
{% block content %}
<div id=""content-main"">
<ul class=""object-tools"">
{% if has_add_permission %}
    <li><a href=""add/{% if is_popup %}?_popup=1{% endif %}"" class=""addlink"">{% blocktrans with cl.opts.verbose_name|escape as name %}Add {{ name }}{% endblocktrans %}</a></li>
    <li><a href=""myaction"">Myaction</a></li>
{% endif %}
</ul>
<div class=""module{% if cl.has_filters %} filtered{% endif %}"" id=""changelist"">
{% block search %}{% search_form cl %}{% endblock %}
{% block date_hierarchy %}{% date_hierarchy cl %}{% endblock %}
{% block filters %}{% filters cl %}{% endblock %}
{% block result_list %}{% result_list cl %}{% endblock %}
{% block pagination %}{% pagination cl %}{% endblock %}
</div>
</div>
{% endblock %}
}}}

With a {% block object_tools %}, it could just be:
{{{
#!xml
{% block object_tools %}
<ul class=""object-tools"">
{% if has_add_permission %}
    <li><a href=""add/{% if is_popup %}?_popup=1{% endif %}"" class=""addlink"">{% blocktrans with cl.opts.verbose_name|escape as name %}Add {{ name }}{% endblocktrans %}</a></li>
    <li><a href=""myaction"">Myaction</a></li>
{% endif %}
</ul>
{% endblock %}
}}}

The object tools area seems to be one of the only places that doesn't already have a block."	enhancement	closed	contrib.admin	dev	normal	fixed		gary.wilson@…	Unreviewed	1	0	0	0	0	0
