2 +--------------------------------------------------------------------+
3 | Copyright CiviCRM LLC. All rights reserved. |
5 | This work is published under the GNU AGPLv3 license with some |
6 | permitted exceptions and without any warranty. For full license |
7 | and copyright information, see https://civicrm.org/licensing |
8 +--------------------------------------------------------------------+
10 {if $notConfigured} {* Case types not present. Component is not configured for use. *}
11 {include file="CRM/Case/Page/ConfigureError.tpl"}
13 {elseif $redirectToCaseAdmin}
14 <div class="messages status no-popup">
15 {icon icon="fa-info-circle"}{/icon}
16 <strong>{ts}Oops, It looks like there are no active case types.{/ts}</strong>
17 {if call_user_func(array('CRM_Core_Permission','check'), ' administer CiviCase')}
18 {capture assign=adminCaseTypeURL}{crmURL p='civicrm/a/#/caseType'}
20 {ts 1=$adminCaseTypeURL 2=$adminCaseStatusURL}Enable <a href='%1'>case types</a>.{/ts}
26 {capture assign=newCaseURL}{crmURL p="civicrm/case/add" q="reset=1&action=add&cid=`$contactId`&context=case"}{/capture}
28 {if $action eq 1 or $action eq 2 or $action eq 8 or $action eq 32768 } {* add, update, delete, restore*}
29 {include file="CRM/Case/Form/Case.tpl"}
30 {elseif $action eq 4 }
31 {include file="CRM/Case/Form/CaseView.tpl"}
34 <div class="crm-block crm-content-block">
35 <div class="view-content">
37 {ts 1=$displayName}This page lists all case records for %1.{/ts}
38 {if $permission EQ 'edit' and call_user_func(array('CRM_Core_Permission','check'), 'access all cases and activities') and $allowToAddNewCase}
39 {ts 1="href='$newCaseURL' class='action-item'"}Click <a %1>Add Case</a> to add a case record for this contact.{/ts}{/if}
42 {if $action eq 16 and $permission EQ 'edit' and
43 ( call_user_func(array('CRM_Core_Permission','check'), 'access all cases and activities') OR
44 call_user_func(array('CRM_Core_Permission','check'), 'add cases') ) AND
46 <div class="action-link">
47 <a accesskey="N" href="{$newCaseURL}" class="button no-popup"><span><i class="crm-i fa-plus-circle" aria-hidden="true"></i> {ts}Add Case{/ts}</span></a>
52 {include file="CRM/Case/Form/Selector.tpl"}
54 <div class="messages status no-popup">
55 {icon icon="fa-info-circle"}{/icon}
56 {ts}There are no case records for this contact.{/ts}