{* +--------------------------------------------------------------------+ | 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 | +--------------------------------------------------------------------+ *} {* this template is used for adding/editing activities for a case. *}
{if $action neq 8 and $action neq 32768 } {* Include form buttons on top for new and edit modes. *}
{include file="CRM/common/formButtons.tpl" location="top"}
{/if} {if $action eq 8 or $action eq 32768 }
  {if $action eq 8} {* activityTypeName means label here not name, but it's ok because label is desired here (dev/core#1116-ok-label) *} {ts 1=$activityTypeName}Click Delete to move this "%1" activity to the Trash.{/ts} {else} {* activityTypeName means label here not name, but it's ok because label is desired here (dev/core#1116-ok-label) *} {ts 1=$activityTypeName}Click Restore to retrieve this "%1" activity from the Trash.{/ts} {/if}

{else} {if $activityTypeDescription }
{$activityTypeDescription}
{/if} {* Block for change status, case type and start date. *} {if $activityTypeFile EQ 'ChangeCaseStatus' || $activityTypeFile EQ 'ChangeCaseType' || $activityTypeFile EQ 'LinkCases' || $activityTypeFile EQ 'ChangeCaseStartDate'} {include file="CRM/Case/Form/Activity/$activityTypeFile.tpl"} {* Added Activity Details accordion tab *} {if $searchRows} {* We have got case role rows to display for "Send Copy To" feature *} {/if} {* Suppress activity status and priority for changes to status, case type and start date. PostProc will force status to completed. *} {if $activityTypeFile NEQ 'ChangeCaseStatus' && $activityTypeFile NEQ 'ChangeCaseType' && $activityTypeFile NEQ 'ChangeCaseStartDate'} {/if} {if $form.tag.html} {/if}
{ts}Details{/ts} {$form.details.html}
{/if} {* End block for change status, case type and start date. *} {if $action eq 1 or $action eq 2} {/if} {* activityTypeName means label here not name, but it's ok because label is desired here (dev/core#1116-ok-label) *} {* Include special processing fields if any are defined for this activity type (e.g. Change Case Status / Change Case Type). *} {if $activityTypeFile neq 'ChangeCaseStartDate'} {/if} {if $action eq 2 && $activityTypeFile eq 'OpenCase'} {/if} {if NOT $activityTypeFile} {/if}
{ts}Client{/ts} {foreach from=$client_names item=client name=clients key=id} {foreach from=$client_names.$id item=client1} {$client1.display_name} {/foreach} {if not $smarty.foreach.clients.last};   {/if} {/foreach} {if $action eq 1 or $action eq 2}
{ts}With other contact(s){/ts} {/if}
{ts}With Contact{/ts} {$form.target_contact_id.html}
{if not $multiClient}{ts}With client{/ts}{else}{ts}With client(s){/ts}{/if}
{ts}Activity Type{/ts}{$activityTypeName|escape}
{$form.source_contact_id.label} {$form.source_contact_id.html}
{$form.assignee_contact_id.label} {edit}{help id="assignee_contact_id" title=$form.assignee_contact_id.label file="CRM/Activity/Form/Activity"}{/edit} {$form.assignee_contact_id.html} {if $activityAssigneeNotification}
{ts}A copy of this activity will be emailed to each Assignee.{/ts} {/if}
{$form.subject.label}{$form.subject.html|crmAddClass:huge}
{$form.medium_id.label} {$form.medium_id.html}   {$form.location.label}  {$form.location.html|crmAddClass:huge}
{$form.activity_date_time.label} {$form.activity_date_time.html} {if $action eq 2 && $activityTypeFile eq 'OpenCase'}
Use a Change Start Date activity to change the date
{/if}
{ts}Notes{/ts} {$form.details.html}
{include file="CRM/common/customDataBlock.tpl"}
{$form.details.label} {$form.details.html}
{$form.duration.label} {$form.duration.html} {ts}minutes{/ts}
{if $activityTypeFile EQ 'ChangeCaseStatus' || $activityTypeFile EQ 'ChangeCaseType' || $activityTypeFile EQ 'ChangeCaseStartDate'} {* End of Activity Details accordion tab *} {/if}
{include file="CRM/Form/attachment.tpl"}
{include file="CRM/Activity/Form/FollowUp.tpl" type="case-"}
{$form.status_id.label}{$form.status_id.html}
{$form.priority_id.label}{$form.priority_id.html}
{$form.tag.label}
{$form.tag.html}
{include file="CRM/common/Tagset.tpl" tagsetType='activity'}
{/if} {crmRegion name='case-activity-form'}{/crmRegion}
{include file="CRM/common/formButtons.tpl" location="bottom"}
{if $action eq 1 or $action eq 2} {literal} {/literal} {/if} {if $action neq 8 and $action neq 32768 and empty($activityTypeFile)} {/if} {if $action eq 2 or $action eq 1} {literal} {/literal} {/if}