Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
C
CRUD_Animais_da_Fazenda2
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
0
Merge Requests
0
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
Hiago Rafael
CRUD_Animais_da_Fazenda2
Commits
65f7b02a
Commit
65f7b02a
authored
Apr 30, 2026
by
Ian Gustavo
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
atualizei
parent
1033bbee
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
30 additions
and
3 deletions
+30
-3
index.html
Template/index.html
+30
-3
No files found.
Template/index.html
View file @
65f7b02a
<form
action=
"/adicionar"
method=
"POST"
>
<!DOCTYPE html>
<html
lang=
"pt-br"
>
<head>
<meta
charset=
"UTF-8"
>
<title>
CRUD Animais da Fazenda
</title>
</head>
<body>
<h1>
Cadastro de Animais
</h1>
<form
action=
"/adicionar"
method=
"POST"
>
<input
type=
"text"
name=
"nome"
placeholder=
"Nome"
required
>
<input
type=
"text"
name=
"nome"
placeholder=
"Nome"
required
>
<input
type=
"text"
name=
"tipo"
placeholder=
"Tipo
"
required
>
<input
type=
"text"
name=
"especie"
placeholder=
"Espécie
"
required
>
<input
type=
"number"
name=
"idade"
placeholder=
"Idade"
required
>
<input
type=
"number"
name=
"idade"
placeholder=
"Idade"
required
>
<input
type=
"number"
step=
"0.1"
name=
"peso"
placeholder=
"Peso (kg)"
required
>
<button
type=
"submit"
>
Adicionar
</button>
<button
type=
"submit"
>
Adicionar
</button>
</form>
</form>
<hr>
<h2>
Animais cadastrados
</h2>
<ul>
{% for animal in animais %}
<li>
{{ animal.nome }} - {{ animal.especie }} - {{ animal.idade }} anos - {{ animal.peso }} kg
<a
href=
"/excluir/{{ loop.index0 }}"
>
Excluir
</a>
</li>
{% endfor %}
</ul>
</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