-
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 #911 from nationalarchives/feature/1380-court-heir…
…archy First pass at heirarchical courts list
- Loading branch information
Showing
11 changed files
with
71 additions
and
32 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
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
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
14 changes: 14 additions & 0 deletions
14
ds_judgements_public_ui/templates/includes/court_option.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,14 @@ | ||
{% load query_filters court_utils %} | ||
<div class="structured-search__court-option {% if ungrouped %}ungrouped{% endif %}"> | ||
<label for="court_{{ court.canonical_param }}"> | ||
<input type="checkbox" | ||
name="court" | ||
value="{{ court.canonical_param }}" | ||
id="court_{{ court.canonical_param }}" | ||
{% for alias in context.court %}{% if alias in court.param_aliases %}checked="checked"{% endif %} | ||
{% endfor %} /> | ||
<span class="structured-search__court-option-label">{{ court.grouped_name }} | ||
<span class="structured-search__court-date-range">— {{ court|get_court_date_range }}</span> | ||
</span> | ||
</label> | ||
</div> |
28 changes: 13 additions & 15 deletions
28
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 |
---|---|---|
@@ -1,16 +1,14 @@ | ||
{% load query_filters court_utils %} | ||
{% for court in context.courts %} | ||
<div class="structured-search__court-option"> | ||
<label for="court_{{ court.canonical_param }}"> | ||
<input type="checkbox" | ||
name="court" | ||
value="{{ court.canonical_param }}" | ||
id="court_{{ court.canonical_param }}" | ||
{% for alias in context.court %}{% if alias in court.param_aliases %}checked="checked"{% endif %} | ||
{% endfor %} /> | ||
<span class="structured-search__court-option-label">{{ court.name }} | ||
<span class="structured-search__court-date-range">— {{ court|get_court_date_range }}</span> | ||
</span> | ||
</label> | ||
</div> | ||
{% for group in courts %} | ||
{% if group.display_heading %} | ||
<div class="structured-search__court-group-label">{{ group.name }}</div> | ||
<div class="structured-search__court-group"> | ||
{% for court in group.courts %} | ||
{% include "includes/court_option.html" with court=court %} | ||
{% endfor %} | ||
</div> | ||
{% else %} | ||
{% for court in group.courts %} | ||
{% include "includes/court_option.html" with court=court ungrouped=True %} | ||
{% endfor %} | ||
{% endif %} | ||
{% endfor %} |
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
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
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
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
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
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