-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: nova funcionalidade de edição de dados do usuario
- Loading branch information
1 parent
1c92ced
commit 61b23a9
Showing
6 changed files
with
101 additions
and
8 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,53 @@ | ||
{% extends 'usuarios/base.html' %} | ||
{% load static %} | ||
{% block content %} | ||
<div class="pagina-inicial"> | ||
<header class="cabecalho"> | ||
<img src="{% static '/assets/logo/Logo(2).png' %}" alt="Logo da Alura Space" /> | ||
{% include 'partials/_alertas.html' %} | ||
<div class="cabecalho__busca"> | ||
<div class="busca__fundo"> | ||
<form action="{% url 'buscar' %}" class="form-buscar" style="max-width: 500px;"> | ||
<input class="busca__input" type="text" name="buscar" placeholder="O que você procura?"> | ||
<button type="submit" class="button-search"> | ||
<img class="busca__icone" src="{% static '/assets/ícones/1x/search.png' %}" alt="ícone de search"> | ||
</button> | ||
</form> | ||
</div> | ||
</div> | ||
</header> | ||
<main class="principal"> | ||
<section class="menu-lateral"> | ||
<nav class="menu-lateral__navegacao"> | ||
<a href="{% url 'index' %}"><img src="{% static '/assets/ícones/1x/Home - ativo.png' %}"> Home</a> | ||
<a href="{% url 'login' %}"><img src="{% static '/assets/ícones/1x/Mais vistas - inativo.png' %}"> Login</a> | ||
<a href="{% url 'cadastro' %}"><img src="{% static '/assets/ícones/1x/Novas - inativo.png' %}"> Cadastrar</a> | ||
<a href="{% url 'logout' %}"><img src="{% static '/assets/ícones/1x/Surpreenda-me - inativo.png' %}"> Logout</a> | ||
</nav> | ||
</section> | ||
<section class="galeria-editar_perfil" style="margin-left: 5em"> | ||
<h2>Atualize seus dados e confirme para eles serem atualizados!</h2> | ||
<form action="{% url 'editar_perfil' %}" method="POST" class="form-cadastro"> | ||
{% csrf_token %} | ||
<div class="row"> | ||
{% for field in form.visible_fields %} | ||
<div class="col-12 col-lg-12" style="margin-bottom: 10px;"> | ||
<label for="{{ field.id_for_label }}" style="color:#D9D9D9; margin-bottom: 5px;"><b>{{ field.label }}</b></label> | ||
<br> | ||
{{ field }} <!-- Aqui estamos renderizando o campo do formulário, e podemos estilizar nas próprias class de forms --> | ||
</div> | ||
{% for error in field.errors %} | ||
<div class="msg-error-form"> | ||
{{ error }} | ||
</div> | ||
{% endfor %} | ||
{% endfor %} | ||
<div class="col-12 text-center"> | ||
<button type="submit" class="btn btn-success col-12" style="padding: top 5px; margin-top: 10px;">Cadastrar-se</button> | ||
</div> | ||
</div> | ||
</form> | ||
</section> | ||
</main> | ||
</div> | ||
{% endblock %} |
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