mirror of
https://github.com/django/django.git
synced 2025-07-05 10:19:20 +00:00
[per-object-permissions] Minor fixes to admin RLP interface
git-svn-id: http://code.djangoproject.com/svn/django/branches/per-object-permissions@3618 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
parent
741df7b44c
commit
23cb1f0eb6
@ -6,7 +6,6 @@
|
||||
{% for js in javascript_imports %}{% include_admin_script js %}{% endfor %}
|
||||
{% endblock %}
|
||||
{% block stylesheet %}{% admin_media_prefix %}css/forms.css{% endblock %}
|
||||
{% block coltype %}{% if ordered_objects %}colMS{% else %}colM{% endif %}{% endblock %}
|
||||
{% block bodyclass %}{{ opts.app_label }}-{{ opts.object_name.lower }} change-form{% endblock %}
|
||||
{% block userlinks %}<a href="../../../../doc/">{% trans 'Documentation' %}</a> / <a href="../../../../password_change/">{% trans 'Change password' %}</a> / <a href="../../../../logout/">{% trans 'Log out' %}</a>{% endblock %}
|
||||
{% block breadcrumbs %}
|
||||
@ -128,8 +127,7 @@
|
||||
<tr align="right">
|
||||
<td colspan="5">
|
||||
Commands:
|
||||
<a href="javascript:row_level_permission.apply_selected();">Apply Selected</a> |
|
||||
<a href="javascript:alert('Not yet working');" class="deletelink">Delete Selected</a>
|
||||
<a href="javascript:row_level_permission.apply_selected();">Apply Selected</a>
|
||||
</td>
|
||||
</tr>
|
||||
{% if is_paginated %}
|
||||
|
@ -34,6 +34,7 @@ def objref(parser, token):
|
||||
tok = "object"
|
||||
return objref_class(tok)
|
||||
|
||||
#From: http://code.djangoproject.com/wiki/PaginatorTag
|
||||
def paginator(context, adjacent_pages=2):
|
||||
"""Adds pagination context variables for first, adjacent and next page links
|
||||
in addition to those already populated by the object_list generic view."""
|
||||
|
Loading…
x
Reference in New Issue
Block a user