{% extends "layout.html" %} {% from "macros.html" import render_table, render_form %} {% block title %}Beschl├╝sse{% endblock %} {% macro page_link(page, text) %} {{text}} {% endmacro %} {% block content %}
{{render_form(search_form, class_="form-inline", action_url=url_for("list_decisions"), action_text="Suchen", labels_visible=False, method="GET")}} {{render_table(decisions_table)}}
{% if page > page_diff %} {{page_link(0, "<<")}} {% endif %} {% for p in range(max(0, page - page_diff), min(page_count, page + page_diff + 1)) %} {% if p != page %} {{page_link(p, p + 1)}} {% else %} Seite {{p + 1}} {% endif %} {% endfor %} {% if page < page_count - page_diff - 1 %} {{page_link(page_count - 1, ">>")}} {% endif %}
{% endblock %}