2021-03-18 22:20:59 +00:00
|
|
|
<!doctype html>
|
|
|
|
<html lang="en">
|
|
|
|
<head>
|
|
|
|
<!-- Required meta tags -->
|
|
|
|
<meta charset="utf-8">
|
|
|
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
|
|
|
|
|
|
<!-- Bootstrap CSS -->
|
2021-03-19 20:15:43 +00:00
|
|
|
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@5.0.0-beta2/dist/css/bootstrap.min.css" integrity="sha256-nq7J0kse50upWdNiXRDsuGd/AkfaHz0hX8HgCUsCASY=" crossorigin="anonymous">
|
|
|
|
<!-- Fontawesome CSS -->
|
|
|
|
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@fortawesome/fontawesome-free@5.15.3/css/all.min.css" integrity="sha256-2H3fkXt6FEmrReK448mDVGKb3WW2ZZw35gI7vqHOE4Y=" crossorigin="anonymous">
|
2021-03-19 12:41:52 +00:00
|
|
|
<!-- Bootstrap Table CSS -->
|
2021-03-19 20:15:43 +00:00
|
|
|
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap-table@1.18.2/dist/bootstrap-table.min.css" integrity="sha256-mypXFtMz9LOewBHR7iL9Ls3/eerooDeTAtLpo6gmTwU=" crossorigin="anonymous">
|
2021-03-18 22:20:59 +00:00
|
|
|
|
|
|
|
{% if title %}
|
|
|
|
<title>{{title}}</title>
|
|
|
|
{% else %}
|
|
|
|
<title>AdvLabDB</title>
|
|
|
|
{% endif %}
|
|
|
|
</head>
|
|
|
|
<body>
|
|
|
|
<nav class="navbar navbar-expand-lg navbar-light bg-light">
|
|
|
|
<div class="container-fluid">
|
|
|
|
<a class="navbar-brand" href="{{url_for('index')}}">AdvLabDB</a>
|
2021-03-20 14:41:22 +00:00
|
|
|
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbar" aria-controls="navbar" aria-expanded="false" aria-label="Toggle navigation">
|
2021-03-18 22:20:59 +00:00
|
|
|
<span class="navbar-toggler-icon"></span>
|
|
|
|
</button>
|
2021-03-20 14:41:22 +00:00
|
|
|
<div class="collapse navbar-collapse" id="navbar">
|
|
|
|
<ul class="navbar-nav">
|
2021-04-01 12:08:42 +00:00
|
|
|
{% for item in navbarItems(title) %}
|
2021-03-20 14:41:22 +00:00
|
|
|
<li class="nav-item">
|
|
|
|
{{item|safe}}
|
|
|
|
</li>
|
|
|
|
{% endfor %}
|
2021-04-16 12:21:53 +00:00
|
|
|
{% if current_user.is_authenticated %}
|
2021-03-20 14:41:22 +00:00
|
|
|
<li class="nav-item dropdown">
|
|
|
|
<a class="nav-link dropdown-toggle" id="navbarDropdownMenuLink" role="button" data-bs-toggle="dropdown" aria-expanded="false">
|
2021-04-16 16:14:22 +00:00
|
|
|
Semester {{activeSemesterLabel()}}
|
2021-03-20 14:41:22 +00:00
|
|
|
</a>
|
|
|
|
<ul class="dropdown-menu" aria-labelledby="navbarDropdownMenuLink">
|
|
|
|
{% for item in semesterDropDownItems() %}
|
|
|
|
{{item|safe}}
|
|
|
|
{% endfor %}
|
|
|
|
</ul>
|
|
|
|
</li>
|
2021-04-16 12:21:53 +00:00
|
|
|
{% endif %}
|
2021-03-20 14:41:22 +00:00
|
|
|
</ul>
|
2021-03-18 22:20:59 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</nav>
|
2021-03-19 15:30:02 +00:00
|
|
|
<div class="container-fluid">
|
|
|
|
<br>
|
2021-04-16 16:14:22 +00:00
|
|
|
{% with messages = get_flashed_messages(with_categories=True) %}
|
2021-03-31 23:04:21 +00:00
|
|
|
{% if messages %}
|
|
|
|
{% for category, message in messages %}
|
|
|
|
<div class="alert alert-{{category}}">
|
2021-04-16 16:14:22 +00:00
|
|
|
{{message}}
|
2021-03-31 23:04:21 +00:00
|
|
|
</div>
|
|
|
|
{% endfor %}
|
|
|
|
{% endif %}
|
|
|
|
{% endwith %}
|
|
|
|
|
2021-03-19 15:30:02 +00:00
|
|
|
{% block content %}{% endblock content %}
|
|
|
|
<br>
|
|
|
|
</div>
|
2021-03-18 22:20:59 +00:00
|
|
|
|
2021-03-19 12:41:52 +00:00
|
|
|
<!-- jQuery JS -->
|
|
|
|
<script src="https://cdn.jsdelivr.net/npm/jquery@3.6.0/dist/jquery.min.js" integrity="sha256-/xUj+3OJU5yExlq6GSYGSHk7tPXikynS7ogEvDej/m4=" crossorigin="anonymous"></script>
|
2021-03-18 22:20:59 +00:00
|
|
|
<!-- Bootstrap Bundle with Popper -->
|
2021-03-19 20:15:43 +00:00
|
|
|
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.0.0-beta2/dist/js/bootstrap.bundle.min.js" integrity="sha256-tfbRzZ36wuPoeUKXyuewrLOzcfgdO2ovc4ozuYRWMs4=" crossorigin="anonymous"></script>
|
2021-03-19 12:41:52 +00:00
|
|
|
<!-- Bootstrap Table JS -->
|
2021-03-19 20:15:43 +00:00
|
|
|
<script src="https://cdn.jsdelivr.net/npm/bootstrap-table@1.18.2/dist/bootstrap-table.min.js" integrity="sha256-8mXaKD8IdqCXwwzNpp/WHddQZi77Bin0cma5y1G+B9E=" crossorigin="anonymous"></script>
|
2021-03-19 12:41:52 +00:00
|
|
|
<!-- Bootstrap Table Export extension JS -->
|
2021-03-19 20:15:43 +00:00
|
|
|
<script src="https://cdn.jsdelivr.net/npm/tableexport.jquery.plugin@1.10.21/libs/FileSaver/FileSaver.min.js" integrity="sha256-S1CD3kZ9K/shgqLK8lnh6K5A/GQANjwwG+gLA1OL+Jg=" crossorigin="anonymous"></script>
|
|
|
|
<script src="https://cdn.jsdelivr.net/npm/tableexport.jquery.plugin@1.10.21/libs/jsPDF/jspdf.min.js" integrity="sha256-B74p+AfarPBbH2e1zQiOJFDizKgXS2sPNkUsST4+cKA=" crossorigin="anonymous"></script>
|
|
|
|
<script src="https://cdn.jsdelivr.net/npm/tableexport.jquery.plugin@1.10.21/libs/jsPDF-AutoTable/jspdf.plugin.autotable.js" integrity="sha256-V3ovkrEpDyy74G52YBOG4TSBoC2sHkbbitBEp9/kZcY=" crossorigin="anonymous"></script>
|
|
|
|
<script src="https://cdn.jsdelivr.net/npm/tableexport.jquery.plugin@1.10.21/tableExport.min.js" integrity="sha256-/VfFIAF4GLBN7iah7RFGi+zISoczKczfQTP4Dh4N0uw=" crossorigin="anonymous"></script>
|
|
|
|
<script src="https://cdn.jsdelivr.net/npm/bootstrap-table@1.18.2/dist/extensions/export/bootstrap-table-export.min.js" integrity="sha256-C4hVBAtUi42+NXYGkjgx4WD7lGG205ZVtcHo6UMIge8=" crossorigin="anonymous"></script>
|
2021-04-17 00:19:38 +00:00
|
|
|
{% block scripts %}{% endblock scripts %}
|
2021-03-18 22:20:59 +00:00
|
|
|
</body>
|
|
|
|
</html>
|