protocols-list.html 693 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
6
{% macro page_link(text, _page=None, _page_length=None) %}
    <a href="{{url_for(request.endpoint, page=_page or page, protocoltype=protocoltype_id, search=search_term, state_open=state_open, page_length=_page_length or page_length)}}">{{text}}</a>
Robin Sonnabend's avatar
Robin Sonnabend committed
7
8
{% endmacro %}

9
10
{% block content %}
<div class="container">
Robin Sonnabend's avatar
Robin Sonnabend committed
11
    {{render_form(search_form, class_="form-inline", action_url=url_for("list_protocols"), action_text="Suchen", labels_visible=False, method="GET")}}
12
    {{render_table(protocols_table)}}
Robin Sonnabend's avatar
Robin Sonnabend committed
13
    {% include "pagination-footer.html" %}
14
15
</div>
{% endblock %}