decisions-list.html 837 Bytes
Newer Older
Robin Sonnabend's avatar
Robin Sonnabend committed
1
2
3
4
{% extends "layout.html" %}
{% from "macros.html" import render_table, render_form %}
{% block title %}Beschlüsse{% endblock %}

Robin Sonnabend's avatar
Robin Sonnabend committed
5
{% macro page_link(text, _page=None, _page_length=None) %}
6
7
8
9
10
11
	{% if _page is none %}
		{% set _page = page %}
	{% endif %}
	{% if _page_length is none %}
		{% set _page_length = page_length %}
	{% endif %}
12
    <a href="{{url_for(request.endpoint, page=_page, protocoltype_id=protocoltype_id, search=search_term, decisioncategory_id=decisioncategory_id, page_length=_page_length)}}">{{text}}</a>
Robin Sonnabend's avatar
Robin Sonnabend committed
13
14
15
16
17
18
{% endmacro %}

{% block content %}
<div class="container">
    {{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)}}
Robin Sonnabend's avatar
Robin Sonnabend committed
19
    {% include "pagination-footer.html" %}
Robin Sonnabend's avatar
Robin Sonnabend committed
20
21
</div>
{% endblock %}