diff --git a/fet2020/finance/views.py b/fet2020/finance/views.py index 0d336e05..13be848c 100644 --- a/fet2020/finance/views.py +++ b/fet2020/finance/views.py @@ -106,6 +106,9 @@ class ResolutionListView(LoginRequiredMixin, ListView): model = Resolution template_name = "finance/resolution_list.html" + ordering = ["-id"] + paginate_by = 10 + class ResolutionUpdateView(LoginRequiredMixin, UpdateView): form_class = ResolutionUpdateForm diff --git a/fet2020/templates/finance/resolution_list.html b/fet2020/templates/finance/resolution_list.html index 09128353..96cab341 100644 --- a/fet2020/templates/finance/resolution_list.html +++ b/fet2020/templates/finance/resolution_list.html @@ -6,43 +6,61 @@

Beschlusssammlung

+ + Beschluss eingeben + -
-
- - {% for result in object_list %} -
-

{{ result.id }}: {{ result.name }}

-
    -
  • {{ result.get_option_display }}
  • -
  • {{ result.date }}
  • -
  • Abstimmungsverhalten: {{ result.voting }}
  • -
-
- {% endfor %} - +
+
+ + + + + + + + + + + + {% for result in object_list %} + + + + + + + + {% endfor %} + +
NummerBezeichnungAbstimmungstextAbstimmungsverhalten
{{ result.id }}{{ result.name }}{{ result.voting_text }}{{ result.voting }} + +
-
- - {% if not object_list %} -
-
-

Keinen Beschluss in dieser Liste.

+ + {% if is_paginated %} +
+
+ +
-
- {% endif %} - -
-
- -
+ {% endif %}
{% endblock %}