Netdeploy2 Babyyyy
This commit is contained in:
58
templates/quotes/dashboard.html
Normal file
58
templates/quotes/dashboard.html
Normal file
@@ -0,0 +1,58 @@
|
||||
{% 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 %}
|
||||
Reference in New Issue
Block a user