From e5ae483ea488400985a290d667061d9ee82c3545 Mon Sep 17 00:00:00 2001 From: Guy Sartorelli Date: Tue, 22 Mar 2022 15:48:50 +1300 Subject: [PATCH] ENH Make it clear how to add records. Currently there is no immediate indication that clicking a record will add it to the list. --- lang/en.yml | 1 + .../GridFieldExtensions/GridFieldAddExistingSearchHandler.ss | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/lang/en.yml b/lang/en.yml index 5792708d..c9652fbd 100644 --- a/lang/en.yml +++ b/lang/en.yml @@ -3,6 +3,7 @@ en: ADD: Add ADDEXISTING: 'Add Existing' BACK: Back + CLICKTOADD: 'Click a record to add it' CURRENT: (current) NOITEMS: 'There are no items.' Next: Next diff --git a/templates/Symbiote/GridFieldExtensions/GridFieldAddExistingSearchHandler.ss b/templates/Symbiote/GridFieldExtensions/GridFieldAddExistingSearchHandler.ss index 969fc94c..e2111174 100644 --- a/templates/Symbiote/GridFieldExtensions/GridFieldAddExistingSearchHandler.ss +++ b/templates/Symbiote/GridFieldExtensions/GridFieldAddExistingSearchHandler.ss @@ -1,6 +1,6 @@ $SearchForm -

<%t GridFieldExtensions.RESULTS "Results" %>

+

<%t GridFieldExtensions.RESULTS "Results" %> - <%t GridFieldExtensions.CLICKTOADD "Click a record to add it" %>

<% if $Items %>