mirror of
https://github.com/StefBuwalda/ProjectIOT.git
synced 2025-10-29 18:59:57 +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>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>Document</title>
|
||||
</head>
|
||||
<body>
|
||||
<h1>Bedankt voor de moeite. <br>Dit zijn de ingevulde gegevens:</h1>
|
||||
<ul>
|
||||
<li>Naam: {{ session['naam'] }}</li>
|
||||
<li>Geslacht: {{ session['geslacht'] }}</li>
|
||||
<li>Instrument: {{ session['instrument'] }}</li>
|
||||
<li>Plaats: {{ session['plaats'] }}</li>
|
||||
<li>Feedback: {{ session['feedback'] }}</li>
|
||||
</ul>
|
||||
</body>
|
||||
</html>
|
||||
{%extends 'base.html' %}
|
||||
{% block content %}
|
||||
|
||||
<div class="col-md-12">
|
||||
<div class="card mb-4">
|
||||
<div class="card-body">
|
||||
<h5 class="card-title fs-4">Numberplate Logs</h5>
|
||||
<div class="log-container" style="max-height: 250px; overflow-y: auto;">
|
||||
<table class="table table-sm table-hover">
|
||||
<thead>
|
||||
<tr>
|
||||
<th scope="col" class="fs-5">Time</th>
|
||||
<th scope="col" class="fs-5">Numberplate</th>
|
||||
<th scope="col" class="fs-5">Gate Status</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
{% 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>
|
||||
<div class="split-background">
|
||||
<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 class="container d-flex justify-content-center align-items-center" style="min-height: 100vh;">
|
||||
@@ -64,7 +64,7 @@
|
||||
</div>
|
||||
</div>
|
||||
<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>
|
||||
<footer class="py-3 bg-dark text-white fixed-bottom"">
|
||||
<div class="container text-center">
|
||||
|
||||
Reference in New Issue
Block a user