{* +--------------------------------------------------------------------+ | CiviCRM version 4.5 | +--------------------------------------------------------------------+ | Copyright CiviCRM LLC (c) 2004-2014 | +--------------------------------------------------------------------+ | This file is a part of CiviCRM. | | | | CiviCRM is free software; you can copy, modify, and distribute it | | under the terms of the GNU Affero General Public License | | Version 3, 19 November 2007 and the CiviCRM Licensing Exception. | | | | CiviCRM is distributed in the hope that it will be useful, but | | WITHOUT ANY WARRANTY; without even the implied warranty of | | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. | | See the GNU Affero General Public License for more details. | | | | You should have received a copy of the GNU Affero General Public | | License and the CiviCRM Licensing Exception along | | with this program; if not, contact CiviCRM LLC | | at info[AT]civicrm[DOT]org. If you have questions about the | | GNU Affero General Public License or the licensing of CiviCRM, | | see the CiviCRM license FAQ at http://civicrm.org/licensing | +--------------------------------------------------------------------+ *} {* this template is used for adding/editing activities for a case. *} {if $cdType } {include file="CRM/Custom/Form/CustomData.tpl"} {else}
{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"}
{* added onload javascript for source contact*} {include file="CRM/Activity/Form/ActivityJs.tpl" tokenContext="case_activity"} {/if} {if $action eq 8 or $action eq 32768 }
  {if $action eq 8} {ts 1=$activityTypeName}Click Delete to move this "%1" activity to the Trash.{/ts} {else} {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'}
{ts}Notes{/ts} {* If using plain textarea, assign class=huge to make input large enough. *} {if $defaultWysiwygEditor eq 0}{$form.details.html|crmAddClass:huge}{else}{$form.details.html}{/if}
{* End of Activity Details accordion tab *} {/if}
{include file="CRM/Form/attachment.tpl"}
{$form.status_id.label}{$form.status_id.html}
{$form.priority_id.label}{$form.priority_id.html}
{/if} {if $form.tag.html} {$form.tag.label}
{$form.tag.html}
{/if} {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} {*include custom data js file*} {include file="CRM/common/customData.tpl"} {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}
{/if} {* end of main if block*}