{/if}
</td>
<td class="crm-case-common-form-block-case_tags">
- {if $form.case_tags.html}
+ {if !empty($form.case_tags.html)}
{$form.case_tags.label}<br />
{$form.case_tags.html}
{/if}
<td colspan="3">{include file="CRM/common/Tagset.tpl" tagsetType='case'}</td>
</tr>
- {if $caseGroupTree}
+ {if !empty($caseGroupTree)}
<tr>
<td colspan="3">
{include file="CRM/Custom/Form/Search.tpl" groupTree=$caseGroupTree showHideLinks=false}
{* this template is used for adding a contact to a group (from view context) *}
<div class="form-item">
- {$form.group_id.html} {$form.buttons.html}
+ {if !empty($form.group_id)}{$form.group_id.html}{/if} {if !empty($form.buttons)}{$form.buttons.html}{/if}
{include file="CRM/Form/validate.tpl"}
</div>
{* entity selector *}
{crmRegion name="crm-contact-relationshipselector-pre"}
{/crmRegion}
+{if !isset($entityInClassFormat)}
+ {assign var="entityInClassFormat" value="relationship"}
+{/if}
<div class="crm-contact-{$entityInClassFormat}-{$context}">
<table
class="crm-contact-{$entityInClassFormat}-selector-{$context} crm-ajax-table"
| and copyright information, see https://civicrm.org/licensing |
+--------------------------------------------------------------------+
*}
-{if $userChecksum}
+{if !empty($userChecksum)}
{assign var=edit value='0'}
{/if}
{crmRegion name="crm-contact-userdashboard-groupcontact-pre"}
<th>{ts}In Support of{/ts}</th>
<th>{ts}Campaign Ends{/ts}</th>
<th>{ts}Status{/ts}</th>
- {if !$userChecksum} <th></th> {/if}
+ {if empty($userChecksum)} <th></th> {/if}
</tr>
{foreach from=$pcpInfo item=row}
<td>{$row.pageTitle}</td>
<td>{if $row.end_date}{$row.end_date|truncate:10:''|crmDate}{else}({ts}ongoing{/ts}){/if}</td>
<td>{$row.pcpStatus}</td>
- {if !$userChecksum}
+ {if empty($userChecksum)}
<td>{$row.action|replace:'xx':$row.pcpId}</td>
{/if}
</tr>
+--------------------------------------------------------------------+
*}
{* Wrapper around DatePickerRange TPL file *}
-<td {if $colspan} colspan="{$colspan}" {else} colspan="2" {/if} {if $class} class="{$class}" {/if}>
+<td {if !empty($colspan)} colspan="{$colspan}" {else} colspan="2" {/if} {if !empty($class)} class="{$class}" {/if}>
{assign var='hideRelativeLabel' value=$hideRelativeLabel|default:0}
{assign var='from' value=$from|default:'_low'}
{assign var='to' value=$to|default:'_high'}
*}
{* Initialize jQuery validate on a form *}
{* Extra params and functions may be added to the CRM.validate object before this template is loaded *}
-{if empty($crm_form_validate_included) and !empty($smarty.get.snippet) and $smarty.get.snippet neq 'json' and !empty($form) and !empty($form.formClass)}
+{if empty($crm_form_validate_included) and isset($smarty.get.snippet) and $smarty.get.snippet neq 'json' and !empty($form) and !empty($form.formClass)}
{assign var=crm_form_validate_included value=1}
{literal}
<script type="text/javascript">
<td class="crm-pledge-pledge_next_pay_date">{$row.pledge_next_pay_date|truncate:10:''|crmDate}</td>
<td class="crm-pledge-pledge_next_pay_amount">{$row.pledge_next_pay_amount|crmMoney:$row.pledge_currency}</td>
<td class="crm-pledge-pledge_status crm-pledge-pledge_status_{$row.pledge_status}">{$row.pledge_status}</td>
- {if !$userChecksum}
+ {if empty($userChecksum)}
<td>
{if $row.pledge_contribution_page_id and ($row.pledge_status_name neq 'Completed') and ( $row.contact_id eq $loggedUserID ) }
<a href="{crmURL p='civicrm/contribute/transact' q="reset=1&id=`$row.pledge_contribution_page_id`&pledgeId=`$row.pledge_id`"}">{ts}Make Payment{/ts}</a><br/>
<div class="crm-footer" id="crm-record-log">
<span class="col1">
{if !empty($external_identifier)}{ts}External ID{/ts}: {$external_identifier}{/if}
- {if $action NEQ 2} {ts}Contact ID{/ts}: {$contactId}{/if}
+ {if !isset($action) || (isset($action) && $action NEQ 2)} {ts}Contact ID{/ts}: {$contactId}{/if}
</span>
{if !empty($lastModified)}
{ts}Last Change by{/ts}: <a href="{crmURL p='civicrm/contact/view' q="action=view&reset=1&cid=`$lastModified.id`"}">{$lastModified.name}</a> ({$lastModified.date|crmDate})