From 28977896f8b5e1506ebe4d6bf1c661b21c404a9e Mon Sep 17 00:00:00 2001 From: Matthew Wire Date: Tue, 29 Sep 2015 22:59:55 +0100 Subject: [PATCH] Simple modification to the Custom.tpl template to use jQuery DatePicker for all *_date fields. --- templates/CRM/Contact/Form/Search/Custom.tpl | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/templates/CRM/Contact/Form/Search/Custom.tpl b/templates/CRM/Contact/Form/Search/Custom.tpl index 3cf84d4c6a..13b4dbad0f 100644 --- a/templates/CRM/Contact/Form/Search/Custom.tpl +++ b/templates/CRM/Contact/Form/Search/Custom.tpl @@ -38,10 +38,8 @@ {foreach from=$elements item=element} {$form.$element.label} - {if $element eq 'start_date'} - {include file="CRM/common/jcalendar.tpl" elementName=start_date} - {elseif $element eq 'end_date'} - {include file="CRM/common/jcalendar.tpl" elementName=end_date} + {if $element|strstr:'_date'} + {include file="CRM/common/jcalendar.tpl" elementName=$element} {else} {$form.$element.html} {/if} -- 2.25.1