-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Cria rota e view para form de receita
- Loading branch information
Showing
5 changed files
with
79 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,62 @@ | ||
{% extends '_base.html' %} | ||
{% load static %} | ||
{% block content %} | ||
|
||
<!-- ##### Contact Form Area Start ##### --> | ||
<div class="contact-area section-padding-0-80"> | ||
<div class="container"> | ||
<div class="row"> | ||
<div class="col-12"> | ||
<div class="section-heading"> | ||
<h3>Crie sua receita, {{ user.username }} :)</h3> | ||
</div> | ||
</div> | ||
</div> | ||
|
||
<div class="row"> | ||
<div class="col-12"> | ||
<p>Todos os campos são obrigatórios</p> | ||
<div class="contact-form-area"> | ||
<form action="{% url 'receita.create' %}" method="POST" enctype="multipart/form-data"> | ||
{% csrf_token %} | ||
<div class="row"> | ||
<div class="col-12 col-lg-12"> | ||
<label for="nome"><b>Título da receita</b></label> | ||
<input type="text" id="nome" class="form-control" name="nome" placeholder="Ex. Suco de limão" required> | ||
</div> | ||
<div class="col-12"> | ||
<label for="ingredientes"><b>Ingredientes</b></label> | ||
<textarea class="form-control" name="ingredientes" cols="30" rows="10" placeholder="Ex. 2 Limões 200ml de água" required></textarea> | ||
</div> | ||
<div class="col-12"> | ||
<label for="modo_preparo"><b>Modo de preparo</b></label> | ||
<textarea class="form-control" name="modo_preparo" cols="30" rows="10" placeholder="Ex. Corte o limão com cuidado e exprema no copo Misture com a água e sirva." required></textarea> | ||
</div> | ||
<div class="col-12 col-lg-3"> | ||
<label for="tempo_preparo"><b>Tempo de preparo (minutos)</b></label> | ||
<input type="number" class="form-control" name="tempo_preparo" placeholder="Ex. 2" required> | ||
</div> | ||
<div class="col-12 col-lg-3"> | ||
<label for="rendimento"><b>Rendimento</b></label> | ||
<input type="text" class="form-control" name="rendimento" placeholder="Ex. serve 1 pessoa" required> | ||
</div> | ||
<div class="col-12 col-lg-3"> | ||
<label for="categoria"><b>Categoria da receita</b></label> | ||
<input type="text" class="form-control" name="categoria" placeholder="Ex. Sucos e bebidas" required> | ||
</div> | ||
<div class="col-12 col-lg-3"> | ||
<label for="foto"><b>Foto</b></label> | ||
<input type="file" class="form-control" name="foto" required> | ||
</div> | ||
<div class="col-12 text-center"> | ||
<button class="btn delicious-btn mt-30" type="submit">Criar sua receita</button> | ||
</div> | ||
</div> | ||
</form> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
|
||
{% endblock %} |