Add footer in base template
This commit is contained in:
parent
16bc397b60
commit
d6cb71f804
|
@ -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 %}
|
||||||
|
|
|
@ -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', () => {
|
||||||
|
|
Loading…
Reference in New Issue