Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

a fix to issue #1640 state and region error #1688

Open
wants to merge 1 commit into
base: dev
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
44 changes: 17 additions & 27 deletions _includes/search-form.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{% capture common_input_attributes %}autocomplete="off" autocorrect="off" autocapitalize="off"{% endcapture %}

<div class="controls-container">
<fieldset>
<legend>Programs/Degree</legend>
Expand Down Expand Up @@ -46,9 +47,17 @@ <h1 class="search_category">
</button>
</h1>

<div id="location-content" aria-hidden="true" class="accordion-div">

<div class="input-add group_inline">

<div id="location-content" aria-hidden="true" class="accordion-div">







<div class="input-add group_inline" id="statelocal">

<div class="label" id="label-select-state">
Select one or more states
Expand All @@ -75,32 +84,7 @@ <h1 class="search_category">

</div>

<div class="input-add group_inline">

<div class="label" id="label-select-region">
Select one or more regions
</div>

<multi-select>
<div class="u-group_inline u-group_inline-left">
<select aria-labelledby="label-select-region" class="select-region" name="region">
<option value="" selected>Any</option>
{% for region in site.data.regions|sort('name') %}
<option value="{{ region.id }}" data-states="{{ region.states }}">{{ region.name }}</option>
{% endfor %}
</select>
</div>
<div class="u-group_inline u-group_inline-right u-nowrap">
<button type="button" class="button button-add">
Add<br>Region
</button>
<button type="button" class="button button-remove" title="Remove Region" aria-label="Remove Region">
&times;
</button>
</div>
</multi-select>

</div>

<div class="group_inline">

Expand Down Expand Up @@ -287,3 +271,9 @@ <h1>Type of school</h1>
</button>

</div>

<script type="text/javascript">
function hide(){
document.getElementById("statelocal").hidden = true;
}
</script>