Spaces:
No application file
No application file
Create dashboard.html
Browse files- templates/dashboard.html +25 -0
templates/dashboard.html
ADDED
|
@@ -0,0 +1,25 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
<!DOCTYPE html>
|
| 2 |
+
<html lang="pt-BR">
|
| 3 |
+
<head>
|
| 4 |
+
<meta charset="UTF-8">
|
| 5 |
+
<title>Dashboard</title>
|
| 6 |
+
<link rel="stylesheet" href="{{ url_for('static', filename='css/style.css') }}">
|
| 7 |
+
</head>
|
| 8 |
+
<body>
|
| 9 |
+
<div class="container">
|
| 10 |
+
<h1>Seus Orçamentos</h1>
|
| 11 |
+
<a href="{{ url_for('criar_orcamento') }}">+ Novo Orçamento</a>
|
| 12 |
+
<ul>
|
| 13 |
+
{% for o in orcamentos %}
|
| 14 |
+
<li>
|
| 15 |
+
<a href="{{ url_for('visualizar_orcamento', orcamento_id=o.id) }}">{{ o.cliente }} - R$ {{ o.valor_total }}</a>
|
| 16 |
+
<form method="post" action="{{ url_for('excluir_orcamento', orcamento_id=o.id) }}" style="display:inline;">
|
| 17 |
+
<button type="submit">Excluir</button>
|
| 18 |
+
</form>
|
| 19 |
+
</li>
|
| 20 |
+
{% endfor %}
|
| 21 |
+
</ul>
|
| 22 |
+
<a href="{{ url_for('logout') }}">Sair</a>
|
| 23 |
+
</div>
|
| 24 |
+
</body>
|
| 25 |
+
</html>
|