Commit 082389aa by Kálmán Viktor

dashboard: fix pagination in user list

parent d2e95303
...@@ -1243,3 +1243,7 @@ textarea[name="new_members"] { ...@@ -1243,3 +1243,7 @@ textarea[name="new_members"] {
padding: 25px; padding: 25px;
} }
} }
.pagination {
width: 100%;
}
...@@ -146,7 +146,7 @@ class UserListTable(Table): ...@@ -146,7 +146,7 @@ class UserListTable(Table):
class Meta: class Meta:
model = User model = User
template = "django_tables2/table_no_page.html" template = "django_tables2/with_pagination.html"
attrs = {'class': ('table table-bordered table-striped table-hover')} attrs = {'class': ('table table-bordered table-striped table-hover')}
fields = ('username', 'last_name', 'first_name', 'profile__org_id', fields = ('username', 'last_name', 'first_name', 'profile__org_id',
'email', 'is_active', 'is_superuser') 'email', 'is_active', 'is_superuser')
......
{% extends "django_tables2/table.html" %}
{% load i18n %}
{% block pagination.cardinality %}{% endblock %}
{% block pagination.current %}
<li></li>
<li class="pull-right">
<a>
{% blocktrans with table.page.number as current and table.paginator.num_pages as total %}
{{ current }}/{{ total }}
{% endblocktrans %}
</a>
</li>
<li></li>
{% endblock %}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment