{* +--------------------------------------------------------------------+ | Copyright CiviCRM LLC. All rights reserved. | | | | This work is published under the GNU AGPLv3 license with some | | permitted exceptions and without any warranty. For full license | | and copyright information, see https://civicrm.org/licensing | +--------------------------------------------------------------------+ *} {* Base template for Open Case. May be used for other special activity types at some point .. Note: 1. We will include all the activity fields here however each activity type file may build (via php) only those required by them. 2. Each activity type file can include its case fields in its own template, so that they will be included during activity edit. *}
{if $action neq 8 && $action neq 32768}
{include file="CRM/common/formButtons.tpl" location="top"}
{/if}

{if $action eq 8}{ts}Delete Case{/ts}{elseif $action eq 32768}{ts}Restore Case{/ts}{/if}

{if $action eq 8 or $action eq 32768 }
{icon icon="fa-info-circle"}{/icon} {if $action eq 8} {ts}Click Delete to move this case and all associated activities to the Trash.{/ts} {else} {ts}Click Restore to retrieve this case and all associated activities from the Trash.{/ts} {/if}
{else} {if $activityTypeDescription }
{$activityTypeDescription}
{/if} {if $clientName} {elseif !$clientName and $action eq 1} {if $context eq 'standalone'} {/if} {/if} {* activity fields *} {if $form.medium_id.html and $form.activity_location.html} {/if} {if $form.activity_details.html} {/if} {* custom data group *} {* This shows ACTIVITY custom fields, as opposed to CASE custom fields, so is not a duplicate of the other custom data block below. *} {if $groupTree} {/if} {if $form.activity_subject.html} {/if} {* inject activity type-specific form fields *} {if $activityTypeFile} {include file="CRM/Case/Form/Activity/$activityTypeFile.tpl"} {/if} {if $form.duration.html} {/if} {if $form.tag.html} {/if} {* This shows CASE custom fields, as opposed to ACTIVITY custom fields, so is not a duplicate of the other custom data block above. *} {include file="CRM/common/Tagset.tpl" tagsetType='case' tableLayout=true}
{ts}Client{/ts} {$clientName}
{$form.client_id.label} {$form.client_id.html}
{$form.medium_id.label} {$form.medium_id.html}   {$form.activity_location.label}  {$form.activity_location.html}
{$form.activity_details.label}{help id="id-details" activityTypeFile=$activityTypeFile file="CRM/Case/Form/Case.hlp"} {$form.activity_details.html|crmStripAlternatives}
{include file="CRM/Custom/Form/CustomData.tpl"}
{$form.activity_subject.label}{help id="id-activity_subject" activityTypeFile=$activityTypeFile file="CRM/Case/Form/Case.hlp"} {$form.activity_subject.html|crmAddClass:huge}
{$form.duration.label} {$form.duration.html} {ts}minutes{/ts}
{$form.tag.label}
{$form.tag.html}
{include file="CRM/common/customDataBlock.tpl"}
{/if}
{include file="CRM/common/formButtons.tpl" location="bottom"}