Added SQL, dao and app - not functional
This commit is contained in:
35
templates/listar_materiais.html
Normal file
35
templates/listar_materiais.html
Normal file
@@ -0,0 +1,35 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="pt-BR">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<title>Listar Materiais</title>
|
||||
</head>
|
||||
<body>
|
||||
<h1>Materiais Vendidos</h1>
|
||||
<a href="{{ url_for('novo_material') }}">Adicionar Novo Material</a>
|
||||
<table border="1">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>ID</th>
|
||||
<th>Militante ID</th>
|
||||
<th>Tipo Material</th>
|
||||
<th>Descrição</th>
|
||||
<th>Valor</th>
|
||||
<th>Data da Venda</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
{% for material in materiais %}
|
||||
<tr>
|
||||
<td>{{ material.id }}</td>
|
||||
<td>{{ material.militante_id }}</td>
|
||||
<td>{{ material.tipo_material_id }}</td>
|
||||
<td>{{ material.descricao }}</td>
|
||||
<td>R$ {{ material.valor }}</td>
|
||||
<td>{{ material.data_venda }}</td>
|
||||
</tr>
|
||||
{% endfor %}
|
||||
</tbody>
|
||||
</table>
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user