{* +--------------------------------------------------------------------+ | 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 | +--------------------------------------------------------------------+ *} {if $notConfigured} {* Case types not present. Component is not configured for use. *} {include file="CRM/Case/Page/ConfigureError.tpl"} {elseif $redirectToCaseAdmin}
{else} {capture assign=newCaseURL}{crmURL p="civicrm/case/add" q="reset=1&action=add&cid=`$contactId`&context=case"}{/capture} {if $action eq 1 or $action eq 2 or $action eq 8 or $action eq 32768 } {* add, update, delete, restore*} {include file="CRM/Case/Form/Case.tpl"} {elseif $action eq 4 } {include file="CRM/Case/Form/CaseView.tpl"} {else}