Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
P
projeto-integrador-crud-fazenda
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
2024105070039
projeto-integrador-crud-fazenda
Commits
229bca04
Commit
229bca04
authored
Apr 16, 2026
by
Jheni
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Ajustes no arquivo index.html
parent
76e50731
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
58 additions
and
0 deletions
+58
-0
index.html
templates/index.html
+58
-0
No files found.
templates/index.html
View file @
229bca04
<!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
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment