-
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.
Modelando funcionalidade edição de paciente
- Loading branch information
1 parent
4fa7e4f
commit 603aa77
Showing
4 changed files
with
85 additions
and
36 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
<!DOCTYPE html> | ||
<html lang="pt-br"> | ||
|
||
<head> | ||
<meta charset="UTF-8"> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | ||
<title>Document</title> | ||
</head> | ||
|
||
<body> | ||
|
||
</body> | ||
|
||
</html> | ||
|
||
<script> | ||
|
||
; (atlas => { | ||
|
||
console.info(`atlas ${atlas}`) | ||
|
||
})(document) | ||
|
||
</script> |
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,33 +1,51 @@ | ||
{% extends "base.html" %} | ||
{% block title %} | ||
Lista Pacientes | ||
Lista Pacientes | ||
{% endblock title %} | ||
{% block content %} | ||
<form action="" method="get"> | ||
<a href="{% url 'cadastra_paciente' %}">Criar paciente</a> | ||
<div class="row"> | ||
<div class="col-5"> | ||
<table class="data-list-atlas"> | ||
<tr> | ||
<th>Nome</th> | ||
<th>Cartão SUS</th> | ||
<th></th> | ||
<th></th> | ||
</tr> | ||
{% for paciente in pacientes %} | ||
<tr> | ||
<td>{{ paciente.nome }}</td> | ||
<td>{{ paciente.cartao_sus }}</td> | ||
<td> | ||
<input type="button" value="Editar"> | ||
</td> | ||
<td> | ||
<input type="button" value="Excluir"> | ||
</td> | ||
</tr> | ||
{% endfor %} | ||
</table> | ||
</div> | ||
<form action="" method="get"> | ||
|
||
<div class="row"> | ||
<div class="col-5"> | ||
|
||
<input list="browsers" id="browser_id" name="browser" placeholder="Starting typing the name of the browser" | ||
size="50" /> | ||
<datalist id="browsers"> | ||
<option>Chrome</option> | ||
<option>Firefox</option> | ||
<option>Internet Explorer</option> | ||
<option>Opera</option> | ||
<option>Safari</option> | ||
<option>Microsoft Edge</option> | ||
</datalist> | ||
|
||
</div> | ||
</form> | ||
{% endblock content %} | ||
</div> | ||
|
||
<a href="{% url 'cadastra_paciente' %}">Criar paciente</a> | ||
|
||
<div class="row"> | ||
<div class="col-5"> | ||
<table class="data-list-atlas"> | ||
<tr> | ||
<th>Nome</th> | ||
<th>Cartão SUS</th> | ||
<th colspan="2"></th> | ||
</tr> | ||
{% for paciente in pacientes %} | ||
<tr> | ||
<td>{{ paciente.nome }}</td> | ||
<td>{{ paciente.cartao_sus }}</td> | ||
<td> | ||
<input type="button" value="Editar"> | ||
</td> | ||
<td> | ||
<input type="button" value="Excluir"> | ||
</td> | ||
</tr> | ||
{% endfor %} | ||
</table> | ||
</div> | ||
</div> | ||
</form> | ||
{% 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