Skip to content

Commit

Permalink
Improve notes list
Browse files Browse the repository at this point in the history
  • Loading branch information
medihack committed Jan 25, 2024
1 parent 94cdfb9 commit a857531
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 6 deletions.
5 changes: 0 additions & 5 deletions radis/core/templates/core/_table_filters.html

This file was deleted.

5 changes: 4 additions & 1 deletion radis/notes/templates/notes/note_list.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,10 @@
<h4 class="mb-3">Notes</h4>
{% endblock heading %}
{% block content %}
<div class="mb-3">{% crispy filter.form %}</div>
<div class="d-flex justify-content-between mb-2">
<div>{% crispy filter.form %}</div>
<div>{% crispy page_size_select %}</div>
</div>
{% for note in notes %}
{% include "notes/_note_list_item.html" %}
{% empty %}
Expand Down
1 change: 1 addition & 0 deletions radis/notes/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ class NoteListView(LoginRequiredMixin, PageSizeSelectMixin, FilterView):
context_object_name = "notes"
filterset_class = NoteFilter
paginate_by = 10
page_sizes = [10, 25, 50]
request: AuthenticatedHttpRequest

def get_queryset(self) -> QuerySet[Note]:
Expand Down

0 comments on commit a857531

Please sign in to comment.