fix version in header
[civicrm-core.git] / templates / CRM / Dashlet / Page / CaseDashboard.tpl
CommitLineData
6a488035
TO
1{*
2 +--------------------------------------------------------------------+
39de6fd5 3 | CiviCRM version 4.6 |
6a488035 4 +--------------------------------------------------------------------+
819d0d41 5 | Copyright CiviCRM LLC (c) 2004-2014 |
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>
36 <a href="{$newCaseURL}" class="button"><span>&raquo; {ts}New Case{/ts}</span></a>
37 </td>
38 </tr>
39 {/if}
40 {if $myCases}
41 <tr>
42 <td class="right">
43 <a href="{crmURL p="civicrm/case" q="reset=1&all=1"}"><span>&raquo; {ts}Show ALL Cases with Upcoming Activities{/ts}</span></a>
44 </td>
45 </tr>
46 {else}
47 <tr>
48 <td class="right">
49 <a href="{crmURL p="civicrm/case" q="reset=1&all=0"}"><span>&raquo; {ts}Show My Cases with Upcoming Activities{/ts}</span></a>
50 </td>
51 </tr>
52 {/if}
53 <tr>
54 <td class="right">
55 <a href="{crmURL p="civicrm/case/search" q="reset=1&case_owner=1&force=1"}"><span>&raquo; {ts}Show My Cases{/ts}</span></a>
56 </td>
57 </tr>
58 </table>
59</div>
60
0e71b04f 61<h3>{ts}Summary of Involvement{/ts}</h3>
6a488035
TO
62
63<table class="report">
64 <tr class="columnheader">
65 <th>&nbsp;</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>
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 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
87</div>