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
c382d123
Commit
c382d123
authored
May 07, 2026
by
Natã Frederico Sangalletti
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
App.py corrigido
parent
bd176c04
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
15 deletions
+12
-15
app.py
app/app.py
+1
-2
cadastro.html
templates/cadastro.html
+11
-13
No files found.
app/app.py
View file @
c382d123
...
...
@@ -44,4 +44,4 @@ def cadastro():
if
__name__
==
'__main__'
:
with
app
.
app_context
():
db
.
create_all
()
app
.
run
(
debug
=
True
)
\ No newline at end of file
app
.
run
(
debug
=
True
)
templates/cadastro.html
View file @
c382d123
...
...
@@ -18,40 +18,38 @@
<a
href=
"/"
class=
"btn btn-primary"
>
Voltar
</a>
</div>
<form
id=
"formCadastro"
>
<input
type=
"text"
id=
"nome"
placeholder=
"Digite o nome"
required
><br>
<form
id=
"formCadastro"
action=
"{{ url_for('cadastro') }}"
method=
"post"
>
<input
type=
"text"
id=
"nome"
name=
"nome"
placeholder=
"Digite o nome"
required
><br>
<input
type=
"text"
id=
"porcoes"
placeholder=
"Porções"
required
><br>
<input
type=
"text"
id=
"porcoes"
name=
"porcoes"
placeholder=
"Porções"
required
><br>
<input
type=
"text"
id=
"tempo"
placeholder=
"Tempo de preparo"
required
><br>
<input
type=
"text"
id=
"tempo"
name=
"tempo"
placeholder=
"Tempo de preparo"
required
><br>
<textarea
id=
"descricao"
placeholder=
"Descrição da receita"
required
></textarea><br>
<textarea
id=
"descricao"
name=
"descricao"
placeholder=
"Descrição da receita"
required
></textarea><br>
<input
type=
"text"
id=
"ad_ingrediente"
placeholder=
"Ingrediente"
>
<button
onclick=
"adicionar()"
>
Adicionar
</button>
<button
type=
"button"
onclick=
"adicionar()"
>
Adicionar
</button>
<br><br>
<textarea
id=
"ingredientes"
rows=
"10"
cols=
"30"
readonly
></textarea><br>
<textarea
id=
"ingredientes"
name=
"ingredientes"
rows=
"10"
cols=
"30"
readonly
required
></textarea><br>
<script>
function
adicionar
()
{
let
texto
=
document
.
getElementById
(
"ad_ingrediente"
).
value
;
let
textarea
=
document
.
getElementById
(
"ingredientes"
);
if
(
!
texto
)
return
;
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>
<textarea
id=
"preparo"
name=
"preparo"
placeholder=
"Modo de preparo"
required
></textarea><br>
<button
type=
"submit"
>
Cadastrar
</button>
<input
type=
"submit"
value=
"Cadastrar"
class=
"btn btn-primary"
><br>
<button
type=
"reset"
>
Apagar Dados
</button>
</form>
<button
type=
"reset"
>
Apagar Dados
</button>
<div
class=
"cards"
id=
"lista"
></div>
...
...
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