123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124 |
- <!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="description" content="">
- <meta name="author" content="">
- <title>{% block title %}{% endblock %} - PACC</title>
- {% block head%}{% endblock %}
- <!-- Bootstrap core CSS-->
- <link href="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css" rel="stylesheet">
- <!-- Custom fonts for this template-->
- <link href="https://stackpath.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css" rel="stylesheet">
- <!-- Custom styles for this template-->
- <link href="{{ url_for('static', filename='css/sb-admin.css') }}" rel="stylesheet">
- <link href="{{ url_for('static', filename='css/custom.css') }}" rel="stylesheet">
- </head>
- <body class="fixed-nav sticky-footer bg-dark {{ 'sidenav-toggled' if not current_user.is_authenticated }}" id="page-top">
- <!-- Navigation-->
- <nav class="navbar navbar-expand-lg navbar-dark bg-dark fixed-top" id="mainNav">
- <a class="navbar-brand" href="/">PLA33 API</a>
- <button class="navbar-toggler navbar-toggler-right" type="button" data-toggle="collapse" data-target="#navbarResponsive" aria-controls="navbarResponsive" aria-expanded="false" aria-label="Toggle navigation">
- <span class="navbar-toggler-icon"></span>
- </button>
- <div class="collapse navbar-collapse" id="navbarResponsive">
- <ul class="navbar-nav navbar-sidenav">
- {%- for item in current_menu.children recursive -%}
- <li class="nav-item" data-toggle="tooltip" data-placement="right" title="{{ item.text }}">
- <a class="nav-link" href="{{ item.url}}">
- <span class="nav-link-text">{{ item.text }}</span>
- </a>
- </li>
- {%- endfor -%}
- </ul>
- <ul class="navbar-nav sidenav-toggler">
- <li class="nav-item">
- <a class="nav-link text-center" id="sidenavToggler">
- <i class="fa fa-fw fa-angle-left"></i>
- </a>
- </li>
- </ul>
- <ul class="navbar-nav ml-auto">
- {% if current_user.is_authenticated %}
- <li class="nav-item">
- <a class="nav-link" href="{{ url_for('user_overview', id=current_user.id) }}">{{ current_user.email }}</a>
- </li>
- <li class="nav-item">
- <a class="nav-link" data-toggle="modal" data-target="#logoutModal"><i class="fa fa-fw fa-sign-out"></i>Logout</a>
- </li>
- {% else %}
- <li class="nav-item">
- <a class="nav-link" href="{{ url_for('login') }}">Login</a>
- </li>
- {% endif %}
- </ul>
- </div>
- </nav>
- <div class="content-wrapper">
- <div class="container-fluid">
- <!-- Breadcrumbs-->
- <ol class="breadcrumb">
- {%- for breadcrumb in breadcrumbs -%}
- <li class="breadcrumb-item">
- <a href="{{ breadcrumb.url }}">{{ breadcrumb.text }}</a>
- </li>
- {%- endfor -%}
- </ol>
- <div id="content">
- {% with messages = get_flashed_messages(with_categories=true) %}
- {% if messages %}
- {% for category, message in messages %}
- <div class="alert alert-{{ category }} alert-dismissible fade show" role="alert">
- {{ message }}
- <button type="button" class="close" data-dismiss="alert" aria-label="Close">
- <span aria-hidden="true">×</span>
- </button>
- </div>
- {% endfor %}
- {% endif %}
- {% endwith %}
- <h1>{{ self.title() }}</h1>
- {% block content %}{% endblock %}
- </div>
- </div>
- <!-- /.container-fluid-->
- <!-- /.content-wrapper-->
- <footer class="sticky-footer">
- <div class="container">
- <div class="text-center">
- <small>Copyright © VBOO 2019</small>
- </div>
- </div>
- </footer>
- <!-- Scroll to Top Button-->
- <a class="scroll-to-top rounded" href="#page-top">
- <i class="fa fa-angle-up"></i>
- </a>
- <!-- Logout Modal-->
- <div class="modal fade" id="logoutModal" tabindex="-1" role="dialog" aria-labelledby="logoutModalLabel" aria-hidden="true">
- <div class="modal-dialog" role="document">
- <div class="modal-content">
- <div class="modal-header">
- <h5 class="modal-title" id="logoutModalLabel">Ready to Leave?</h5>
- <button class="close" type="button" data-dismiss="modal" aria-label="Close">
- <span aria-hidden="true">×</span>
- </button>
- </div>
- <div class="modal-body">Click the "logout" out button to logout</div>
- <div class="modal-footer">
- <button class="btn btn-secondary" type="button" data-dismiss="modal">Cancel</button>
- <a class="btn btn-primary" href="{{ url_for('logout') }}">Logout</a>
- </div>
- </div>
- </div>
- </div>
- <script type='text/javascript' src="https://code.jquery.com/jquery-3.4.1.min.js"></script>
- <script type='text/javascript' src="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/js/bootstrap.min.js"></script>
- <script type='text/javascript' src="{{ url_for('static', filename='js/site/sb-admin.js') }}"></script>
- {% block javascript %}{% endblock %}
- </div>
- </body>
- </html>
|