Remove unused category and filter options from question overview page
This commit is contained in:
@@ -17,14 +17,7 @@
|
||||
</select>
|
||||
</div>
|
||||
|
||||
<div class="col-auto">
|
||||
<label class="form-label small">Category</label>
|
||||
<select name="category" multiple class="form-select form-select-sm" size="4">
|
||||
{% for c in categories %}
|
||||
<option value="{{ c.id }}" {% if c.id|stringformat:"s" in selected_category %}selected{% endif %}>{{ c.category }}</option>
|
||||
{% endfor %}
|
||||
</select>
|
||||
</div>
|
||||
{# Category and other filters are rendered by the django-filter form inside Advanced filters. #}
|
||||
|
||||
<div class="col-auto">
|
||||
<label class="form-label small">Open access</label>
|
||||
@@ -46,55 +39,10 @@
|
||||
{% if qfilter %}
|
||||
<div class="mb-3">
|
||||
<h6 class="small">Full filter form</h6>
|
||||
{{ qfilter.form.media }}
|
||||
{{ qfilter.form.as_p }}
|
||||
</div>
|
||||
{% endif %}
|
||||
<div class="row g-2">
|
||||
<div class="col-md-4 col-sm-6">
|
||||
<label class="form-label small">Finding</label>
|
||||
<select name="finding" multiple class="form-select form-select-sm" size="6">
|
||||
{% for f in findings %}
|
||||
<option value="{{ f.id }}" {% if f.id|stringformat:"s" in selected_findings %}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" multiple class="form-select form-select-sm" size="6">
|
||||
{% for s in structures %}
|
||||
<option value="{{ s.id }}" {% if s.id|stringformat:"s" in selected_structures %}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" multiple class="form-select form-select-sm" size="6">
|
||||
{% for c in conditions %}
|
||||
<option value="{{ c.id }}" {% if c.id|stringformat:"s" in selected_conditions %}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" multiple class="form-select form-select-sm" size="6">
|
||||
{% for ss in subspecialties %}
|
||||
<option value="{{ ss.id }}" {% if ss.id|stringformat:"s" in selected_subspecialties %}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" multiple class="form-select form-select-sm" size="6">
|
||||
{% for p in presentations %}
|
||||
<option value="{{ p.id }}" {% if p.id|stringformat:"s" in selected_presentations %}selected{% endif %}>{{ p.name }}</option>
|
||||
{% endfor %}
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user