Ticket #19536: change_list_patch.html

File change_list_patch.html, 483 bytes (added by a.fazeli@…, 12 years ago)

patch for ModelAdmin has_add_permission disabling all the object-tools-items

Line 
1 {% block object-tools %}
2 <ul class="object-tools">
3 {% block object-tools-items %}
4 {% if has_add_permission %}
5 <li>
6 <a href="{% url cl.opts|admin_urlname:'add' %}{% if is_popup %}?_popup=1{% endif %}" class="addlink">
7 {% blocktrans with cl.opts.verbose_name as name %}Add {{ name }}{% endblocktrans %}
8 </a>
9 </li>
10 {% endif %}
11 {% endblock %}
12 </ul>
13 {% endblock %}
Back to Top