From 9c5fbe311195a9ee1d63f829c7fc6765f6cca1bf Mon Sep 17 00:00:00 2001 From: Andrew Hunt Date: Fri, 8 May 2020 19:15:48 -0400 Subject: [PATCH] sr-only text for wrenches --- CRM/Core/Form/Renderer.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/CRM/Core/Form/Renderer.php b/CRM/Core/Form/Renderer.php index 8450a9baa2..8090dc14a9 100644 --- a/CRM/Core/Form/Renderer.php +++ b/CRM/Core/Form/Renderer.php @@ -370,7 +370,10 @@ class CRM_Core_Form_Renderer extends HTML_QuickForm_Renderer_ArraySmarty { $path = $field->getAttribute('data-option-edit-path'); // NOTE: If we ever needed to support arguments in this link other than reset=1 we could split $path here if it contains a ? $url = CRM_Utils_System::url($path, 'reset=1'); - $el['html'] .= ' '; + $icon = CRM_Core_Page::crmIcon('fa-wrench', ts('Edit %1 Options', [1 => $field->getLabel() ?? ts('Field')])); + $el['html'] .= <<$icon +HEREDOC; } } -- 2.25.1