Commit | Line | Data |
---|---|---|
6a488035 TO |
1 | {* |
2 | +--------------------------------------------------------------------+ | |
819d0d41 | 3 | | CiviCRM version 4.5 | |
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 | {strip} | |
27 | <div class="action-link"> | |
28 | {if $templateUrl} | |
29 | <a href="{$templateUrl}" class="button"><span><div class="icon add-icon"></div> {$newButton}</span></a> | |
30 | {/if} | |
31 | {if $reportUrl} | |
32 | <a href="{$reportUrl}" class="button"><span>{ts}View All Reports{/ts}</span></a> | |
33 | {/if} | |
34 | </div> | |
35 | {if $list} | |
36 | <div class="crm-block crm-form-block crm-report-instanceList-form-block"> | |
37 | {counter start=0 skip=1 print=false} | |
38 | {foreach from=$list item=rows key=report} | |
39 | <div class="crm-accordion-wrapper crm-accordion_{$report}-accordion "> | |
40 | <div class="crm-accordion-header"> | |
41 | {if $title}{$title}{elseif $report EQ 'Contribute'}{ts}Contribution Reports{/ts}{else}{$report} {ts}Reports{/ts}{/if}</a> | |
42 | </div><!-- /.crm-accordion-header --> | |
43 | <div class="crm-accordion-body"> | |
44 | <div id="{$report}" class="boxBlock"> | |
45 | <table class="report-layout"> | |
46 | {foreach from=$rows item=row} | |
47 | <tr id="row_{counter}" class="crm-report-instanceList"> | |
48 | <td class="crm-report-instanceList-title" style="width:35%"><a href="{$row.url}" title="{ts}Run this report{/ts}">» <strong>{$row.title}</strong></a></td> | |
49 | <td class="crm-report-instanceList-description">{$row.description}</td> | |
50 | {if $row.deleteUrl} | |
51 | <td class="crm-report-instanceList-deleteUrl" style = "width:5%"><a href="{$row.deleteUrl}" onclick="return window.confirm('{ts}Are you sure you want delete this report?{/ts} {ts}This action cannot be undone.{/ts}');">{ts}Delete{/ts}</a></td> | |
52 | {/if} | |
53 | </tr> | |
54 | {/foreach} | |
55 | </table> | |
56 | </div> | |
57 | </div> | |
58 | </div> | |
59 | {/foreach} | |
60 | </div> | |
61 | ||
62 | <div class="action-link"> | |
63 | {if $templateUrl} | |
64 | <a href="{$templateUrl}" class="button"><span><div class="icon add-icon"></div> {$newButton}</span></a> | |
65 | {/if} | |
66 | {if $reportUrl} | |
67 | <a href="{$reportUrl}" class="button"><span>{ts}View All Reports{/ts}</span></a> | |
68 | {/if} | |
69 | </div> | |
70 | ||
71 | {else} | |
72 | <div class="crm-content-block"> | |
73 | <div class="messages status no-popup"> | |
74 | <div class="icon inform-icon"></div> | |
75 | {ts 1=$compName}No %1 reports have been created.{/ts} | |
76 | {if $templateUrl} | |
77 | {ts 1=$templateUrl}You can create reports by selecting from the <a href="%1">list of report templates here.</a>{/ts} | |
78 | {else} | |
79 | {ts}Contact your site administrator for help creating reports.{/ts} | |
80 | {/if} | |
81 | </div> | |
82 | </div> | |
83 | {/if} | |
84 | {/strip} |