aboutsummaryrefslogtreecommitdiffstats
path: root/templates/staff/tables/index.html
blob: 206234bbe6ca4d49962b329d3a85ae9861374778 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
{% extends "main/base.html" %}
{% block title %}Staff | Tables{% endblock %}
{% block og_title %}Staff | Tables{% endblock %}
{% block og_description %}Table management and editor{% endblock %}
{% block content %}
    <div class="uk-container uk-section uk-container-small">
        <a class="uk-button uk-button-default" href="{{ url_for("staff.index") }}"><i class="uk-icon fa-fw fas fa-arrow-left"></i> &nbsp;Back</a>
        <h1 class="uk-title uk-text-center">
            Table manager
        </h1>
        <p>
            Click one of the tables below to manage its data:
        </p>
        <ul>
            {% for table, obj in tables.items() %}
                {% if obj.locked %}
                    <li>
                        <a href="{{ url_for("staff.tables.table", table=table, page=1) }}" title="Table locked for editing">
                            <i class="uk-icon fa-fw fas fa-lock"></i> &nbsp;{{ table }}
                        </a>
                    </li>
                {% else %}
                    <li>
                        <a href="{{ url_for("staff.tables.table", table=table, page=1) }}">
                            <i class="uk-icon fa-fw fas fa-pencil"></i> &nbsp;{{ table }}
                        </a>
                    </li>
                {% endif %}
            {% endfor %}
        </ul>
    </div>
{% endblock %}