Add inline help on advanced search form
authorFrancesc Bassas i Bullich <francesc@babu.cat>
Thu, 25 May 2017 08:11:12 +0000 (10:11 +0200)
committerFrancesc Bassas i Bullich <francesc@babu.cat>
Thu, 25 May 2017 08:11:12 +0000 (10:11 +0200)
templates/CRM/Contact/Form/Search/Advanced.hlp
templates/CRM/Contact/Form/Search/Criteria/Relationship.tpl

index 77a0649f6e784a785b2b295921521f2b22b62c95..d9e25dd5f959f87295804489ccb28134e22246b1 100644 (file)
     <p>{ts}Use this filter to limit search results to relationships where the related contacts are part of a specific group or groups. For example, you might want to find all individuals who are employees ('Employee of' relationship type) of organizations which are in your 'Corporate Sponsors' group.{/ts}</p>
 {/htxt}
 
+{htxt id="id-relationship-active-period-title"}
+{ts}Active Period{/ts}
+{/htxt}
+{htxt id="id-relationship-active-period"}
+    <p>{ts}Use this filter to limit search results to relationships which were active during the specified time period (e.g. this is useful if you need to search all volunteer relationships that were active during 2014).{/ts}</p>
+    <p>{ts}By definition a relationship is active if any of these conditions occurs: (1) Start Date <= Current Date <= End Date (2) Start Date <= Current Date and End Date is not defined (3) Start Date is not defined and Current Date <= End Date{/ts}</p>
+{/htxt}
+
 {htxt id="id-all-tags-title"}
 {ts}Tags{/ts}
 {/htxt}
index ae47f810a815929924eeb66e5e239dbc825f4b55..f0c3aef3c23f1f75ea7d68bd2e8e5c3a3273318e 100644 (file)
@@ -66,7 +66,7 @@
       {include file="CRM/Core/DateRange.tpl" fieldName="relation_end_date" from='_low' to='_high'}
     </tr>
     <tr>
-      <td colspan="2"><label>{ts}Active Period{/ts}</label></td>
+      <td colspan="2"><label>{ts}Active Period{/ts}</label> {help id="id-relationship-active-period" file="CRM/Contact/Form/Search/Advanced.hlp"}<br /></td>
     </tr>
     <tr>
       {include file="CRM/Core/DateRange.tpl" fieldName="relation_active_period_date" from='_low' to='_high'}