Add filtering options for findings, structures, conditions, subspecialties, and presentations in question overview
This commit is contained in:
@@ -36,6 +36,58 @@
|
||||
</select>
|
||||
</div>
|
||||
|
||||
<div class="w-100"></div>
|
||||
|
||||
<div class="col-md-4 col-sm-6">
|
||||
<label class="form-label small">Finding</label>
|
||||
<select name="finding" class="form-select form-select-sm">
|
||||
<option value="">(Any)</option>
|
||||
{% for f in findings %}
|
||||
<option value="{{ f.id }}" {% if selected_finding|default:'' == f.id|stringformat:"s" %}selected{% endif %}>{{ f.name }}</option>
|
||||
{% endfor %}
|
||||
</select>
|
||||
</div>
|
||||
|
||||
<div class="col-md-4 col-sm-6">
|
||||
<label class="form-label small">Structure</label>
|
||||
<select name="structure" class="form-select form-select-sm">
|
||||
<option value="">(Any)</option>
|
||||
{% for s in structures %}
|
||||
<option value="{{ s.id }}" {% if selected_structure|default:'' == s.id|stringformat:"s" %}selected{% endif %}>{{ s.name }}</option>
|
||||
{% endfor %}
|
||||
</select>
|
||||
</div>
|
||||
|
||||
<div class="col-md-4 col-sm-6">
|
||||
<label class="form-label small">Condition</label>
|
||||
<select name="condition" class="form-select form-select-sm">
|
||||
<option value="">(Any)</option>
|
||||
{% for c in conditions %}
|
||||
<option value="{{ c.id }}" {% if selected_condition|default:'' == c.id|stringformat:"s" %}selected{% endif %}>{{ c.name }}</option>
|
||||
{% endfor %}
|
||||
</select>
|
||||
</div>
|
||||
|
||||
<div class="col-md-4 col-sm-6">
|
||||
<label class="form-label small">Subspecialty</label>
|
||||
<select name="subspecialty" class="form-select form-select-sm">
|
||||
<option value="">(Any)</option>
|
||||
{% for ss in subspecialties %}
|
||||
<option value="{{ ss.id }}" {% if selected_subspecialty|default:'' == ss.id|stringformat:"s" %}selected{% endif %}>{{ ss.name }}</option>
|
||||
{% endfor %}
|
||||
</select>
|
||||
</div>
|
||||
|
||||
<div class="col-md-4 col-sm-6">
|
||||
<label class="form-label small">Presentation</label>
|
||||
<select name="presentation" class="form-select form-select-sm">
|
||||
<option value="">(Any)</option>
|
||||
{% for p in presentations %}
|
||||
<option value="{{ p.id }}" {% if selected_presentation|default:'' == p.id|stringformat:"s" %}selected{% endif %}>{{ p.name }}</option>
|
||||
{% endfor %}
|
||||
</select>
|
||||
</div>
|
||||
|
||||
<div class="col-auto align-self-end">
|
||||
<button class="btn btn-sm btn-primary">Filter</button>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user