-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
4c83e97
commit d5bd64b
Showing
10 changed files
with
348 additions
and
30 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
from django import forms | ||
|
||
|
||
class PacienteForm(forms.Form): | ||
|
||
nome = forms.CharField(label="Nome", max_length=100) | ||
email = forms.CharField(label="Email", max_length=100) | ||
telefone = forms.CharField(label="Telefone", max_length=100) | ||
dataNascimento = forms.CharField(label="Data Nascimento", max_length=100) | ||
estadoCivil = forms.CharField(label="Estado Civil", max_length=100) | ||
genero = forms.CharField(label="Genero", max_length=100) | ||
bairro = forms.CharField(label="Bairro", max_length=100) | ||
uf = forms.CharField(label="UF", max_length=100) | ||
municipio = forms.CharField(label="Município", max_length=100) | ||
nascionalidade = forms.CharField(label="Nascionalidade", max_length=100) |
This file was deleted.
Oops, something went wrong.
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,84 @@ | ||
{% extends "base.html" %} | ||
{% block title %} | ||
Cadastro Paciente | ||
{% endblock title %} | ||
{% block content %} | ||
<div class="form"> | ||
|
||
<form action="{% url 'cadastra_paciente' %}" method="POST"> | ||
{% csrf_token %} | ||
|
||
<div class="form-header"> | ||
<div class="title"> | ||
<h1>Novo Paciente</h1> | ||
</div> | ||
</div> | ||
|
||
<div class="input-group"> | ||
<div class="input-box"> | ||
<label for="nome">Primeiro Nome</label> | ||
<input id="nome" type="text" name="nome" placeholder="Digite seu primeiro nome" required=""> | ||
</div> | ||
|
||
<div class="input-box"> | ||
<label for="sobreNome">Sobrenome</label> | ||
<input id="sobreNome" type="text" name="sobreNome" placeholder="Digite seu sobrenome" required=""> | ||
</div> | ||
<div class="input-box"> | ||
<label for="email">SUS</label> | ||
<input id="email" type="text" name="email" placeholder="Digite seu SUS" required=""> | ||
</div> | ||
|
||
<div class="input-box"> | ||
<label for="telefone">Telefone</label> | ||
<input id="telefone" type="tel" name="telefone" placeholder="(xx) xxxx-xxxx" required=""> | ||
</div> | ||
|
||
<div class="input-box"> | ||
<label for="senha">Endereço</label> | ||
<input id="senha" type="password" name="senha" placeholder="Digite seu Endereço" required=""> | ||
</div> | ||
|
||
|
||
<div class="input-box"> | ||
<label for="confirmaSenha">Data do transporte</label> | ||
<input id="confirmaSenha" type="password" name="confirmaSenha" placeholder="Data do transporte" | ||
required=""> | ||
</div> | ||
|
||
</div> | ||
|
||
<div class="gender-inputs"> | ||
<div class="gender-title"> | ||
<h6>Gênero</h6> | ||
</div> | ||
|
||
<div class="gender-group"> | ||
<div class="gender-input"> | ||
<input id="feminimo" type="radio" name="genero"> | ||
<label for="feminimo">Feminino</label> | ||
</div> | ||
|
||
<div class="gender-input"> | ||
<input id="masculino" type="radio" name="genero"> | ||
<label for="masculino">Masculino</label> | ||
</div> | ||
|
||
<div class="gender-input"> | ||
<input id="outro" type="radio" name="genero"> | ||
<label for="outro">Outros</label> | ||
</div> | ||
|
||
<div class="gender-input"> | ||
<input id="semGenero" type="radio" name="genero"> | ||
<label for="semGenero">Prefiro não dizer</label> | ||
</div> | ||
</div> | ||
</div> | ||
|
||
<div class="continue-button"> | ||
<button type="submit">Confirmar</button> | ||
</div> | ||
</form> | ||
</div> | ||
{% endblock content %} |
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 |
---|---|---|
@@ -1,13 +1,41 @@ | ||
from django.shortcuts import render | ||
from django.contrib.auth.decorators import login_required | ||
from django.http import HttpResponseRedirect | ||
from .forms import PacienteForm | ||
|
||
|
||
def lista_pacientes(request): | ||
|
||
def listar(request): | ||
return render(request, "lista_pacientes.html") | ||
|
||
|
||
def cadastro(request): | ||
def cadastrar(request): | ||
|
||
print(type(request)) | ||
|
||
# if request.method == "POST": | ||
|
||
# # "nome" | ||
# # "sobreNome" | ||
# # "email" | ||
# # "telefone" | ||
# # "senha" | ||
# # "confirmaSenha" | ||
# # "genero" | ||
|
||
# form = PacienteForm(request.POST) | ||
|
||
# if form.is_valid(): | ||
|
||
print("chegando aqui cadastro") | ||
# return HttpResponseRedirect("/thanks/") | ||
|
||
return render(request, "cadastro_paciente.html", {}) | ||
# form = PacienteForm() | ||
|
||
return render(request, "formulario_paciente.html", {"form": ""}) | ||
|
||
|
||
def atualizar(request): | ||
return render(request, "formulario_paciente.html") | ||
|
||
|
||
def excluir(request): | ||
return render(request, "lista_pacientes.html") |
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
Oops, something went wrong.