<!doctype html>
<title>Space Token Administration - {% block title %}{% endblock %}</title>

<nav>
  <ul>
    <li><a href="{{ url_for('door_lock') }}">Home</a>
    <li><a href="{{ url_for('register') }}">Token Registrierung</a>
    <li><a href="{{ url_for('list_tokens') }}">Token Übersicht</a>
    {% if current_user.is_authenticated %}
        <li><a href="{{ url_for('security.change_password') }}">Passwort ändern</a>
        <li><a href="{{ url_for('security.logout') }}">Benutzer <span>{{ current_user.username }}</span> ausloggen</a>
    {% else %}
      <li><a href="{{ url_for('security.login') }}">Einloggen</a>
    {% endif %}
  </ul>
</nav>
<section class="content">
  <header>
    {% block header %}{% endblock %}
  </header>
  {% for message in get_flashed_messages() %}
    <div class="flash">{{ message }}</div>
  {% endfor %}
  {% block content %}{% endblock %}
</section>