Erster Commit
This commit is contained in:
36
templates/base.html.twig
Normal file
36
templates/base.html.twig
Normal file
@@ -0,0 +1,36 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="de">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<link rel="stylesheet" type="text/css" href="css/bootstrap.min.css">
|
||||
<!-- <link rel="stylesheet" type="text/css" href="css/styles.css"> -->
|
||||
<title>{% block title %}{% endblock %}</title>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
|
||||
<nav class="navbar navbar-dark sticky-top bg-primary shadow mb-4 justify-content-center">
|
||||
<div class="container-fliud">
|
||||
<a class="navbar-brand" href="index.php">PlusLifeWeb</a>
|
||||
{% if block("header") is defined %}
|
||||
<span class="navbar-text">{% block header %}{% endblock %}</span>
|
||||
{% endif %}
|
||||
</div>
|
||||
</nav>
|
||||
|
||||
<main class="container">
|
||||
<div>
|
||||
{% block content %}{% endblock %}
|
||||
</div>
|
||||
</main>
|
||||
|
||||
<hr>
|
||||
<p/>
|
||||
|
||||
<script src="js/jquery.min.js"></script>
|
||||
<script src="js/bootstrap.min.js"></script>
|
||||
{% block js %}{% endblock %}
|
||||
</body>
|
||||
</html>
|
||||
|
13
templates/error.html.twig
Normal file
13
templates/error.html.twig
Normal file
@@ -0,0 +1,13 @@
|
||||
{% extends 'base.html.twig' %}
|
||||
|
||||
{% block title %}PlusLifeWeb - Fehler{% endblock %}
|
||||
{% block header %}Fehler{% endblock %}
|
||||
|
||||
{% block content %}
|
||||
<div class="bg-light p-3 rounded mt-3">
|
||||
<pre class="mb-0">
|
||||
{{ error }}
|
||||
</pre>
|
||||
</div>
|
||||
{% endblock %}
|
||||
|
23
templates/index.html.twig
Normal file
23
templates/index.html.twig
Normal file
@@ -0,0 +1,23 @@
|
||||
{% extends 'base.html.twig' %}
|
||||
|
||||
{% block title %}PlusLifeWeb{% endblock %}
|
||||
|
||||
{% block content %}
|
||||
|
||||
{% if tests is not empty %}
|
||||
<div>Test auswählen:</div>
|
||||
<table class="table">
|
||||
<tbody>
|
||||
{% for test in tests %}
|
||||
<tr><td><a href="test.php?id={{ test.id }}">{{ test.timestamp }}</td></tr>
|
||||
{% endfor %}
|
||||
</tbody>
|
||||
</table>
|
||||
{% else %}
|
||||
<div class="bg-light p-3 rounded mt-3">
|
||||
<pre class="mb-0">Keine Tests gefunden.</pre>
|
||||
</div>
|
||||
{% endif %}
|
||||
|
||||
{% endblock %}
|
||||
|
40
templates/test.html.twig
Normal file
40
templates/test.html.twig
Normal file
@@ -0,0 +1,40 @@
|
||||
{% extends 'base.html.twig' %}
|
||||
{% block js %}
|
||||
<script>
|
||||
var json = {{ test|raw }};
|
||||
</script>
|
||||
<script src="js/chart.umd.js"></script>
|
||||
<script src="js/pluslife.js"></script>
|
||||
<script src="js/plweb.js"></script>
|
||||
{% endblock %}
|
||||
|
||||
{% block title %}PlusLifeWeb Test Analyse{% endblock %}
|
||||
{% block header %}Test Analyse{% endblock %}
|
||||
|
||||
{% block content %}
|
||||
<div id="datacontainer" hidden="hidden">
|
||||
<div class="row justify-content-center chart-container" style="position: relative; min-height: 400px; max-height:600px;">
|
||||
<canvas id="data"></canvas>
|
||||
</div>
|
||||
<div class="row text-center">
|
||||
<div class="col">
|
||||
<div class="row">
|
||||
<div class="col">
|
||||
<strong>Datum: </strong><span id="testdate"></span><br />
|
||||
<strong>Ergebnis: </strong><span id="testresult"></span><br />
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col justify-content-center" id="testresult_channels"></div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row text-center">
|
||||
<div class="col">
|
||||
<span id="error" style="color: red;display: none;"></span>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{% endblock %}
|
||||
|
Reference in New Issue
Block a user