Temp
This commit is contained in:
183
main.go
183
main.go
@@ -412,6 +412,7 @@ const htmlTemplate = `
|
|||||||
<meta charset="UTF-8">
|
<meta charset="UTF-8">
|
||||||
<title>Abgabe-Berechnung</title>
|
<title>Abgabe-Berechnung</title>
|
||||||
<link href="/static/css/bootstrap.min.css" rel="stylesheet">
|
<link href="/static/css/bootstrap.min.css" rel="stylesheet">
|
||||||
|
<script src="/static/js/bootstrap.bundle.min.js"></script>
|
||||||
</head>
|
</head>
|
||||||
<body class="bg-light">
|
<body class="bg-light">
|
||||||
<div class="container mt-5">
|
<div class="container mt-5">
|
||||||
@@ -467,27 +468,6 @@ const htmlTemplate = `
|
|||||||
</form>
|
</form>
|
||||||
{{end}}
|
{{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>
|
<h2 class="mb-3">Gespeicherte Einträge</h2>
|
||||||
<table class="table table-striped table-bordered">
|
<table class="table table-striped table-bordered">
|
||||||
@@ -543,62 +523,119 @@ const htmlTemplate = `
|
|||||||
|
|
||||||
<hr />
|
<hr />
|
||||||
|
|
||||||
<div class="alert alert-info">
|
<div class="mt-4">
|
||||||
<strong>Die tatsächlichen Werte können abweichen.</strong> Die dargestellten Werte sind meine Vorstellung einer sinnvollen Verteilung.<br>
|
<p>
|
||||||
Die Summe wird an die Orga-Leitung entrichtet. Die entgültige Entscheidung über die Verteilung obliegt der Orga-Leitung.
|
<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>
|
</div>
|
||||||
|
|
||||||
<h4 class="mt-4">Verteilung auf Abteilungen:</h4>
|
<hr />
|
||||||
<table class="table table-striped table-bordered">
|
|
||||||
<thead>
|
|
||||||
<tr>
|
|
||||||
<th>Abteilung</th>
|
|
||||||
<th>Verteilungsschlüssel</th>
|
|
||||||
<th>Summe verteilt</th>
|
|
||||||
<th>Summe offen</th>
|
|
||||||
</tr>
|
|
||||||
</thead>
|
|
||||||
<tbody>
|
|
||||||
{{range .Abteilungen}}
|
|
||||||
<tr>
|
|
||||||
<td>{{.Name}}</td>
|
|
||||||
<td>{{formatNumber .Anteil}}%</td>
|
|
||||||
<td>{{formatNumber .Wert}} UEC</td>
|
|
||||||
<td>{{formatNumber .WertOffen}} UEC</td>
|
|
||||||
</tr>
|
|
||||||
{{end}}
|
|
||||||
</tbody>
|
|
||||||
</table>
|
|
||||||
|
|
||||||
<h4 class="mt-4">Gegenwert in Items:</h4>
|
|
||||||
<table class="table table-bordered">
|
|
||||||
<thead>
|
<div class="mt-4">
|
||||||
<tr>
|
<p>
|
||||||
<th>Abteilung</th>
|
<a class="btn btn-outline-secondary" data-bs-toggle="collapse" href="#verteilungAbteilungen" role="button" aria-expanded="false" aria-controls="verteilungAbteilungen">
|
||||||
<th>Beispiel</th>
|
Verteilung auf Abteilungen anzeigen
|
||||||
<th>Wert pro Item</th>
|
</a>
|
||||||
<th>Summe verteilt</th>
|
</p>
|
||||||
<th>Menge</th>
|
<div class="collapse" id="verteilungAbteilungen">
|
||||||
</tr>
|
<div class="card card-body">
|
||||||
</thead>
|
<div class="alert alert-info">
|
||||||
<tbody>
|
<strong>Die tatsächlichen Werte können abweichen.</strong> Die dargestellten Werte sind meine Vorstellung einer sinnvollen Verteilung.<br>
|
||||||
{{range .Abteilungen}}
|
Die Summe wird an die Orga-Leitung entrichtet. Die endgültige Entscheidung über die Verteilung obliegt der Orga-Leitung.
|
||||||
<tr>
|
</div>
|
||||||
<td>{{.Name}}</td>
|
|
||||||
<td>{{.Beispiel}}</td>
|
<h4 class="mb-3">Verteilung auf Abteilungen:</h4>
|
||||||
<td>{{formatNumber .WertItem}} UEC</td>
|
<table class="table table-striped table-bordered">
|
||||||
<td>{{formatNumber .Wert}} UEC</td>
|
<thead>
|
||||||
<td>
|
<tr>
|
||||||
{{if gt .WertItem 0.0}}
|
<th>Abteilung</th>
|
||||||
{{formatNumber (div .Wert .WertItem)}}
|
<th>Verteilungsschlüssel</th>
|
||||||
{{else}}
|
<th>Summe verteilt</th>
|
||||||
-
|
<th>Summe offen</th>
|
||||||
|
</tr>
|
||||||
|
</thead>
|
||||||
|
<tbody>
|
||||||
|
{{range .Abteilungen}}
|
||||||
|
<tr>
|
||||||
|
<td>{{.Name}}</td>
|
||||||
|
<td>{{formatNumber .Anteil}}%</td>
|
||||||
|
<td>{{formatNumber .Wert}} UEC</td>
|
||||||
|
<td>{{formatNumber .WertOffen}} UEC</td>
|
||||||
|
</tr>
|
||||||
{{end}}
|
{{end}}
|
||||||
</td>
|
</tbody>
|
||||||
</tr>
|
</table>
|
||||||
{{end}}
|
</div>
|
||||||
</tbody>
|
</div>
|
||||||
</table>
|
</div>
|
||||||
|
|
||||||
|
<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>
|
||||||
|
<th>Abteilung</th>
|
||||||
|
<th>Beispiel</th>
|
||||||
|
<th>Wert pro Item</th>
|
||||||
|
<th>Summe verteilt</th>
|
||||||
|
<th>Menge</th>
|
||||||
|
</tr>
|
||||||
|
</thead>
|
||||||
|
<tbody>
|
||||||
|
{{range .Abteilungen}}
|
||||||
|
<tr>
|
||||||
|
<td>{{.Name}}</td>
|
||||||
|
<td>{{.Beispiel}}</td>
|
||||||
|
<td>{{formatNumber .WertItem}} UEC</td>
|
||||||
|
<td>{{formatNumber .Wert}} UEC</td>
|
||||||
|
<td>
|
||||||
|
{{if gt .WertItem 0.0}}
|
||||||
|
{{formatNumber (div .Wert .WertItem)}}
|
||||||
|
{{else}}
|
||||||
|
-
|
||||||
|
{{end}}
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
{{end}}
|
||||||
|
</tbody>
|
||||||
|
</table>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
{{if .LoggedIn}}
|
{{if .LoggedIn}}
|
||||||
<form action="/reset" method="POST" onsubmit="return confirm('Alle Einträge wirklich löschen?')">
|
<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