Commit | Line | Data |
---|---|---|
b2603e29 | 1 | {* |
2 | +--------------------------------------------------------------------+ | |
39de6fd5 | 3 | | CiviCRM version 4.6 | |
b2603e29 | 4 | +--------------------------------------------------------------------+ |
819d0d41 | 5 | | Copyright CiviCRM LLC (c) 2004-2014 | |
b2603e29 | 6 | +--------------------------------------------------------------------+ |
7 | | This file is a part of CiviCRM. | | |
8 | | | | |
9 | | CiviCRM is free software; you can copy, modify, and distribute it | | |
10 | | under the terms of the GNU Affero General Public License | | |
11 | | Version 3, 19 November 2007 and the CiviCRM Licensing Exception. | | |
12 | | | | |
13 | | CiviCRM is distributed in the hope that it will be useful, but | | |
14 | | WITHOUT ANY WARRANTY; without even the implied warranty of | | |
15 | | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. | | |
16 | | See the GNU Affero General Public License for more details. | | |
17 | | | | |
18 | | You should have received a copy of the GNU Affero General Public | | |
19 | | License and the CiviCRM Licensing Exception along | | |
20 | | with this program; if not, contact CiviCRM LLC | | |
21 | | at info[AT]civicrm[DOT]org. If you have questions about the | | |
22 | | GNU Affero General Public License or the licensing of CiviCRM, | | |
23 | | see the CiviCRM license FAQ at http://civicrm.org/licensing | | |
24 | +--------------------------------------------------------------------+ | |
25 | *} | |
26 | {* CiviCase DashBoard (launch page) *} | |
27 | ||
28 | <div class="crm-block crm-content-block"> | |
29 | {if $notConfigured} {* Case types not present. Component is not configured for use. *} | |
30 | {include file="CRM/Case/Page/ConfigureError.tpl"} | |
31 | {else} | |
32 | ||
33 | {capture assign=newCaseURL}{crmURL p="civicrm/case/add" q="action=add&context=standalone&reset=1"}{/capture} | |
34 | ||
35 | <div class="crm-submit-buttons crm-case-dashboard-buttons"> | |
36 | {if $newClient and $allowToAddNewCase} | |
52604b19 | 37 | <a href="{$newCaseURL}" class="button"><span><div class="icon ui-icon-circle-plus"></div> {ts}Add Case{/ts}</span></a> |
b2603e29 | 38 | {/if} |
fd66df85 | 39 | <a class="button no-popup" name="find_my_cases" href="{crmURL p="civicrm/case/search" q="reset=1&case_owner=2&force=1"}"><span><div class="icon ui-icon-search"></div> {ts}Find My Cases{/ts}</span></a> |
b2603e29 | 40 | |
41 | <div class="crm-case-dashboard-switch-view-buttons"> | |
42 | {if $myCases} | |
43 | {* check for access all cases and activities *} | |
44 | {if call_user_func(array('CRM_Core_Permission','check'), 'access all cases and activities')} | |
45 | <div><input name="allupcoming" type="radio" class="radio" onClick='window.location.replace("{crmURL p="civicrm/case" q="reset=1&all=1"}")' value="1"><span>{ts}All Cases with Upcoming Activities{/ts}</span></input></div> | |
46 | <div><input name="allupcoming" checked type="radio" class="radio" onClick='window.location.replace("{crmURL p="civicrm/case" q="reset=1&all=0"}")' value="0"><span>{ts}My Cases with Upcoming Activities{/ts}</span></input></div> | |
47 | {/if} | |
48 | {else} | |
49 | <div><input name="allupcoming" checked type="radio" class="radio" onClick='window.location.replace("{crmURL p="civicrm/case" q="reset=1&all=1"}")' value="1"><span>{ts}All Cases with Upcoming Activities{/ts}</span></input></div> | |
50 | <div><input name="allupcoming" type="radio" class="radio" onClick='window.location.replace("{crmURL p="civicrm/case" q="reset=1&all=0"}")' value="0"><span>{ts}My Cases with Upcoming Activities{/ts}</span></input></div> | |
51 | {/if} | |
52 | </div> | |
53 | </div> | |
54 | ||
55 | ||
56 | <h3> | |
57 | {if $myCases} | |
0e71b04f | 58 | {ts}Summary of Involvement{/ts} |
b2603e29 | 59 | {else} |
60 | {ts}Summary of All Cases{/ts} | |
61 | {/if} | |
62 | </h3> | |
63 | <table class="report"> | |
64 | <tr class="columnheader"> | |
65 | <th> </th> | |
66 | {foreach from=$casesSummary.headers item=header} | |
67 | <th scope="col" class="right" style="padding-right: 10px;"><a href="{$header.url}">{$header.status}</a></th> | |
68 | {/foreach} | |
69 | </tr> | |
70 | {foreach from=$casesSummary.rows item=row key=caseType} | |
71 | <tr class="crm-case-caseStatus"> | |
72 | <th><strong>{$caseType}</strong></th> | |
73 | {foreach from=$casesSummary.headers item=header} | |
74 | {assign var="caseStatus" value=$header.status} | |
75 | <td class="label"> | |
76 | {if $row.$caseStatus} | |
77 | <a class="crm-case-summary-drilldown" href="{$row.$caseStatus.url}">{$row.$caseStatus.count}</a> | |
78 | {else} | |
79 | 0 | |
80 | {/if} | |
81 | </td> | |
82 | {/foreach} | |
83 | </tr> | |
84 | {/foreach} | |
85 | </table> | |
86 | {capture assign=findCasesURL}<a href="{crmURL p="civicrm/case/search" q="reset=1"}">{ts}Find Cases{/ts}</a>{/capture} | |
87 | ||
88 | <div class="spacer"></div> | |
89 | <h3>{if $myCases}{ts}My Cases With Upcoming Activities{/ts}{else}{ts}All Cases With Upcoming Activities{/ts}{/if}</h3> | |
90 | {if $upcomingCases} | |
91 | <div class="form-item"> | |
92 | {include file="CRM/Case/Page/DashboardSelector.tpl" context="dashboard" list="upcoming" rows=$upcomingCases} | |
93 | </div> | |
94 | {else} | |
95 | <div class="messages status no-popup"> | |
96 | {ts 1=$findCasesURL}There are no open cases with activities scheduled in the next two weeks. Use %1 to expand your search.{/ts} | |
97 | </div> | |
98 | {/if} | |
99 | ||
100 | <div class="spacer"></div> | |
101 | <h3>{if $myCases}{ts}My Cases With Recently Performed Activities{/ts}{else}{ts}All Cases With Recently Performed Activities{/ts}{/if}</h3> | |
102 | {if $recentCases} | |
103 | <div class="form-item"> | |
104 | {include file="CRM/Case/Page/DashboardSelector.tpl" context="dashboard" list="recent" rows=$recentCases} | |
105 | </div> | |
106 | {else} | |
107 | <div class="messages status no-popup"> | |
108 | {ts 1=$findCasesURL}There are no cases with activities scheduled in the past two weeks. Use %1 to expand your search.{/ts} | |
109 | </div> | |
110 | {/if} | |
111 | {/if} | |
112 | </div> | |
21d5ed51 CW |
113 | |
114 | {include file="CRM/Case/Form/ActivityChangeStatusJs.tpl"} |