{* +--------------------------------------------------------------------+ | 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/deleting case *} {if $addCaseContact } {include file="CRM/Contact/Form/AddContact.tpl"} {else}
{if $action eq 1} {ts}New Case{/ts} {elseif $action eq 2} {ts}Edit Case{/ts} {elseif $action eq 8 and !$context} {ts}Delete Case{/ts} {elseif $action eq 8 and $context} {ts}Detach Activity From Case{/ts} {/if}
{if $action eq 8 and $context}
{ts}Are you sure you want to detach this case from Activity?{/ts}
{elseif $action eq 8 and !$context}
{ts}Are you sure you want to delete this case?{/ts} {ts}This action cannot be undone.{/ts}
{else} {if $action neq 4 and $search eq false} {else} {/if} {/if} {* for add / edit form buttons *}
{$form.subject.label}{$form.subject.html}
 {ts}Enter the case subject{/ts}
{$form.status_id.label}{$form.status_id.html}
 {ts}Select the status for this case{/ts}
{ts}Add To {/ts}{$currentlyViewedContact}
{ts}Add More {/ts} {edit}{ts}You can optionally add this case to someone. Added case will appear in their Contact Dashboard.{/ts}{/edit} {ts}Add To {/ts}{$caseContacts}
{$form.case_type_id.label}{$form.case_type_id.html}
 {ts}Select the appropriate type of the case {/ts}
{$form.start_date.label}{$form.start_date.html} {include file="CRM/common/calendar/desc.tpl" trigger=trigger_case_1} {include file="CRM/common/calendar/body.tpl" dateVar=start_date offset=10 trigger=trigger_case_1}
{$form.end_date.label}{$form.end_date.html} {include file="CRM/common/calendar/desc.tpl" trigger=trigger_case_2} {include file="CRM/common/calendar/body.tpl" dateVar=end_date offset=10 trigger=trigger_case_2}
{$form.details.label}{$form.details.html}
 {$form.buttons.html}
{* Build add contact *} {literal} {/literal} {/if}