Modified configs so that templates are rendered. Functionality and styling are NOT complete (need to change css framework)

This commit is contained in:
Matthew Smith
2019-10-01 18:10:34 +01:00
parent 1df971bbba
commit 6cff7c090c
13 changed files with 77 additions and 30 deletions

View File

@@ -0,0 +1,17 @@
{% if is_paginated %}
<ul class="pagination center-align">
{% if page_obj.has_previous %}
<li class="waves-effect"><a href="?page={{ page_obj.previous_page_number }}" class="no-pad"><i class="material-icons nnt-purple">chevron_left</i></a></li>
{% else %}
<li class="disabled"><i class="material-icons grey-text">chevron_left</i></li>
{% endif %}
<li class="nnt-orange" id="page">{{ page_obj.number }} of {{ page_obj.paginator.num_pages }}</li>
{% if page_obj.has_next %}
<li class="waves-effect"><a href="?page={{ page_obj.next_page_number }}" class="no-pad"><i class="material-icons nnt-purple">chevron_right</i></a></li>
{% else %}
<li class="disabled"><i class="material-icons grey-text">chevron_right</i></li>
{% endif %}
</ul>
{% endif %}