protocols-list.html 819 Bytes
Newer Older
1
{% extends "layout.html" %}
Robin Sonnabend's avatar
Robin Sonnabend committed
2
{% from "macros.html" import render_table, render_form %}
3
4
{% block title %}Protokolle{% 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, state_open=state_open, page_length=_page_length)}}">{{text}}</a>
Robin Sonnabend's avatar
Robin Sonnabend committed
13
14
{% endmacro %}

15
16
{% block content %}
<div class="container">
Robin Sonnabend's avatar
Robin Sonnabend committed
17
    {{render_form(search_form, class_="form-inline", action_url=url_for("list_protocols"), action_text="Suchen", labels_visible=False, method="GET")}}
18
    {{render_table(protocols_table)}}
Robin Sonnabend's avatar
Robin Sonnabend committed
19
    {% include "pagination-footer.html" %}
20
21
</div>
{% endblock %}