You need to sign in or sign up before continuing.
Commit 229bca04 by Jheni

Ajustes no arquivo index.html

parent 76e50731
<!DOCTYPE html>
<html lang="pt-br">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Fazenda IFRO - Sistema de Cadastro</title>
<link rel="stylesheet" href="{{ url_for('static', filename='css/style.css') }}">
</head>
<body>
<div class="container">
<header>
<h1>🚜 Gestão de Animais - Fazenda</h1>
</header>
<section class="card">
<h2>Novo Cadastro</h2>
<form action="{{ url_for('cadastrar') }}" method="POST">
<div class="grid-form">
<input type="text" name="nome" placeholder="Nome do Animal" required>
<input type="text" name="especie" placeholder="Espécie (Ex: Vaca, Galinha)" required>
<input type="number" name="idade" placeholder="Idade (Anos)" required>
<input type="number" step="0.01" name="peso" placeholder="Peso (kg)" required>
</div>
<button type="submit" class="btn-success">Cadastrar Animal</button>
</form>
</section>
<section class="card">
<h2>Animais Registrados</h2>
<table>
<thead>
<tr>
<th>Nome</th>
<th>Espécie</th>
<th>Idade</th>
<th>Peso</th>
</tr>
</thead>
<tbody>
{% for animal in animais %}
<tr>
<td>{{ animal.nome }}</td>
<td>{{ animal.especie }}</td>
<td>{{ animal.idade }}</td>
<td>{{ animal.peso }} kg</td>
</tr>
{% else %}
<tr>
<td colspan="4" style="text-align: center;">Nenhum animal cadastrado no pasto.</td>
</tr>
{% endfor %}
</tbody>
</table>
</section>
</div>
</body>
</html>
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment