From a07fb2a8f6e0528465ada3471ae04b9e231b2938 Mon Sep 17 00:00:00 2001 From: Tim Cowlishaw Date: Wed, 29 Nov 2023 16:01:24 +0100 Subject: [PATCH] Update search form labels for 'or' judge search Adds instructions for 'or' judge search for when https://github.com/nationalarchives/ds-caselaw-marklogic/pull/43 is deployed. Also tweaks the typography to show example queries in italics rather than quotes (as literal quotes aren't required in the query, which was confusing) --- .../templates/includes/results_filters_inputs.html | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/ds_judgements_public_ui/templates/includes/results_filters_inputs.html b/ds_judgements_public_ui/templates/includes/results_filters_inputs.html index 24a14f2d4..edfc0551e 100644 --- a/ds_judgements_public_ui/templates/includes/results_filters_inputs.html +++ b/ds_judgements_public_ui/templates/includes/results_filters_inputs.html @@ -3,7 +3,9 @@
From date -

For example 01 01 2003 or 2003

+

+ For example 01 01 2003 or 2003 +

{% if context.errors|has_errors_for_field:"from_date" %}

{{ context.errors|errors_for_field:"from_date" }}

@@ -39,7 +41,9 @@
To date -

For example 30 04 2023 or 2023

+

+ For example 30 04 2023 or 2023 +

{% if context.errors|has_errors_for_field:"to_date" %}

{{ context.errors|errors_for_field:"to_date" }} @@ -107,7 +111,7 @@ class="structured-search__limit-to-label" aria-label="Search by judge name">Judge name

- For example 'Smith', 'Judge Smith' or 'Lord Justice Smith' + For example Smith, or multiple judges separated by commas: Smith, Jones