konova/templates/base.html

66 lines
2.1 KiB
HTML
Raw Normal View History

2021-07-01 13:36:07 +02:00
<!DOCTYPE html>
{% load static i18n l10n fontawesome_5 bootstrap4 %}
2021-07-01 13:36:07 +02:00
<html lang="{{ language }}">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>{{ tab_title }}</title>
2021-08-19 09:12:13 +02:00
<link rel="icon" type="image/ico" href="{% static 'images/ksp-favicon.ico' %}">
2021-07-01 14:38:57 +02:00
{% bootstrap_css %}
{% bootstrap_javascript jquery='full' %}
2021-07-01 13:36:07 +02:00
{% fontawesome_5_static %}
2021-07-02 11:38:44 +02:00
<link rel="stylesheet" href="{% static 'css/konova.css' %}">
{% comment %}
Adds script for modal rendering. Script depends on Jquery, therefore it needs to be loaded afterwards.
{% endcomment %}
<script src="{% static 'js/jquery.bootstrap.modal.forms.min.js' %}"></script>
<script src="https://unpkg.com/htmx.org@1.6.1"></script>
2021-07-01 13:36:07 +02:00
{% block head %}
{% endblock %}
</head>
<body>
2021-07-02 11:38:44 +02:00
<header>
{% block header %}
{% include 'navbars/navbar.html' %}
2021-07-02 11:38:44 +02:00
{% endblock %}
</header>
<div class="col">
{% for message in messages %}
<div class="row alert alert-{{ message.tags }}">
<div>
<span class="mr-3">
{% if "danger" in message.tags %}
{% fa5_icon 'exclamation' %}
{% elif "info" in message.tags %}
{% fa5_icon 'info' %}
{% elif "success" in message.tags %}
{% fa5_icon 'check' %}
{% endif %}
</span>
{{ message }}
</div>
</div>
{% endfor %}
</div>
<div class="container-fluid mt-3 mb-5 px-4">
{% comment %}
The modal wrapper, which can be used on every view can stay on the base.html template
{% endcomment %}
<div class="modal fade" tabindex="-1" role="dialog" id="modal">
<div class="modal-dialog modal-md modal-xl" role="document">
<div class="modal-content"></div>
</div>
</div>
{% block body %}
2021-07-01 13:36:07 +02:00
{% endblock %}
2021-07-01 13:36:07 +02:00
</div>
2021-07-02 11:38:44 +02:00
2021-07-02 13:46:06 +02:00
{% block footer %}
{% include 'footer.html' %}
{% endblock %}
2021-07-01 13:36:07 +02:00
</body>
</html>