{% extends 'base.html' %}

{% block header %}
  <h1>{% block title %} ICD-10 to Trial Conditions Validation {% endblock %}</h1>
{% endblock %}

{% block content %}

<h2>Trials to Validate</h2>

<table>
<th>Trials</th>
{% for trial in list_to_validate %}
<tr><td>
    <a href="{{ url_for('.validate_trial', nct_id=trial[0] ) }}">
        {{ trial [0] }}
    </a>
</td></tr> 
{% endfor %}
</table>

<h2>Trials that have been Validated</h2>

<table>
<th>Trials Links</th>
{% for trial in validated_list %}
<tr><td>
    <a href="{{ url_for('.validate_trial', nct_id=trial[0] ) }}">
        {{ trial [0] }}
    </a> 
    (Most recently updated {{trial[1]}})
</td></tr> 
{% endfor %}
</table>

<h2>Trials that don't have a good match</h2>

<table>
<th>Trial Links</th>
{% for trial in unmatched_list %}
<tr><td>
    <a href="{{ url_for('.validate_trial', nct_id=trial[0] ) }}">
        {{ trial [0] }}
    </a>
</td></tr> 
{% endfor %}
</table>

{% endblock %}