-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #390 from nationalarchives/feature/994-reorder-sea…
…rch-fields New design for advanced search filters
- Loading branch information
Showing
7 changed files
with
207 additions
and
173 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
89 changes: 89 additions & 0 deletions
89
ds_judgements_public_ui/templates/includes/courts_options.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,89 @@ | ||
<option value="">All courts</option> | ||
<option value="uksc" | ||
{% if context.court == 'uksc' %}selected="selected"{% endif %}> | ||
United Kingdom Supreme Court | ||
</option> | ||
<option value="ukpc" | ||
{% if context.court == 'ukpc' %}selected="selected"{% endif %}> | ||
Privy Council | ||
</option> | ||
<option value="ewca/civ" | ||
{% if context.court == 'ewca/civ' %}selected="selected"{% endif %}> | ||
Court of Appeal Civil Division | ||
</option> | ||
<option value="ewca/crim" | ||
{% if context.court == 'ewca/crim' %}selected="selected"{% endif %}> | ||
Court of Appeal Criminal Division | ||
</option> | ||
<option value="ewhc/admin" | ||
{% if context.court == 'ewhc/admin' %}selected="selected"{% endif %}> | ||
Administrative Court | ||
</option> | ||
<option value="ewhc/admlty" | ||
{% if context.court == 'ewhc/admlty' %}selected="selected"{% endif %}> | ||
Admiralty Court | ||
</option> | ||
<option value="ewhc/ch" | ||
{% if context.court == 'ewhc/ch' %}selected="selected"{% endif %}> | ||
Chancery Division of the High Court | ||
</option> | ||
<option value="ewhc/comm" | ||
{% if context.court == 'ewhc/comm' %}selected="selected"{% endif %}> | ||
Commercial Court | ||
</option> | ||
<option value="ewhc/scco" | ||
{% if context.court == 'ewhc/costs' or context.court == 'ewhc/scco' %}selected="selected"{% endif %}> | ||
Senior Court Costs Office | ||
</option> | ||
<option value="ewhc/fam" | ||
{% if context.court == 'ewhc/fam' %}selected="selected"{% endif %}> | ||
Family Division of the High Court | ||
</option> | ||
<option value="ewhc/ipec" | ||
{% if context.court == 'ewhc/ipec' %}selected="selected"{% endif %}> | ||
Intellectual Property Enterprise Court | ||
</option> | ||
<option value="ewhc/mercantile" | ||
{% if context.court == 'ewhc/mercantile' %}selected="selected"{% endif %}> | ||
Mercantile Court | ||
</option> | ||
<option value="ewhc/pat" | ||
{% if context.court == 'ewhc/pat' %}selected="selected"{% endif %}> | ||
Patents Court | ||
</option> | ||
<option value="ewhc/kb" | ||
{% if context.court == 'ewhc/kb' or context.court == "ewhc/qb" %}selected="selected"{% endif %}> | ||
King's / Queen's Bench Division of the High Court | ||
</option> | ||
<option value="ewhc/tcc" | ||
{% if context.court == 'ewhc/tcc' %}selected="selected"{% endif %}> | ||
Technology and Construction Court | ||
</option> | ||
<option value="ewcop" | ||
{% if context.court == 'ewcop' %}selected="selected"{% endif %}> | ||
Court of Protection | ||
</option> | ||
<option value="ewfc" | ||
{% if context.court == 'ewfc' %}selected="selected"{% endif %}> | ||
Family Court | ||
</option> | ||
<option value="ukut-aac" | ||
{% if context.court == 'ukut-aac' %}selected="selected"{% endif %}> | ||
Upper Tribunal Administrative Appeals Chamber | ||
</option> | ||
<option value="ukut-iac" | ||
{% if context.court == 'ukut-iac' %}selected="selected"{% endif %}> | ||
Upper Tribunal Immigration and Asylum Chamber | ||
</option> | ||
<option value="ukut-lc" | ||
{% if context.court == 'ukut-lc' %}selected="selected"{% endif %}> | ||
Upper Tribunal Lands Chamber | ||
</option> | ||
<option value="ukut-tcc" | ||
{% if context.court == 'ukut-tcc' %}selected="selected"{% endif %}> | ||
Upper Tribunal Tax and Chancery Chamber | ||
</option> | ||
<option value="eat" | ||
{% if context.court == 'eat' %}selected="selected"{% endif %}> | ||
Employment Appeal Tribunal | ||
</option> |
9 changes: 8 additions & 1 deletion
9
ds_judgements_public_ui/templates/includes/results_filters.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,10 @@ | ||
<div class="results-search-component__facets-wrapper"> | ||
{% include 'includes/structured_search_inputs.html' %} | ||
<div class="structured-search"> | ||
|
||
<div class="structured-search__filter-options js-results-facets"> | ||
<div class="structured-search__container"> | ||
{% include 'includes/results_filters_inputs.html' %} | ||
</div> | ||
</div> | ||
</div> | ||
</div> |
43 changes: 43 additions & 0 deletions
43
ds_judgements_public_ui/templates/includes/results_filters_inputs.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
|
||
<fieldset> | ||
<div class="structured-search__single-field-panel"> | ||
<div class="structured-search__limit-to-container"> | ||
<label for="court" class="structured-search__limit-to-label">From a specific court or tribunal</label> | ||
<select class="structured-search__select" id="court" name="court"> | ||
{% include "includes/courts_options.html" %} | ||
</select> | ||
</div> | ||
</div> | ||
</fieldset> | ||
<fieldset> | ||
<div class="structured-search__multi-fields-panel"> | ||
<div class="structured-search__limit-to-container"> | ||
<label for="from_date" class="structured-search__limit-to-label">From date</label> | ||
<input class="structured-search__date-input" id="from_date" max="3-3-2022" min="02-01-2003" name="from" | ||
placeholder="DD-MM-YYYY" type="date" value="{{context.from}}"/> | ||
</div> | ||
<div class="structured-search__limit-to-container"> | ||
<label for="to_date" class="structured-search__limit-to-label">To date</label> | ||
<input class="structured-search__date-input" id="to_date" max="3-3-2022" min="02-01-2003" name="to" | ||
placeholder="DD-MM-YYYY" type="date" value="{{context.to}}"> | ||
</div> | ||
</div> | ||
</fieldset> | ||
<fieldset> | ||
<div class="structured-search__multi-fields-panel"> | ||
<div class="structured-search__specific-field-container"> | ||
<label for="party_name" class="structured-search__limit-to-label">Party name</label> | ||
<input class="structured-search__limit-to-input" id="party_name" name="party" type="text" value="{{context.party}}" aria-describedby="party_name-help-text"> | ||
<p class="structured-search__help-text" id="party_name-help-text">For example a claimant, defendant or other party</p> | ||
</div> | ||
<div class="structured-search__specific-field-container"> | ||
<label for="judge_name" class="structured-search__limit-to-label">Judge name</label> | ||
<input class="structured-search__limit-to-input" id="judge_name" name="judge" type="text" value="{{context.judge}}" aria-describedby="judge_name-help-text"> | ||
<p class="structured-search__help-text" id="judge_name-help-text">For example 'Smith', 'Judge Smith' or 'Lord Justice Smith'</p> | ||
</div> | ||
|
||
</div> | ||
</fieldset> | ||
<div class="structured-search__submit-container"> | ||
<input type="submit" value="Update filters"> | ||
</div> |
13 changes: 13 additions & 0 deletions
13
ds_judgements_public_ui/templates/includes/structured_search_additional_inputs.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
<fieldset> | ||
<div class="structured-search__multi-fields-panel"> | ||
<div class="structured-search__specific-field-container"> | ||
<label for="neutral_citation" class="structured-search__limit-to-label">Neutral citation</label> | ||
<input class="structured-search__limit-to-input" id="neutral_citation" name="neutral_citation" type="text" value="{{context.neutral_citation}}" aria-describedby="neutral_citation-help-text"> | ||
<p class="structured-search__help-text" id="neutral_citation-help-text">For example [2021] EWCA Crim 1785</p> | ||
</div> | ||
<div class="structured-search__limit-to-container"> | ||
<label for="specific_keywords" class="structured-search__limit-to-label">Containing specific keywords</label> | ||
<input class="structured-search__limit-to-input" id="specific_keywords" name="specific_keyword" type="text" value="{{context.specific_keyword}}"> | ||
</div> | ||
</div> | ||
</fieldset> |
Oops, something went wrong.