{% extends "nsclc/base.html" %}

{% block title %}
Patient|Oncogene mutation profiling
{% endblock %}

{% block content %}
<h2>Patient</h2>

<table>
	<thead>
    <tr>
        <th>病患姓名</th>
        <th>病歷號碼</th>
        <th>出生年月日</th>
        <th>性別</th>
	</tr>
	</thead>
    <tr>
        <td>{{ object.Patient.name }}</td>
        <td>{{ object.Patient.medical_records }}</td>
        <td>{{ object.Patient.birthday }}</td>
        <td>{{ object.Patient.get_gender_display }}</td>
		<td><a href='{% url 'patient_detail' pk=object.Patient.id %}'><img src='{{open_icon_library}}/icons/png/24x24/actions/draw-arrow-back.png' /></a></td>
    </tr>
</table>
<br/>

{% if form.errors %}
<h2>Form error!!! Not saved!!!</h2>
{% endif %}

<form action="." method="post">{% csrf_token %}
	<table>
{{ form.as_table }}
	</table>
<input type="submit" value="Submit" />
</form>

{% if form.errors %}
<h2>Form error!!! Not saved!!!</h2>
{% endif %}

{% endblock %}
