{* +--------------------------------------------------------------------+ | CiviCRM version 4.4 | +--------------------------------------------------------------------+ | Copyright CiviCRM LLC (c) 2004-2013 | +--------------------------------------------------------------------+ | 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 eq 1 or $action eq 1024} {ts 1=$activityTypeName}New activity: %1{/ts} {elseif $action eq 8}{ts 1=$activityTypeName}Delete %1{/ts} {elseif $action eq 32768}{ts 1=$activityTypeName}Restore %1{/ts} {else}{ts 1=$activityTypeName}Edit %1{/ts}{/if}

{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*} {literal} {/literal} {/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} {if $action eq 1 or $action eq 2} {/if} {* Include special processing fields if any are defined for this activity type (e.g. Change Case Status / Change Case Type). *} {if $activityTypeFile} {include file="CRM/Case/Form/Activity/$activityTypeFile.tpl"} {/if} {if $activityTypeFile neq 'ChangeCaseStartDate'} {/if} {if $action eq 2 && $activityTypeFile eq 'OpenCase'} {else} {/if} {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}Client{/ts} {foreach from=$client_names item=client name=clients} {$client.display_name}{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} {include file="CRM/Contact/Form/NewContact.tpl" noLabel=true skipBreak=true multiClient=true}
» {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} {if $admin}{$form.source_contact_id.html}{/if}
{ts}Assigned To{/ts} {$form.assignee_contact_id.html} {edit} {ts}You can optionally assign this activity to someone.{/ts} {if $activityAssigneeNotification}
{ts}A copy of this activity will be emailed to each Assignee.{/ts} {/if}
{/edit}
{$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}{$current_activity_date_time|crmDate}
Use a Change Start Date activity to change the date
{* avoid errors about missing field *}
{include file="CRM/common/jcalendar.tpl" elementName=activity_date_time}
{include file="CRM/common/jcalendar.tpl" elementName=activity_date_time}
{$form.details.label} {* 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}
{include file="CRM/Form/attachment.tpl"}
{$form.duration.label} {$form.duration.html} {ts}Total time spent on this activity (in minutes).{/ts}
{$form.status_id.label}{$form.status_id.html}
{$form.priority_id.label}{$form.priority_id.html}
{$form.tag.label}
{$form.tag.html}
{literal} {/literal}
{include file="CRM/common/Tag.tpl" tagsetType='activity'}
{/if}
{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} {/if} {* include jscript to warn if unsaved form field changes *} {include file="CRM/common/formNavigate.tpl"} {if $action eq 2 or $action eq 1} {literal} {/literal} {/if}
{/if} {* end of main if block*}