admin_event_index.html 1.81 KB
Newer Older
Hinrikus Wolf's avatar
Hinrikus Wolf committed
1 2 3 4 5 6 7 8 9
{% extends "admin_index.html" %}
{% block admin_title %}Event{% endblock %}

{% block content %}
    <div class="mdl-cell mdl-cell--3-col mdl-grid mdl-grid--no-spacing">
        <table class="mdl-data-table mdl-js-table mdl-shadow--2dp mdl-cell mdl-cell--3-col">
            <thead>
                <tr>
                    <th class="mdl-data-table__cell--non-numeric">Name</th>
10
                    <th class="mdl-data-table__cell--non-numeric">Mode</th>
Robin Sonnabend's avatar
Robin Sonnabend committed
11
                    <th class="mdl-data-table__cell--non-numeric">Edit</th>
Hinrikus Wolf's avatar
Hinrikus Wolf committed
12 13 14 15 16 17
                    <th class="mdl-data-table__cell--non-numeric">Delete</th>
                </tr>
            </thead>
            <tbody>
            {% for event in events %}
                <tr>
Robin Sonnabend's avatar
Robin Sonnabend committed
18 19 20 21 22 23
                    <td class="mdl-data-table__cell--non-numeric"><a href="{{ url_for(".event_show", id=event.id) }}">{{ event.name }}</a></td>
                    <td class="mdl-data-table__cell--non-numeric">
                        <a href="{{ url_for(".event_edit", id=event.id) }}">
                            <i class="material-icons">edit</i>
                        </a>
                    </td>
Hinrikus Wolf's avatar
Hinrikus Wolf committed
24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41
                    <td class="mdl-data-table__cell--non-numeric">
                        <a href="{{ url_for('.event_delete', id=event.id) }}">
                            <i class="material-icons">delete</i>
                        </a>
                    </td>
                </tr>
            {% endfor %}
            </tbody>
        </table>
        <div class="rede-separator">
            <div class="mdl-cell mdl-cell--1-col">
                <a class="mdl-button mdl-button--colored mdl-js-button mdl-button--fab mdl-js-ripple-effect" href="{{ url_for('.event_new') }}">
                    <i class="material-icons">add</i>
                </a>
            </div>
        </div>
    </div>
{% endblock %}