Temp
This commit is contained in:
89
main.go
89
main.go
@@ -412,6 +412,7 @@ const htmlTemplate = `
|
||||
<meta charset="UTF-8">
|
||||
<title>Abgabe-Berechnung</title>
|
||||
<link href="/static/css/bootstrap.min.css" rel="stylesheet">
|
||||
<script src="/static/js/bootstrap.bundle.min.js"></script>
|
||||
</head>
|
||||
<body class="bg-light">
|
||||
<div class="container mt-5">
|
||||
@@ -467,27 +468,6 @@ const htmlTemplate = `
|
||||
</form>
|
||||
{{end}}
|
||||
|
||||
<h4 class="mt-4">Monatliche Übersicht</h4>
|
||||
<table class="table table-bordered">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Monat</th>
|
||||
<th>Abgaben verteilt</th>
|
||||
<th>Abgaben offen</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
{{range .Monatsstatistik}}
|
||||
<tr>
|
||||
<td>{{.Monat}}</td>
|
||||
<td>{{formatNumber .Summe}} UEC</td>
|
||||
<td>{{formatNumber .SummeOffen}} UEC</td>
|
||||
</tr>
|
||||
{{end}}
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
<hr />
|
||||
|
||||
<h2 class="mb-3">Gespeicherte Einträge</h2>
|
||||
<table class="table table-striped table-bordered">
|
||||
@@ -543,12 +523,55 @@ const htmlTemplate = `
|
||||
|
||||
<hr />
|
||||
|
||||
<div class="alert alert-info">
|
||||
<strong>Die tatsächlichen Werte können abweichen.</strong> Die dargestellten Werte sind meine Vorstellung einer sinnvollen Verteilung.<br>
|
||||
Die Summe wird an die Orga-Leitung entrichtet. Die entgültige Entscheidung über die Verteilung obliegt der Orga-Leitung.
|
||||
<div class="mt-4">
|
||||
<p>
|
||||
<a class="btn btn-outline-secondary" data-bs-toggle="collapse" href="#monatsUebersicht" role="button" aria-expanded="false" aria-controls="monatsUebersicht">
|
||||
Monatliche Übersicht anzeigen
|
||||
</a>
|
||||
</p>
|
||||
<div class="collapse" id="monatsUebersicht">
|
||||
<div class="card card-body">
|
||||
<h4 class="mb-3">Monatliche Übersicht</h4>
|
||||
<table class="table table-bordered">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Monat</th>
|
||||
<th>Abgaben verteilt</th>
|
||||
<th>Abgaben offen</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
{{range .Monatsstatistik}}
|
||||
<tr>
|
||||
<td>{{.Monat}}</td>
|
||||
<td>{{formatNumber .Summe}} UEC</td>
|
||||
<td>{{formatNumber .SummeOffen}} UEC</td>
|
||||
</tr>
|
||||
{{end}}
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<h4 class="mt-4">Verteilung auf Abteilungen:</h4>
|
||||
<hr />
|
||||
|
||||
|
||||
|
||||
<div class="mt-4">
|
||||
<p>
|
||||
<a class="btn btn-outline-secondary" data-bs-toggle="collapse" href="#verteilungAbteilungen" role="button" aria-expanded="false" aria-controls="verteilungAbteilungen">
|
||||
Verteilung auf Abteilungen anzeigen
|
||||
</a>
|
||||
</p>
|
||||
<div class="collapse" id="verteilungAbteilungen">
|
||||
<div class="card card-body">
|
||||
<div class="alert alert-info">
|
||||
<strong>Die tatsächlichen Werte können abweichen.</strong> Die dargestellten Werte sind meine Vorstellung einer sinnvollen Verteilung.<br>
|
||||
Die Summe wird an die Orga-Leitung entrichtet. Die endgültige Entscheidung über die Verteilung obliegt der Orga-Leitung.
|
||||
</div>
|
||||
|
||||
<h4 class="mb-3">Verteilung auf Abteilungen:</h4>
|
||||
<table class="table table-striped table-bordered">
|
||||
<thead>
|
||||
<tr>
|
||||
@@ -569,8 +592,19 @@ const htmlTemplate = `
|
||||
{{end}}
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<h4 class="mt-4">Gegenwert in Items:</h4>
|
||||
<div class="mt-4">
|
||||
<p>
|
||||
<a class="btn btn-outline-secondary" data-bs-toggle="collapse" href="#gegenwertItems" role="button" aria-expanded="false" aria-controls="gegenwertItems">
|
||||
Gegenwert in Items anzeigen
|
||||
</a>
|
||||
</p>
|
||||
<div class="collapse" id="gegenwertItems">
|
||||
<div class="card card-body">
|
||||
<h4 class="mb-3">Gegenwert in Items:</h4>
|
||||
<table class="table table-bordered">
|
||||
<thead>
|
||||
<tr>
|
||||
@@ -599,6 +633,9 @@ const htmlTemplate = `
|
||||
{{end}}
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{{if .LoggedIn}}
|
||||
<form action="/reset" method="POST" onsubmit="return confirm('Alle Einträge wirklich löschen?')">
|
||||
|
7
static/js/bootstrap.bundle.min.js
vendored
Normal file
7
static/js/bootstrap.bundle.min.js
vendored
Normal file
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user