mirror of
https://github.com/StefBuwalda/ProjectIOT.git
synced 2025-10-30 03:09:58 +00:00
dashboard + base html created
This commit is contained in:
|
Before Width: | Height: | Size: 4.1 KiB After Width: | Height: | Size: 4.1 KiB |
|
Before Width: | Height: | Size: 8.6 KiB After Width: | Height: | Size: 8.6 KiB |
BIN
application/dashboard/static/images/warpnet-logo.png
Normal file
BIN
application/dashboard/static/images/warpnet-logo.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 4.4 KiB |
43
application/dashboard/templates/base.html
Normal file
43
application/dashboard/templates/base.html
Normal file
@@ -0,0 +1,43 @@
|
|||||||
|
<!DOCTYPE html>
|
||||||
|
<html lang="en">
|
||||||
|
<head>
|
||||||
|
<meta charset="UTF-8">
|
||||||
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||||
|
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.5/dist/css/bootstrap.min.css" rel="stylesheet">
|
||||||
|
<title>Admin Dashboard</title>
|
||||||
|
<script defer src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.5/dist/js/bootstrap.bundle.min.js"></script>
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<div class="container-fluid">
|
||||||
|
<div class="row">
|
||||||
|
<div class="col-md-3 col-lg-2 d-md-block sidebar" style="height: 100vh; background-color: #313A4D;">
|
||||||
|
<div class="position-sticky pt-3">
|
||||||
|
<ul class="nav flex-column">
|
||||||
|
<li class="nav-item">
|
||||||
|
<img src="{{ url_for('static', filename='images/warpnet-logo.png') }}" alt="Logo" class="img-fluid mt-3 mb-3">
|
||||||
|
<hr style="border: 1px solid white; margin-top: 0;">
|
||||||
|
</li>
|
||||||
|
<li class="nav-item">
|
||||||
|
<a class="nav-link active text-white" href="/">
|
||||||
|
Dashboard
|
||||||
|
</a>
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
|
<div class="d-flex justify-content-center mt-3">
|
||||||
|
<a href="/login" class="btn btn-sm btn-dark" style="width: 200px;">Logout</a>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="col-md-9 ms-sm-auto col-lg-10 px-md-4">
|
||||||
|
<div class="d-flex justify-content-between flex-wrap flex-md-nowrap align-items-center pt-3 pb-2 mb-3 border-bottom">
|
||||||
|
<h1 class="display-4 fw-bold" style="color: #313A4D;">Dashboard</h1>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
{%block content%}
|
||||||
|
|
||||||
|
{% endblock %}
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
@@ -1,18 +1,36 @@
|
|||||||
<!DOCTYPE html>
|
{%extends 'base.html' %}
|
||||||
<html lang="en">
|
{% block content %}
|
||||||
<head>
|
|
||||||
<meta charset="UTF-8">
|
<div class="col-md-12">
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
<div class="card mb-4">
|
||||||
<title>Document</title>
|
<div class="card-body">
|
||||||
</head>
|
<h5 class="card-title fs-4">Numberplate Logs</h5>
|
||||||
<body>
|
<div class="log-container" style="max-height: 250px; overflow-y: auto;">
|
||||||
<h1>Bedankt voor de moeite. <br>Dit zijn de ingevulde gegevens:</h1>
|
<table class="table table-sm table-hover">
|
||||||
<ul>
|
<thead>
|
||||||
<li>Naam: {{ session['naam'] }}</li>
|
<tr>
|
||||||
<li>Geslacht: {{ session['geslacht'] }}</li>
|
<th scope="col" class="fs-5">Time</th>
|
||||||
<li>Instrument: {{ session['instrument'] }}</li>
|
<th scope="col" class="fs-5">Numberplate</th>
|
||||||
<li>Plaats: {{ session['plaats'] }}</li>
|
<th scope="col" class="fs-5">Gate Status</th>
|
||||||
<li>Feedback: {{ session['feedback'] }}</li>
|
</tr>
|
||||||
</ul>
|
</thead>
|
||||||
</body>
|
<tbody>
|
||||||
</html>
|
{% for log in recent_logs %}
|
||||||
|
<tr>
|
||||||
|
<td><small class="fs-6">{{ log.timestamp.strftime('%H:%M:%S') }}</small></td>
|
||||||
|
<td><small class="fs-6">{{ log.action }}</small></td>
|
||||||
|
<td>
|
||||||
|
<span class="badge {% if log.status == 'success' %}bg-success{% elif log.status == 'warning' %}bg-warning{% elif log.status == 'error' %}bg-danger{% else %}bg-secondary{% endif %} fs-6">
|
||||||
|
{{ log.status }}
|
||||||
|
</span>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
{% endfor %}
|
||||||
|
</tbody>
|
||||||
|
</table>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
{% endblock %}
|
||||||
@@ -44,7 +44,7 @@
|
|||||||
<body>
|
<body>
|
||||||
<div class="split-background">
|
<div class="split-background">
|
||||||
<div class="container-fluid text-center">
|
<div class="container-fluid text-center">
|
||||||
<img src="../static/images/logo-light.png" alt="Logo" class="logo" class="img-fluid mt-5">
|
<img src="{{ url_for('static', filename='images/logo-light.png') }}" alt="Logo" class="logo img-fluid mt-5">
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="container d-flex justify-content-center align-items-center" style="min-height: 100vh;">
|
<div class="container d-flex justify-content-center align-items-center" style="min-height: 100vh;">
|
||||||
@@ -64,7 +64,7 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="car-image-container">
|
<div class="car-image-container">
|
||||||
<img src="../static/images/car.png" alt="Moving Image" class="animate">
|
<img src="{{ url_for('static', filename='images/car.png') }}" alt="Moving Image" class="animate">
|
||||||
</div>
|
</div>
|
||||||
<footer class="py-3 bg-dark text-white fixed-bottom"">
|
<footer class="py-3 bg-dark text-white fixed-bottom"">
|
||||||
<div class="container text-center">
|
<div class="container text-center">
|
||||||
|
|||||||
Reference in New Issue
Block a user