You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
77 lines
1.4 KiB
HTML
77 lines
1.4 KiB
HTML
{% extends 'base.html' %}
|
|
|
|
{% block header %}
|
|
<h1>
|
|
{% block title %}
|
|
Match Trial {{nct_id}} to Formularies
|
|
{% endblock %}
|
|
</h1>
|
|
{% endblock %}
|
|
|
|
{% block content %}
|
|
|
|
Based on the drugs associated with a trial,
|
|
the following are the formulary group suggestions.
|
|
|
|
<form>
|
|
{% for formulary in potential_matches %}
|
|
<div class=formulary_matches>
|
|
<h2>
|
|
{{ formulary }}
|
|
</h2>
|
|
|
|
<p>
|
|
{% for formulary in potential_matches %}
|
|
|
|
<table>
|
|
<tr>
|
|
<th>Category</th>
|
|
<th>Class</th>
|
|
<th>Select</th>
|
|
</tr>
|
|
{% for row in potential_matches[formulary] %}
|
|
<tr>
|
|
<td> {{ row[1] }} </td>
|
|
<td> {{ row[2] }} </td>
|
|
<td> <input
|
|
type="checkbox"
|
|
id="{{ formulary,row }}"
|
|
name={{ formulary,row }}
|
|
value="selected">
|
|
</td>
|
|
<!-- add checkbox here -->
|
|
</tr>
|
|
{% endfor %}
|
|
|
|
</table>
|
|
</p>
|
|
<p>
|
|
If you've determined it belongs to another class
|
|
<select name="{{ formulary }}-select_box" id="{{ formularay }}-select_box">
|
|
<option disabled selected value> -- select an option -- </option>
|
|
<option value="difficult">
|
|
Difficult to choose
|
|
</option>
|
|
|
|
{% for option in class_lists[formulary] %}
|
|
<option value={{ (option[0],option[1]) }}>
|
|
Category:{{ option[0] }} Class:{{ option[1] }}
|
|
<!-- FIX this is really hard to read -->
|
|
<!-- FIX try to add opgroups? -->
|
|
</option>
|
|
{% endfor %}
|
|
|
|
</select>
|
|
{% endfor %}
|
|
|
|
{% endfor %}
|
|
|
|
</p>
|
|
<p>
|
|
<input type="submit" value="Submit">
|
|
</p>
|
|
|
|
</form>
|
|
|
|
{% endblock %}
|