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

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

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

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

<table>
	<thead>
    <tr>
        <th>病患姓名</th>
        <th>病歷號碼</th>
        <th>出生年月日</th>
        <th>性別</th>
	</tr>
	</thead>
    <tr>
        <td>{{ object.Lesion.treatment.patient.name }}</td>
        <td>{{ object.Lesion.treatment.patient.medical_records }}</td>
        <td>{{ object.Lesion.treatment.patient.birthday }}</td>
        <td>{{ object.Lesion.treatment.patient.get_gender_display }}</td>
		<td><a href='{% url 'patient_detail' pk=object.Lesion.treatment.patient.id %}'><img src='{{open_icon_library}}/icons/png/24x24/actions/draw-arrow-back.png' /></a></td>
    </tr>
</table>
<br/>
<table>
	<thead>
        <tr>
            <th>Lesion ID</th>
            <th>Target Location</th>
            <th>Anatomic Sublocation</th>
            <th>Pathology</th>
            <th>Target Volume (mm<sup>3</sup>)</th>
            <th>Dimensions (mm)</th>
            <th>Prescription Dose (cGy)</th>
            <th>Number of Fractions</th>
            <th>Last Modified</th>
<!--             <th>Prescription Isodose Curve</th>
            <th>Date</th>
            <th>Delete</th>
            <th>Edit</th> -->        
		</tr>
	</thead>
		<tr>
            <td>{{ object.Lesion.id }}</td>
            <td>{{ object.Lesion.sub_location.target_location }}</td>
            <td>{{ object.Lesion.sub_location }}</td>
            <td>{{ object.Lesion.pathology }}</td>
            <td>{{ object.Lesion.volume }}</td>
            <td>{{ object.Lesion.dimensions }}</td>
            <td>{{ object.Lesion.dose }}</td>
            <td>{{ object.Lesion.fractions }}</td>
            <td>{{ object.LastModified }}</td>
       </tr>
</table>
<br/>
<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 %}
