Files
netdeploy2/templates/quotes/dashboard.html
2026-02-03 17:41:29 -06:00

59 lines
1.1 KiB
HTML

{% extends "base.html" %}
{% block content %}
<h2>Dashboard</h2>
<p>
<a href="{{ url_for('quotes.new_quote') }}">+ New Quote</a>
</p>
<h3>Draft / Sent Quotes</h3>
<table border="1" cellpadding="6">
<tr>
<th>ID</th>
<th>Title</th>
<th>Status</th>
<th>Total</th>
<th></th>
</tr>
{% for q in quotes if q.status in ['draft','sent'] %}
<tr>
<td>{{ q.id }}</td>
<td>{{ q.title }}</td>
<td>{{ q.status }}</td>
<td>${{ q.total }}</td>
<td><a href="{{ url_for('quotes.edit_quote', quote_id=q.id) }}">Open</a></td>
</tr>
{% else %}
<tr><td colspan="5">None</td></tr>
{% endfor %}
</table>
<hr>
<h3>Approved Quotes (Ready for Invoice)</h3>
<table border="1" cellpadding="6">
<tr>
<th>ID</th>
<th>Title</th>
<th>Total</th>
<th></th>
</tr>
{% for q in quotes if q.status == 'approved' %}
<tr>
<td>{{ q.id }}</td>
<td>{{ q.title }}</td>
<td>${{ q.total }}</td>
<td><a href="{{ url_for('quotes.edit_quote', quote_id=q.id) }}">View</a></td>
</tr>
{% else %}
<tr><td colspan="4">None</td></tr>
{% endfor %}
</table>
{% endblock %}