Commit bebb32bd by Marcos Teles

Adicionado o HTML principal

parent b3ebce56
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="{{ url_for('static', filename='static/style.css') }}">
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Lexend:wght@100..900&display=swap" rel="stylesheet">
<title>Cadastro</title>
</head>
<body>
<h1>Novo Animal</h1>
<form method="POST">
Nome: <input type="text" name="nome" required><br>
Especie: <input type="text" name="especie" required><br>
Idade: <input type="number" name="idade" required><br>
Peso: <input type="number" name="cidade" required><br>
<button type="submit">Salvar</button>
</form>
</body>
</html>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="{{ url_for('static', filename='static/style.css') }}">
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Lexend:wght@100..900&display=swap" rel="stylesheet">
<title>Lista de Animais</title>
</head>
<body>
<h1>Animais Cadastrados</h1>
<a href="/cadastrar"><button>Novo Cadastro</button></a>
<table border="1">
<tr>
<th>Nome</th>
<th>Espécie</th>
<th>Idade</th>
<th>Peso</th>
</tr>
{% for a in animais %}
<tr>
<td>{{ a.nome }}</td>
<td>{{ a.especie }}</td>
<td>{{ a.idade }}</td>
<td>{{ a.peso }}</td>
</tr>
{% endfor %}
</table>
</body>
</html>
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