Merge pull request #5536 from totten/4.5-httpclient
[civicrm-core.git] / templates / CRM / Dashlet / Page / CaseDashboard.tpl
CommitLineData
6a488035
TO
1{*
2 +--------------------------------------------------------------------+
39de6fd5 3 | CiviCRM version 4.6 |
6a488035 4 +--------------------------------------------------------------------+
e7112fa7 5 | Copyright CiviCRM LLC (c) 2004-2015 |
6a488035
TO
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
27<div id="case_dashboard_dashlet" class="form-item">
28
29{capture assign=newCaseURL}{crmURL p="civicrm/case/add" q="action=add&context=standalone&reset=1"}{/capture}
30
31<div class="float-right">
32 <table class="form-layout-compressed">
33 {if $newClient}
34 <tr>
35 <td>
fd66df85
CW
36 <a href="{$newCaseURL}" class="button">
37 <span><div class="icon ui-icon-circle-plus"></div> {ts}New Case{/ts}</span>
38 </a>
6a488035
TO
39 </td>
40 </tr>
41 {/if}
42 {if $myCases}
43 <tr>
44 <td class="right">
45 <a href="{crmURL p="civicrm/case" q="reset=1&all=1"}"><span>&raquo; {ts}Show ALL Cases with Upcoming Activities{/ts}</span></a>
46 </td>
47 </tr>
48 {else}
49 <tr>
50 <td class="right">
51 <a href="{crmURL p="civicrm/case" q="reset=1&all=0"}"><span>&raquo; {ts}Show My Cases with Upcoming Activities{/ts}</span></a>
52 </td>
53 </tr>
54 {/if}
55 <tr>
56 <td class="right">
57 <a href="{crmURL p="civicrm/case/search" q="reset=1&case_owner=1&force=1"}"><span>&raquo; {ts}Show My Cases{/ts}</span></a>
58 </td>
59 </tr>
60 </table>
61</div>
62
0e71b04f 63<h3>{ts}Summary of Involvement{/ts}</h3>
6a488035
TO
64
65<table class="report">
66 <tr class="columnheader">
67 <th>&nbsp;</th>
68 {foreach from=$casesSummary.headers item=header}
69 <th scope="col" class="right" style="padding-right: 10px;"><a href="{$header.url}">{$header.status}</a></th>
70 {/foreach}
71 </tr>
72 {foreach from=$casesSummary.rows item=row key=caseType}
73 <tr>
74 <th><strong>{$caseType}</strong></th>
75 {foreach from=$casesSummary.headers item=header}
76 {assign var="caseStatus" value=$header.status}
77 <td class="label">
78 {if $row.$caseStatus}
79 <a href="{$row.$caseStatus.url}">{$row.$caseStatus.count}</a>
80 {else}
81 0
82 {/if}
83 </td>
84 {/foreach}
85 </tr>
86 {/foreach}
87</table>
88
89</div>