Add settings page linking to clean and clear
This commit is contained in:
17
web/settings.html
Normal file
17
web/settings.html
Normal 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}}
|
Reference in New Issue
Block a user