2
0
Fork 0

Add footer in base template

This commit is contained in:
Luca 2022-04-28 16:02:21 +02:00
parent 16bc397b60
commit d6cb71f804
2 changed files with 15 additions and 7 deletions

View File

@ -28,16 +28,14 @@
{% block content %}{% endblock %} {% block content %}{% endblock %}
</div> </div>
</section> </section>
{% endblock %}
{% block footer %}
{% if DEBUG %} {% if DEBUG %}
<footer class="footer"> Debug-Modus:
<div class="container">
Debug-Modus:
{% if helper %} {% if helper %}
<a href="{% url 'token_logout' %}">logout</a> <a href="{% url 'token_logout' %}">logout</a>
<a href="{{ helper.logintoken_set.first.get_absolute_url }}">login url</a> <a href="{{ helper.logintoken_set.first.get_absolute_url }}">login url</a>
{% endif %} {% endif %}
</div>
</footer>
{% endif %} {% endif %}
{% endblock %} {% endblock %}

View File

@ -27,8 +27,18 @@
</div> </div>
</nav> </nav>
{% block body %} {% block body %}
<section class="section">
<div class="container">
{% include 'notifications.html' %} {% include 'notifications.html' %}
</div>
</section>
{% endblock %} {% endblock %}
<footer class="footer">
<div class="container">
{% block footer %}
{% endblock %}
</div>
</footer>
<script> <script>
document.querySelectorAll('.delete').forEach(btn => btn.addEventListener('click', event => event.target.parentElement.remove())); document.querySelectorAll('.delete').forEach(btn => btn.addEventListener('click', event => event.target.parentElement.remove()));
document.querySelectorAll('.navbar-burger').forEach(el => el.addEventListener('click', () => { document.querySelectorAll('.navbar-burger').forEach(el => el.addEventListener('click', () => {