Spaces:
No application file
No application file
| <html lang="pt-BR"> | |
| <head> | |
| <meta charset="UTF-8"> | |
| <title>{{ 'Editar' if orcamento else 'Novo' }} Orçamento</title> | |
| <link rel="stylesheet" href="{{ url_for('static', filename='style.css') }}"> | |
| </head> | |
| <body> | |
| <h1>{{ 'Editar' if orcamento else 'Novo' }} Orçamento</h1> | |
| <form method="post"> | |
| <label>Cliente:</label><input name="cliente" value="{{ orcamento.cliente if orcamento else '' }}"> | |
| <label>Endereço:</label><input name="endereco" value="{{ orcamento.endereco if orcamento else '' }}"> | |
| <label>Área Total (m²):</label><input name="area_total" value="{{ orcamento.area_total if orcamento else '' }}"> | |
| <label>Quartos:</label><input name="quartos" value="{{ orcamento.quartos if orcamento else '' }}"> | |
| <label>Banheiros:</label><input name="banheiros" value="{{ orcamento.banheiros if orcamento else '' }}"> | |
| <label>Início da Obra:</label><input type="date" name="inicio" value="{{ orcamento.inicio[:10] if orcamento else '' }}"> | |
| <label>Detalhes:</label><textarea name="detalhes">{{ orcamento.detalhes if orcamento else '' }}</textarea> | |
| <label>Total (R$):</label><input name="total" value="{{ orcamento.total if orcamento else '' }}"> | |
| <button type="submit">Salvar</button> | |
| </form> | |
| <a href="{{ url_for('listar_orcamentos') }}">Voltar</a> | |
| </body> | |
| </html> | |