admin_topic_index.html 1.57 KB
Newer Older
YSelf Tool's avatar
YSelf Tool committed
1
{% extends "admin_index.html" %}
Hinrikus Wolf's avatar
Hinrikus Wolf committed
2
{% block admin_title %}Topics{% endblock %}
YSelf Tool's avatar
YSelf Tool committed
3
4
5
6
7
8
9

{% 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>
YSelf Tool's avatar
YSelf Tool committed
11
12
13
14
                    <th class="mdl-data-table__cell--non-numeric">Delete</th>
                </tr>
            </thead>
            <tbody>
Hinrikus Wolf's avatar
Hinrikus Wolf committed
15
            {% for topic in topics %}
YSelf Tool's avatar
YSelf Tool committed
16
                <tr>
Hinrikus Wolf's avatar
Hinrikus Wolf committed
17
                    <td class="mdl-data-table__cell--non-numeric"><a href="{{ url_for(".topic_edit", id=topic.id) }}">{{ topic.name }}</a></td>
Hinrikus Wolf's avatar
Hinrikus Wolf committed
18
                    <td class="mdl-data-table__cell--non-numeric">{{ topic.mode }}</td>
YSelf Tool's avatar
YSelf Tool committed
19
                    <td class="mdl-data-table__cell--non-numeric">
Hinrikus Wolf's avatar
Hinrikus Wolf committed
20
                        <a href="{{ url_for('.topic_delete', id=topic.id) }}">
YSelf Tool's avatar
YSelf Tool committed
21
22
23
24
25
26
27
28
29
                            <i class="material-icons">delete</i>
                        </a>
                    </td>
                </tr>
            {% endfor %}
            </tbody>
        </table>
        <div class="rede-separator">
            <div class="mdl-cell mdl-cell--1-col">
Hinrikus Wolf's avatar
Hinrikus Wolf committed
30
                <a class="mdl-button mdl-button--colored mdl-js-button mdl-button--fab mdl-js-ripple-effect" href="{{ url_for('.topic_new') }}">
YSelf Tool's avatar
YSelf Tool committed
31
32
33
34
35
36
                    <i class="material-icons">add</i>
                </a>
            </div>
        </div>
    </div>
{% endblock %}