mirror of
https://github.com/FAUSheppy/ths-blowerdoor-raven
synced 2025-12-10 00:38:33 +01:00
add basic functionality
This commit is contained in:
22
templates/head.html
Normal file
22
templates/head.html
Normal file
@@ -0,0 +1,22 @@
|
||||
<meta charset="utf-8">
|
||||
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
|
||||
<meta name="description" content="THS-Raven">
|
||||
<meta name="author" content="Yannik Schmidt | https://potaris.de/en/contact">
|
||||
|
||||
<link rel="shortcut icon" href="/defaultFavicon.ico">
|
||||
|
||||
|
||||
<!-- Bootstrap core JS -->
|
||||
<script src="/static/js/jquery.min.js"></script>
|
||||
|
||||
<!-- Bootstrap core CSS -->
|
||||
<link href="/static/css/bootstrap.min.css" rel="stylesheet">
|
||||
<script defer src="/static/js/bootstrap.min.js"></script>
|
||||
|
||||
<!-- mdb -->
|
||||
<link href="/static/css/mdb.min.css" rel="stylesheet">
|
||||
<script defer src="/static/js/mdb.min.js"></script>
|
||||
|
||||
<!-- Custom JS/CSS -->
|
||||
<link href="/static/site.css" rel="stylesheet">
|
||||
43
templates/index.html
Normal file
43
templates/index.html
Normal file
@@ -0,0 +1,43 @@
|
||||
<!doctype html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
{% include 'head.html' %}
|
||||
</head>
|
||||
|
||||
<body>
|
||||
{% include 'navbar.html' %}
|
||||
<div style="font-size: 16px; font-weight: 300;" class="container mt-5 mb-3" role="main">
|
||||
<table id="tableMain" class="table table-striped table-bordered table-sm"
|
||||
cellspacing="0">
|
||||
<thead>
|
||||
<tr>
|
||||
<th class="th-sm font-weight-bold">Dokument</th>
|
||||
<th class="th-sm font-weight-bold">Ort</th>
|
||||
<th class="th-sm font-weight-bold">Blowerdoor KW</th>
|
||||
<th class="th-sm font-weight-bold">Bauherr</th>
|
||||
<th class="th-sm font-weight-bold">Dokument Erstellungsdatum</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
{% for bd in listContent %}
|
||||
<tr>
|
||||
<td style="line-height: 45px;"><a target="_blank" href="/get-file?basename={{ bd.docName }}">{{ bd.docName }}</a></td>
|
||||
<td style="line-height: 45px;">{{ bd.location }}</td>
|
||||
<td style="line-height: 45px;">{{ bd.blowerdoorDate }}</td>
|
||||
<td style="line-height: 45px;">{{ bd.customer }}</td>
|
||||
<td style="line-height: 45px;">{{ bd.pdfDate.strftime("%d.%m.%Y") }}</td>
|
||||
</tr>
|
||||
{% endfor %}
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
<script defer>
|
||||
$(document).ready(function () {
|
||||
$('#tableMain').DataTable();
|
||||
$('.dataTables_length').addClass('bs-select');
|
||||
});
|
||||
</script>
|
||||
</div>
|
||||
</body>
|
||||
|
||||
</html>
|
||||
27
templates/navbar.html
Normal file
27
templates/navbar.html
Normal file
@@ -0,0 +1,27 @@
|
||||
<nav class="navbar navbar-expand-md navbar-dark fixed-top bg-dark">
|
||||
<a class="navbar-brand" href="#"></a>
|
||||
|
||||
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbar"
|
||||
aria-controls="navbar" aria-expanded="false" aria-label="Toggle navigation">
|
||||
<span class="navbar-toggler-icon"></span>
|
||||
</button>
|
||||
|
||||
<div class="collapse navbar-collapse" id="navbar">
|
||||
|
||||
<!-- left side -->
|
||||
<ul class="navbar-nav mr-auto">
|
||||
|
||||
<li class="nav-item">
|
||||
<a class="nav-link" href="/">Home</a>
|
||||
</li>
|
||||
|
||||
</ul>
|
||||
|
||||
</div>
|
||||
</nav>
|
||||
|
||||
<nav id="navbar-ph" class="navbar navbar-dark bg-dark fake">
|
||||
<li class="navbar-nav">
|
||||
<a class="nav-link" href="#">placeholder</a>
|
||||
</li>
|
||||
</nav>
|
||||
Reference in New Issue
Block a user