shiftregister/shiftregister/app/templates/helper_base.html

44 lines
1.2 KiB
HTML

{% extends "base.html" %}
{% block title %}Help!{% endblock %}
{% block navbar %}
<div class="navbar-start">
{% if not helper%}
<a class="navbar-item" href="{% url 'register' %}">Anmelden</a>
{% else %}
{% if not helper.number_validated %}
<p class="navbar-item has-text-danger">Bestätige deine Telefonnummer über den Link in der SMS</p>
{% endif %}
{% if helper.important_shift %}
<a class="navbar-item" href="{% url 'shift' helper.important_shift.pk %}">{%if helper.important_shift.is_running%}Laufende{% else %}Nächste{% endif %} Schicht({{ helper.important_shift.start_at|date:"H:m" }})</a>
{% endif %}
{% endif %}
</div>
<div class="navbar-end"></div>
{% endblock %}
{% block body %}
<section class="section">
<div class="container">
{% include 'notifications.html' %}
{% if helper %}
<h1 class="title is-1">Hallo {{ helper.name }}!</h1>
{% endif %}
{% block content %}{% endblock %}
</div>
</section>
{% if DEBUG %}
<footer class="footer">
<div class="container">
Debug-Modus:
{% if helper %}
<a href="{% url 'token_logout' %}">logout</a>
<a href="{{ helper.logintoken_set.first.get_absolute_url }}">login url</a>
{% endif %}
</div>
</footer>
{% endif %}
{% endblock %}