summaryrefslogtreecommitdiffstats
path: root/ogcp/templates/base.html
blob: 5fda82a5d116b0f11ef985d27a1d873e2e8cce3a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
<!DOCTYPE html>
<html lang="en">
<head>
    {% block head %}
    <title>{% block title %}{% endblock %} - OpenGnsys</title>

    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <!-- Font Awesome Icons -->
    <link rel="stylesheet" href="{{ url_for('static', filename='AdminLTE/plugins/fontawesome-free/css/all.min.css') }}">
    <!-- Theme style -->
    <link rel="stylesheet" href="{{ url_for('static', filename='AdminLTE/dist/css/adminlte.min.css') }}">
    <link rel="stylesheet" href="{{ url_for('static', filename='css/soleta.css') }}" />
    {% endblock %}
</head>
<body>
    <div class="main d-flex flex-column align-items-stretch h-100">
        {% include 'nav.html' %}
        {% block nav %}{% endblock %}
        {% block flash %}
        {% for category, message in get_flashed_messages(with_categories=True) %}
            {% if category == 'info' %}
                <div class="alert alert-info alert-dismissible fade show m-1" role="alert">
            {% elif category == 'error' %}
                <div class="alert alert-danger alert-dismissible fade show m-1" role="alert">
            {% else %}
                <div class="alert alert-warning alert-dismissible fade show m-1" role="alert">
            {% endif %}
                {{ message }}
                <button type="button" class="close" data-dismiss="alert" aria-label="{{ _('Close') }}">
                    <span aria-hidden="true">&times;</span>
                </button>
            </div>
        {% endfor %}
        {% endblock %}

        <div id="content" class="container-fluid flex-grow-1">{% block content %}{% endblock %}</div>

        {% block footer %}
        <footer class="footer navbar-inverse bg-dark flex-shrink-0" role="contentinfo">
            <div class="text-center text-secondary mt-1 p-3">
                Powered by
                <a class="text-light" href="https://opengnsys.soleta.eu/">Soleta Networks</a>
            </div>
        </footer>
        {% endblock %}
    </div>

    <!-- jQuery -->
    <script src="{{ url_for('static', filename='AdminLTE/plugins/jquery/jquery.min.js') }}"></script>
    <!-- Bootstrap 4 -->
    <script src="{{ url_for('static', filename='AdminLTE/plugins/bootstrap/js/bootstrap.bundle.min.js') }}"></script>
    <!-- AdminLTE App -->
    <script src="{{ url_for('static', filename='AdminLTE/dist/js/adminlte.min.js') }}"></script>
</body>
</html>