06/02 Optimize app 2
This commit is contained in:
@@ -140,12 +140,21 @@
|
||||
<div class="pcard">
|
||||
<div class="d-flex justify-content-between align-items-center mb-3">
|
||||
<span class="pcard-title mb-0">Net Worth History</span>
|
||||
<form method="POST" action="{{ url_for('reports.manual_snapshot') }}">
|
||||
<input type="hidden" name="csrf_token" value="{{ csrf_token() }}">
|
||||
<button type="submit" class="btn btn-sm btn-outline-secondary" style="font-size:11px;" title="Save today's snapshot">
|
||||
<i class="bi bi-camera me-1"></i>Snapshot Now
|
||||
</button>
|
||||
</form>
|
||||
<div class="d-flex gap-2">
|
||||
<form method="POST" action="{{ url_for('reports.manual_snapshot') }}">
|
||||
<input type="hidden" name="csrf_token" value="{{ csrf_token() }}">
|
||||
<button type="submit" class="btn btn-sm btn-outline-secondary" style="font-size:11px;" title="Save today's snapshot">
|
||||
<i class="bi bi-camera me-1"></i>Snapshot Now
|
||||
</button>
|
||||
</form>
|
||||
<form method="POST" action="{{ url_for('reports.rebuild_snapshot') }}"
|
||||
onsubmit="return confirm('Recalculate all balances and rebuild today\'s snapshot?\nThis fixes the current net worth data point.')">
|
||||
<input type="hidden" name="csrf_token" value="{{ csrf_token() }}">
|
||||
<button type="submit" class="btn btn-sm btn-outline-warning" style="font-size:11px;" title="Recalculate all balances then rebuild today's snapshot">
|
||||
<i class="bi bi-arrow-repeat me-1"></i>Rebuild
|
||||
</button>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
{% if nw_history.count > 1 %}
|
||||
<div style="position:relative;height:200px;"><canvas id="nwChart"></canvas></div>
|
||||
|
||||
Reference in New Issue
Block a user