feat: Remove slug field from ResearchStudy model and update related references
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
{% load django_tables2 %}
|
||||
{% load i18n l10n %}
|
||||
{% load help_tags %}
|
||||
{% block table-wrapper %}
|
||||
<div class="table-container">
|
||||
{% if table.caption %}
|
||||
@@ -14,7 +15,7 @@
|
||||
{% for column in table.columns %}
|
||||
<th {{ column.attrs.th.as_html }}>
|
||||
{% if column.orderable %}
|
||||
<a href="{% querystring table.prefixed_order_by_field=column.order_by_alias.next %}">{{ column.header }}</a>
|
||||
<a href="{% update_query_param table.prefixed_order_by_field column.order_by_alias.next %}">{{ column.header }}</a>
|
||||
{% else %}
|
||||
{{ column.header }}
|
||||
{% endif %}
|
||||
@@ -64,7 +65,7 @@
|
||||
{% if table.page.has_previous %}
|
||||
{% block pagination.previous %}
|
||||
<li class="previous page-item">
|
||||
<a href="{% querystring table.prefixed_page_field=table.page.previous_page_number %}" class="page-link">
|
||||
<a href="{% update_query_param table.prefixed_page_field table.page.previous_page_number %}" class="page-link">
|
||||
<span aria-hidden="true">«</span>
|
||||
{% trans 'previous' %}
|
||||
</a>
|
||||
@@ -75,7 +76,7 @@
|
||||
{% block pagination.range %}
|
||||
{% for p in table.page|table_page_range:table.paginator %}
|
||||
<li class="page-item{% if table.page.number == p %} active{% endif %}">
|
||||
<a class="page-link" {% if p != '...' %}href="{% querystring table.prefixed_page_field=p %}"{% endif %}>
|
||||
<a class="page-link" {% if p != '...' %}href="{% update_query_param table.prefixed_page_field p %}"{% endif %}>
|
||||
{{ p }}
|
||||
</a>
|
||||
</li>
|
||||
@@ -85,7 +86,7 @@
|
||||
{% if table.page.has_next %}
|
||||
{% block pagination.next %}
|
||||
<li class="next page-item">
|
||||
<a href="{% querystring table.prefixed_page_field=table.page.next_page_number %}" class="page-link">
|
||||
<a href="{% update_query_param table.prefixed_page_field table.page.next_page_number %}" class="page-link">
|
||||
{% trans 'next' %}
|
||||
<span aria-hidden="true">»</span>
|
||||
</a>
|
||||
|
||||
Reference in New Issue
Block a user