pass page index to identities edit

pull/587/head
MJ2P 2023-06-14 00:07:38 +01:00
rodzic e3723ad6f8
commit cedf8d216d
3 zmienionych plików z 4 dodań i 3 usunięć

Wyświetl plik

@ -22,7 +22,7 @@
{% for identity in page_obj %}
<tr>
<td class="icon">
<a href="{{ identity.urls.admin_edit }}" class="overlay"></a>
<a href="{{ identity.urls.admin_edit }}?page={{ page_obj.number }}" class="overlay"></a>
<img
src="{{ identity.local_icon_url.relative }}"
class="icon"
@ -33,7 +33,7 @@
>
</td>
<td class="name">
<a href="{{ identity.urls.admin_edit }}" class="overlay"></a>
<a href="{{ identity.urls.admin_edit }}?page={{ page_obj.number }}" class="overlay"></a>
{{ identity.html_name_or_handle }}
<small>@{{ identity.handle }}</small>
</td>

Wyświetl plik

@ -115,7 +115,7 @@
{% endif %}
</div>
<div class="buttons">
<a href="{{ identity.urls.admin }}" class="button secondary left">Back</a>
<a href="{{ identity.urls.admin }}?page={{ page }}" class="button secondary left">Back</a>
<a href="{{ identity.urls.view }}" class="button secondary">View Profile</a>
<button>Save Notes</button>
</div>

Wyświetl plik

@ -90,4 +90,5 @@ class IdentityEdit(FormView):
def get_context_data(self, **kwargs):
context = super().get_context_data(**kwargs)
context["identity"] = self.identity
context["page"] = self.request.GET.get("page")
return context