Skip to content

Commit 98c7f33

Browse files
authored
Merge pull request #131 from ccmdesign/111-home-filters
[#111] Update Homepage filters options
2 parents a781b8b + e651af3 commit 98c7f33

File tree

1 file changed

+1
-29
lines changed

1 file changed

+1
-29
lines changed

prefix_finder/frontend/templates/home.html

Lines changed: 1 addition & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -23,20 +23,6 @@
2323
</span>
2424
</label>
2525

26-
{% if lookups.substructure %}
27-
<label class="homepage__field">
28-
In particular
29-
<span class="homepage__select">
30-
<select name="substructure">
31-
<option value="">Any type</option>
32-
{% for code, title, disabled in lookups.substructure %}
33-
<option {% if query.substructure == code %}selected{% elif disabled %}disabled{% endif %} value="{{ code }}">{% if title|slice:"1" in "AEIOU" %}An{%else%}A{%endif%} {{ title|lower }}</option>
34-
{% endfor %}
35-
</select>
36-
</span>
37-
</label>
38-
{% endif %}
39-
4026
<label class="homepage__field">
4127
Registered in
4228
<span class="homepage__select">
@@ -49,27 +35,13 @@
4935
</span>
5036
</label>
5137

52-
{% if lookups.subnational %}
53-
<label class="homepage__field">
54-
In the state or region of
55-
<span class="homepage__select">
56-
<select name="subnational">
57-
<option value="">Any subnational location</option>
58-
{% for code, title, disabled in lookups.subnational %}
59-
<option {% if query.subnational == code %}selected{% elif disabled %}disabled{% endif %} value="{{ code }}">{{ title }}</option>
60-
{% endfor %}
61-
</select>
62-
</span>
63-
</label>
64-
{% endif %}
65-
6638
<label class="homepage__field">
6739
Working in
6840
<span class="homepage__select">
6941
<select name="sector" >
7042
<option value="">Any sector</option>
7143
{% for code, title, disabled in lookups.sector %}
72-
<option {% if query.sector == code %}selected{% elif disabled %}disabled{% endif %} value="{{ code }}">{{ title }}</option>
44+
<option {% if query.sector == code %}selected{% elif disabled %}disabled{% endif %} value="{{ code }}">{{ title }}</option>
7345
{% endfor %}
7446
</select>
7547
</span>

0 commit comments

Comments
 (0)