From: Jamie McClelland Date: Tue, 25 Mar 2014 19:31:58 +0000 (-0400) Subject: CRM-14384 - only display date picker if is_view neq 1 X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=2e20fdce03ee617b4ae39a1a662f6f0f8bd74720;p=civicrm-core.git CRM-14384 - only display date picker if is_view neq 1 ---------------------------------------- * CRM-14384: don't display date picker in survey data entry screen for view only field http://issues.civicrm.org/jira/browse/CRM-14384 --- diff --git a/templates/CRM/Campaign/Form/Task/Interview.tpl b/templates/CRM/Campaign/Form/Task/Interview.tpl index b096922cab..b8a5ef6101 100644 --- a/templates/CRM/Campaign/Form/Task/Interview.tpl +++ b/templates/CRM/Campaign/Form/Task/Interview.tpl @@ -155,8 +155,8 @@ {continue} {/if} - {if ( $field.data_type eq 'Date') or - ( $fieldName eq 'thankyou_date' ) or ( $fieldName eq 'cancel_date' ) or ( $fieldName eq 'receipt_date' ) or ( $fieldName eq 'activity_date_time') } + {if ( ($field.data_type eq 'Date') or + ( $fieldName eq 'thankyou_date' ) or ( $fieldName eq 'cancel_date' ) or ( $fieldName eq 'receipt_date' ) or ( $fieldName eq 'activity_date_time') ) and $field.is_view neq 1 } {include file="CRM/common/jcalendar.tpl" elementName=$fieldName elementIndex=$voterId batchUpdate=1} {elseif $fieldName|substr:0:5 eq 'phone'} {assign var="phone_ext_field" value=$fieldName|replace:'phone':'phone_ext'}