<!DOCTYPE html>
<html lang="en">

<head>

    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
    <meta name="author" content="Enzo Foucaud">

    <title>OxyCardio - Error {{error_code}}</title>

    <!-- Custom fonts for this template-->
    <link href="../../static/vendor/fontawesome-free/css/all.min.css" rel="stylesheet" type="text/css">
    <link href="https://fonts.googleapis.com/css?family=Nunito:200,200i,300,300i,400,400i,600,600i,700,700i,800,800i,900,900i"
          rel="stylesheet">

    <!-- Custom styles for this template-->
    <link href="../../static/css/sb-admin-2.min.css" rel="stylesheet">

</head>

<body id="page-top">

<!-- Page Wrapper -->
<div id="wrapper">

    <!-- Sidebar -->
    <ul class="navbar-nav bg-gradient-primary sidebar sidebar-dark accordion" id="accordionSidebar">

        <!-- Sidebar - Brand -->
        <a class="sidebar-brand d-flex align-items-center justify-content-center" href="login">
            <div class="sidebar-brand-icon rotate-n-15">
                <i class="fas fa-laugh-wink"></i>
            </div>
            <div class="sidebar-brand-text mx-3">Oxycardio</div>
        </a>

        <!-- Divider -->
        <hr class="sidebar-divider my-0">
        {% if error_code==400 %}
        <!-- Nav Item - Dashboard -->
        <li class="nav-item">
            <a class="nav-link" href="login">
                <i class="fas fa-fw fa-user"></i>
                <span>Retourner à la page login</span></a>
        </li>
        {% endif %}
        {% if error_code==403 %}
        <!-- Nav Item - Dashboard -->
        <li class="nav-item">
            <a class="nav-link" href="login">
                <i class="fas fa-fw fa-user"></i>
                <span>Retourner à la page login</span></a>
        </li>
        {% endif %}
        {% if error_code==404 %}
        <!-- Nav Item - Dashboard -->
        <li class="nav-item">
            <a class="nav-link" href="login">
                <i class="fas fa-fw fa-user"></i>
                <span>Retourner à la page index</span></a>
        </li>
        {% endif %}
        {% if error_code==405 %}
        <!-- Nav Item - Dashboard -->
        <li class="nav-item">
            <a class="nav-link" href="index">
                <i class="fas fa-fw fa-user"></i>
                <span>Retourner à l'index</span></a>
        </li>
        {% endif %}
        {% if error_code==500 %}
        <!-- Nav Item - Dashboard -->
        <li class="nav-item">
            <a class="nav-link" href="index">
                <i class="fas fa-fw fa-user"></i>
                <span>Retourner à l'index</span></a>
        </li>
        {% endif %}
        {% if error_code==503 %}
        <!-- Nav Item - Dashboard -->
        <li class="nav-item">
            <a class="nav-link" href="index">
                <i class="fas fa-fw fa-user"></i>
                <span>Retourner à la page login</span></a>
        </li>
        {% endif %}

        <!-- Divider -->
        <hr class="sidebar-divider d-none d-md-block">

        <!-- Sidebar Toggler (Sidebar) -->
        <div class="text-center d-none d-md-inline">
            <button class="rounded-circle border-0" id="sidebarToggle"></button>
        </div>

    </ul>
    <!-- End of Sidebar -->

    <!-- Content Wrapper -->
    <div id="content-wrapper" class="d-flex flex-column">

        <!-- Main Content -->
        <div id="content">

            <!-- Topbar -->
            <nav class="navbar navbar-expand navbar-light bg-white topbar mb-4 static-top shadow">
                {% include 'topbar.html' %}
            </nav>
            <!-- End of Topbar -->

            <!-- Begin Page Content -->
            <div class="container-fluid">

                <!-- 404 Error Text -->
                <div class="text-center">
                    <div class="error mx-auto" data-text="{{error_code}}">{{error_code}}</div>
                    <p class="lead text-gray-800 mb-5">{{error_message}}</p>
                    <p class="text-gray-500 mb-0">It looks like you found a glitch in the matrix...</p>
                    {% if error_code==400 %}
                    <a href="{{ url_for('index') }}">&larr; Revenir à la page de connexion</a>
                    {% endif %}
                    {% if error_code==403 %}
                    <a href="{{ url_for('index') }}">&larr; Revenir à la page de connexion</a>
                    {% endif %}
                    {% if error_code==404 %}
                    <a href="{{ url_for('index') }}">&larr; Revenir à la page de index</a>
                    {% endif %}
                    {% if error_code==405 %}
                    <a href="{{ url_for('index') }}">&larr; Revenir à la page index</a>
                    {% endif %}
                    {% if error_code==500 %}
                    <a href="{{ url_for('index') }}">&larr; Revenir à la page index</a>
                    {% endif %}
                    {% if error_code==503 %}
                    <a href="{{ url_for('index') }}">&larr; Revenir à la page index</a>
                    {% endif %}
                </div>

            </div>
            <!-- /.container-fluid -->

        </div>
        <!-- End of Main Content -->

        <!-- Footer -->
        {% include 'footer.html' %}
        <!-- End of Footer -->

    </div>
    <!-- End of Content Wrapper -->

</div>
<!-- End of Page Wrapper -->

<!-- Scroll to Top Button-->
<a class="scroll-to-top rounded" href="#page-top">
    <i class="fas fa-angle-up"></i>
</a>

<!-- Logout Modal-->
<div class="modal fade" id="logoutModal" tabindex="-1" role="dialog" aria-labelledby="exampleModalLabel"
     aria-hidden="true">
    {% include 'auth/logout_modal.html' %}
</div>

</body>

</html>
