Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
D
Dishly
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
2
Issues
2
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
O Bar da Lora
Dishly
Commits
bd176c04
Commit
bd176c04
authored
May 07, 2026
by
Marcos Teles
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Inserindo HTML do cadastro
parent
cff0ab04
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
42 additions
and
17 deletions
+42
-17
cadastro.html
templates/cadastro.html
+42
-17
No files found.
templates/cadastro.html
View file @
bd176c04
<!DOCTYPE html>
<!DOCTYPE html>
<html
lang=
"pt-BR"
>
<html
lang=
"pt-BR"
>
<head>
<head>
<meta
charset=
"UTF-8"
>
<meta
charset=
"UTF-8"
>
<meta
name=
"viewport"
content=
"width=device-width, initial-scale=1.0"
>
<meta
name=
"viewport"
content=
"width=device-width, initial-scale=1.0"
>
<link
rel=
"stylesheet"
href=
"{{ url_for('static', filename='style.css') }}"
>
<link
rel=
"stylesheet"
href=
"{{ url_for('static', filename='style.css') }}"
>
<link
rel=
"preconnect"
href=
"https://fonts.googleapis.com"
>
<link
rel=
"preconnect"
href=
"https://fonts.googleapis.com"
>
<link
rel=
"preconnect"
href=
"https://fonts.gstatic.com"
crossorigin
>
<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"
>
<link
href=
"https://fonts.googleapis.com/css2?family=Lexend:wght@100..900&display=swap"
rel=
"stylesheet"
>
<title>
Dishly
</title>
<title>
Dishly
</title>
</head>
</head>
<body>
<body>
<h1>
Cadastro com Imagem
</h1>
<h1>
Cadastro com Imagem
</h1>
<div
class=
"actions"
>
<a
href=
"/"
class=
"btn btn-primary"
>
Voltar
</a>
</div>
<form
id=
"formCadastro"
>
<form
id=
"formCadastro"
>
<input
type=
"text"
id=
"nome"
placeholder=
"Digite o nome"
required
>
<input
type=
"text"
id=
"nome"
placeholder=
"Digite o nome"
required
><br>
<input
type=
"text"
id=
"porcoes"
placeholder=
"Porções"
required
><br>
<input
type=
"text"
id=
"tempo"
placeholder=
"Tempo de preparo"
required
><br>
<
input
type=
"text"
id=
"procoes"
placeholder=
"Porcões"
required
>
<
textarea
id=
"descricao"
placeholder=
"Descrição da receita"
required
></textarea><br
>
<input
type=
"text"
id=
"procoes"
placeholder=
"Tempo de preparo"
required
>
<input
type=
"text"
id=
"ad_ingrediente"
placeholder=
"Ingrediente"
>
<button
onclick=
"adicionar()"
>
Adicionar
</button>
<
input
type=
"text"
id=
"procoes"
placeholder=
"Descrição da receita"
required
>
<
br><br
>
<
input
type=
"text"
id=
"procoes"
placeholder=
"Ingredientes utilizados"
required
>
<
textarea
id=
"ingredientes"
rows=
"10"
cols=
"30"
readonly
></textarea><br
>
<input
type=
"text"
id=
"procoes"
placeholder=
"Modo de preparo"
required
>
<script>
function
adicionar
()
{
let
texto
=
document
.
getElementById
(
"ad_ingrediente"
).
value
;
let
textarea
=
document
.
getElementById
(
"ingredientes"
);
<input
type=
"file"
id=
"imagem"
accept=
"image/*"
required
>
textarea
.
value
+=
"- "
+
texto
+
"
\
n"
;
document
.
getElementById
(
"ad_ingrediente"
).
value
=
""
;
}
</script>
<textarea
id=
"preparo"
placeholder=
"Modo de preparo"
required
></textarea><br>
<input
type=
"file"
id=
"imagem"
accept=
"image/*"
required
><br>
<button
type=
"submit"
>
Cadastrar
</button>
<button
type=
"submit"
>
Cadastrar
</button>
</form>
</form>
<button
type=
"reset"
>
Apagar Dados
</button>
<div
class=
"cards"
id=
"lista"
></div>
<div
class=
"cards"
id=
"lista"
></div>
...
@@ -36,7 +59,7 @@
...
@@ -36,7 +59,7 @@
const
form
=
document
.
getElementById
(
"formCadastro"
);
const
form
=
document
.
getElementById
(
"formCadastro"
);
const
lista
=
document
.
getElementById
(
"lista"
);
const
lista
=
document
.
getElementById
(
"lista"
);
form
.
addEventListener
(
"submit"
,
function
(
e
)
{
form
.
addEventListener
(
"submit"
,
function
(
e
)
{
e
.
preventDefault
();
e
.
preventDefault
();
const
nome
=
document
.
getElementById
(
"nome"
).
value
;
const
nome
=
document
.
getElementById
(
"nome"
).
value
;
...
@@ -46,7 +69,7 @@
...
@@ -46,7 +69,7 @@
const
leitor
=
new
FileReader
();
const
leitor
=
new
FileReader
();
leitor
.
onload
=
function
(
evento
)
{
leitor
.
onload
=
function
(
evento
)
{
const
card
=
document
.
createElement
(
"div"
);
const
card
=
document
.
createElement
(
"div"
);
card
.
classList
.
add
(
"card"
);
card
.
classList
.
add
(
"card"
);
...
@@ -66,4 +89,5 @@
...
@@ -66,4 +89,5 @@
</script>
</script>
</body>
</body>
</html>
</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