switch to ras-dan-01
Some checks failed
Gitea Actions Demo / Explore-Gitea-Actions (push) Failing after -56s
Some checks failed
Gitea Actions Demo / Explore-Gitea-Actions (push) Failing after -56s
This commit is contained in:
22
files/templates/add_ausgabe.html
Normal file
22
files/templates/add_ausgabe.html
Normal file
@@ -0,0 +1,22 @@
|
||||
{% extends "base.html" %}
|
||||
{% block body %}
|
||||
<form action="{{ url }}" method="POST">
|
||||
<input type="number"
|
||||
step="0.01"
|
||||
min="1"
|
||||
max="10000"
|
||||
placeholder="Ausgaben"
|
||||
name="{{ select_id_text }}"
|
||||
id="{{ select_id_text }}">
|
||||
|
||||
<select name="{{ select_id }}" id="{{ select_id }}">
|
||||
{% for name in data %}
|
||||
<option value="{{ name }}">{{ name }}</option>
|
||||
{% endfor %}
|
||||
</select>
|
||||
|
||||
<button type="submit"> Eingabe </button>
|
||||
|
||||
|
||||
</form>
|
||||
{% endblock %}
|
||||
11
files/templates/base.html
Normal file
11
files/templates/base.html
Normal file
@@ -0,0 +1,11 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<title> {{ sitename }} </title>
|
||||
</head>
|
||||
<body>
|
||||
<h3> {{ sitename }} </h3>
|
||||
{% block body %}
|
||||
{% endblock %}
|
||||
</body>
|
||||
</html>
|
||||
24
files/templates/index.html
Normal file
24
files/templates/index.html
Normal file
@@ -0,0 +1,24 @@
|
||||
{% extends "base.html" %}
|
||||
|
||||
{% block body %}
|
||||
<p>
|
||||
<h4>Diese Seite zeigt unsere Ausgaben</h4>
|
||||
Ausgabe hinzufügen <a href="/add_ausgabe">Klick</a> .
|
||||
</p>
|
||||
<table border="1" width="50%">
|
||||
<tr>
|
||||
<th>Datum</th>
|
||||
<th>Ausgaben</th>
|
||||
<th>Beschreibung</th>
|
||||
</tr>
|
||||
{% for name in data %}
|
||||
<tr>
|
||||
<td>{{ name.get("datum") }}</td>
|
||||
<td>{{ name.get("ausgabe") }}</td>
|
||||
<td> {{ name.get("beschreibung") }}</td>
|
||||
</tr>
|
||||
{% endfor %}
|
||||
</table>
|
||||
<p><br><h5>Gesamt: {{sum_all}}</h5>
|
||||
<p> Nächste Schritte </p>
|
||||
{% endblock %}
|
||||
22
files/templates/output.html
Normal file
22
files/templates/output.html
Normal file
@@ -0,0 +1,22 @@
|
||||
{% extends "base.html" %}
|
||||
|
||||
{% block body %}
|
||||
<p>
|
||||
Ausgabe = {{ csv_value_text }} <br> Beschreibung = {{csv_value_disc}}
|
||||
<br>
|
||||
</p>
|
||||
<table>
|
||||
<tr>
|
||||
<th>Ausgaben</th>
|
||||
<th>Beschreibung</th>
|
||||
</tr>
|
||||
{% for name in data %}
|
||||
<tr>
|
||||
<td>{{ name.get("ausgabe") }}</td>
|
||||
<td> {{ name.get("beschreibung") }}</td>
|
||||
</tr>
|
||||
{% endfor %}
|
||||
</table>
|
||||
|
||||
<p><br><h5>Gesamt: {{sum_all}}</h5>
|
||||
{% endblock %}
|
||||
Reference in New Issue
Block a user