{/foreach}
{foreach from=$fields item=field key=fieldName}
{assign var=n value=$field.name}
- {if ( $fields.$n.data_type eq 'Date') or ( $fields.$n.name eq 'activity_date_time' ) }
+ {if $fields.$n.name eq 'activity_date_time' }
<td class="compressed">{include file="CRM/common/jcalendar.tpl" elementName=$fieldName elementIndex=$activityId batchUpdate=1}</td>
{else}
<td class="compressed">{$form.field.$activityId.$n.html}</td>
{/if}
{foreach from=$fields item=field key=fieldName}
{assign var=n value=$field.name}
- {if ( $fields.$n.data_type eq 'Date') or ( in_array( $n, array( 'thankyou_date', 'cancel_date', 'receipt_date', 'receive_date', 'join_date', 'membership_start_date', 'membership_end_date' ) ) ) }
+ {if in_array( $n, array( 'thankyou_date', 'cancel_date', 'receipt_date', 'receive_date', 'join_date', 'membership_start_date', 'membership_end_date' ) ) }
<div class="compressed crm-grid-cell">
<span class="crm-batch-{$n}-{$rowNumber}">
{include file="CRM/common/jcalendar.tpl" elementName=$n elementIndex=$rowNumber batchUpdate=1}
{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') ) and $field.is_view neq 1 }
+ {if ( ( $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'}
{foreach from=$fields item=field key=fieldName}
{assign var=n value=$field.name}
- {if ( $fields.$n.data_type eq 'Date') or ( $n eq 'thankyou_date' ) or ( $n eq 'cancel_date' ) or ( $n eq 'receipt_date' ) or ( $n eq 'receive_date' )}
+ {if ( $n eq 'thankyou_date' ) or ( $n eq 'cancel_date' ) or ( $n eq 'receipt_date' ) or ( $n eq 'receive_date' )}
<td class="compressed">{include file="CRM/common/jcalendar.tpl" elementName=$n elementIndex=$cid batchUpdate=1}</td>
{else}
<td class="compressed">{$form.field.$cid.$n.html}</td>
<td class="crm-event-title">{$details.$pid.title}</td>
{foreach from=$fields item=field key=fieldName}
{assign var=n value=$field.name}
- {if ( $fields.$n.data_type eq 'Date') or ( $n eq 'participant_register_date' ) }
+ {if ( $n eq 'participant_register_date' ) }
<td class="compressed">{include file="CRM/common/jcalendar.tpl" elementName=$n elementIndex=$pid batchUpdate=1}</td>
{else}
<td class="compressed">{$form.field.$pid.$n.html}</td>