SearchKit - Add help text
authorshaneonabike <Shane@Symbiotic.coop>
Mon, 13 Mar 2023 15:30:12 +0000 (11:30 -0400)
committerColeman Watts <coleman@civicrm.org>
Mon, 13 Mar 2023 15:30:12 +0000 (11:30 -0400)
ext/search_kit/ang/crmSearchAdmin/displays/colType/field.html
ext/search_kit/ang/crmSearchAdmin/displays/colType/html.html
ext/search_kit/templates/CRM/Search/Help/Display.hlp

index 16ea194e8c1053bf65ad66749896fd048d379545..3714137f3b907e14a70438ce7557cec12c23aee1 100644 (file)
@@ -36,6 +36,7 @@
     <input type="checkbox" ng-checked="col.empty_value" ng-click="$ctrl.parent.toggleEmptyVal(col)" >
     {{:: ts('Empty placeholder') }}
   </label>
+  <a crm-ui-help="hs({id: 'empty', title: ts('Empty placeholder')})"></a>
   <textarea rows="2" class="form-control crm-flex-1" ng-if="col.empty_value" ng-model="col.empty_value" ng-model-options="{updateOn: 'blur'}"></textarea>
   <crm-search-admin-token-select ng-if="col.empty_value" model="col" field="empty_value" suffix=":label"></crm-search-admin-token-select>
 </div>
index 609f296b923e52d7e9fcaf567e561d4e803628a3..518918f79d44a9e3e335863e473c46b0899f2386 100644 (file)
@@ -17,6 +17,7 @@
     <input type="checkbox" ng-checked="col.empty_value" ng-click="$ctrl.parent.toggleEmptyVal(col)" >
     {{:: ts('Empty placeholder') }}
   </label>
+  <a crm-ui-help="hs({id: 'empty', title: ts('Empty placeholder')})"></a>
   <textarea rows="2" class="form-control crm-flex-1" ng-if="col.empty_value" ng-model="col.empty_value" ng-model-options="{updateOn: 'blur'}"></textarea>
   <crm-search-admin-token-select ng-if="col.empty_value" model="col" field="empty_value" suffix=":label"></crm-search-admin-token-select>
 </div>
index 71ca83e60f3151d53da57e6e50a31bb5f58bf574..528fb70cb4c4715bab8661eb16cb42b1914220c2 100644 (file)
@@ -1,3 +1,7 @@
 {htxt id="rewrite"}
   <p>{ts}Both search tokens and smarty tags are supported when rewriting fields.{/ts}</p>
+  <p>{ts}SMARTY conditions can be used by placing quotations around the values that should be evaluated.{/ts}</p>
+{/htxt}
+{htxt id="empty"}
+  <p>{ts}SMARTY conditions can be used by placing quotations around the values that should be evaluated.{/ts}</p>
 {/htxt}