-
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
7dec42f
commit ee935de
Showing
7 changed files
with
100 additions
and
16 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,46 @@ | ||
{% extends "base.html" %} | ||
{% load static poll_extras %} | ||
{% block css %} | ||
<link rel="stylesheet" type="text/css" href="{% static 'css/patient-form.css' %}"> | ||
{% endblock css %} | ||
{% block title %} | ||
Editar Paciente | ||
{% endblock title %} | ||
{% block content %} | ||
|
||
<form action="{% url 'editar_paciente' id %}" method="post" class="form_row" name="frmPaciente" id="frmPaciente"> | ||
{% csrf_token %} | ||
<input type="hidden" id="hdnPacienteId" name="hdnPacienteId" value="55555" /> | ||
<div class="row"> | ||
<div class="col-5"> | ||
<h2>Cadastro de Paciente</h2> | ||
</div> | ||
</div> | ||
{% for field in form %} | ||
{% if field.name|is_fieldset %} | ||
<div class="row"> | ||
<fieldset> | ||
<legend class="{{ field.errors|yesno:" error," }}">{{ field|set_label }}</legend> | ||
{{ field }} | ||
</fieldset> | ||
</div> | ||
{% else %} | ||
<div class="row"> | ||
<div class="col-5 {{ field.errors|yesno:" error," }}">{{ field.label_tag }}</div> | ||
</div> | ||
<div class="row"> | ||
<div class="{{ field|set_column_input }}">{{ field }}</div> | ||
</div> | ||
{% endif %} | ||
<div class="row"> | ||
<div class="col-5 error">{{ field.errors }}</div> | ||
</div> | ||
{% endfor %} | ||
<div class="row"> | ||
<div class="col-5"> | ||
<input type="submit" value="Confirmar"> | ||
</div> | ||
</div> | ||
</form> | ||
<script src="{% static 'js/patient-form.js' %}"></script> | ||
{% 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
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