Add settings page linking to clean and clear

This commit is contained in:
2021-12-10 16:39:44 +00:00
parent e0eeaadc60
commit 8116238d48
4 changed files with 36 additions and 3 deletions

17
web/settings.html Normal file
View File

@ -0,0 +1,17 @@
{{define "title"}}
{{.Budget.Name}} - Settings
{{end}}
{{template "base" .}}
{{define "main"}}
<h1>Danger Zone</h1>
<div class="budget-item">
<a href="/budget/{{.Budget.ID}}/settings/clear">Clear database</a>
<p>This removes all data and starts from scratch. Not undoable!</p>
</div>
<div class="budget-item">
<a href="/budget/{{.Budget.ID}}/settings/clean-negative">Fix all historic negative category-balances</a>
<p>This restores YNABs functionality, that would substract any overspent categories' balances from next months inflows.</p>
</div>
{{end}}