{* +--------------------------------------------------------------------+ | 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 | +--------------------------------------------------------------------+ *} {* 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 $cdType } {include file="CRM/Custom/Form/CustomData.tpl"} {else} {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 }
{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'} {include file="CRM/Contact/Form/NewContact.tpl"} {/if} {/if} {* activity fields *} {if $form.medium_id.html and $form.activity_location.html} {/if} {if $form.activity_details.html} {/if} {* custom data group *} {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}
{ts}Client{/ts} {$clientName}
{$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"} {if $defaultWysiwygEditor eq 0}{$form.activity_details.html|crmStripAlternatives|crmAddClass:huge40}{else}{$form.activity_details.html|crmStripAlternatives}{/if}
{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}Total time spent on this activity (in minutes).{/ts}
{$form.tag.label}
{$form.tag.html}
{literal} {/literal}
{include file="CRM/common/Tag.tpl" tagsetType='case'}
{/if} {if $action eq 1} {*include custom data js file*} {include file="CRM/common/customData.tpl"} {literal} {/literal} {/if}
{include file="CRM/common/formButtons.tpl" location="bottom"}
{* include jscript to warn if unsaved form field changes *} {include file="CRM/common/formNavigate.tpl"} {/if}