CRM-14384 - only display date picker if is_view neq 1
authorJamie McClelland <jm@mayfirst.org>
Tue, 25 Mar 2014 19:31:58 +0000 (15:31 -0400)
committerJamie McClelland <jm@mayfirst.org>
Tue, 25 Mar 2014 19:31:58 +0000 (15:31 -0400)
----------------------------------------
* CRM-14384: don't display date picker in survey data entry screen for view only field
  http://issues.civicrm.org/jira/browse/CRM-14384

templates/CRM/Campaign/Form/Task/Interview.tpl

index b096922cab0c1f384522de874b01afe8f6ec462a..b8a5ef610132cf3452641c1450ea69b0f2a09a31 100644 (file)
                 {continue}
               {/if}
               <td class="compressed {$field.data_type} {$fieldName}">
-                {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'}