Commit | Line | Data |
---|---|---|
6a488035 TO |
1 | {* |
2 | +--------------------------------------------------------------------+ | |
2c4c49ca | 3 | | CiviCRM version 4.7 | |
6a488035 | 4 | +--------------------------------------------------------------------+ |
fa938177 | 5 | | Copyright CiviCRM LLC (c) 2004-2016 | |
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} | |
b69e578b CW |
27 | <div class="action-link"> |
28 | {if $templateUrl} | |
a2c70872 | 29 | <a href="{$templateUrl}" class="button"><span><i class="crm-i fa-plus-circle"></i> {$newButton}</span></a> |
b69e578b CW |
30 | {/if} |
31 | {if $reportUrl} | |
32 | <a href="{$reportUrl}" class="button"><span>{ts}View All Reports{/ts}</span></a> | |
33 | {/if} | |
6a488035 | 34 | </div> |
b69e578b CW |
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"> | |
0f8c6e58 | 41 | {if $title}{$title}{elseif $report EQ 'Contribute'}{ts}Contribution Reports{/ts}{else}{ts}{$report} Reports{/ts}{/if}</a> |
b69e578b CW |
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> | |
182f5081 | 50 | <td> |
51 | <a href="{$row.viewUrl}" class="action-item crm-hover-button">{ts}View Results{/ts}</a> | |
52 | <span class="btn-slide crm-hover-button">more | |
53 | <ul class="panel"> | |
54 | {foreach from=$row.actions item=action key=action_name} | |
55 | <li><a href="{$action.url}" class="{$action_name} action-item crm-hover-button small-popup" | |
56 | {if $action.confirm_message}onclick="return window.confirm({$action.confirm_message|json_encode|htmlspecialchars})"{/if} | |
57 | title="{$action.label}">{$action.label}</a></li> | |
58 | {/foreach} | |
59 | </ul> | |
60 | </span> | |
61 | </td> | |
b69e578b CW |
62 | </tr> |
63 | {/foreach} | |
64 | </table> | |
65 | </div> | |
66 | </div> | |
67 | </div> | |
68 | {/foreach} | |
69 | </div> | |
6a488035 | 70 | |
b69e578b CW |
71 | <div class="action-link"> |
72 | {if $templateUrl} | |
a2c70872 | 73 | <a href="{$templateUrl}" class="button"><span><i class="crm-i fa-plus-circle"></i> {$newButton}</span></a> |
b69e578b CW |
74 | {/if} |
75 | {if $reportUrl} | |
76 | <a href="{$reportUrl}" class="button"><span>{ts}View All Reports{/ts}</span></a> | |
77 | {/if} | |
78 | </div> | |
6a488035 | 79 | |
b69e578b CW |
80 | {else} |
81 | <div class="crm-content-block"> | |
82 | <div class="messages status no-popup"> | |
83 | <div class="icon inform-icon"></div> | |
0f8c6e58 | 84 | {if $myReports} |
85 | {ts}You do not have any private reports. To add a report to this section, edit the Report Settings for a report and set 'Add to My Reports' to Yes.{/ts} | |
6a488035 | 86 | {else} |
0f8c6e58 | 87 | {ts 1=$compName}No %1 reports have been created.{/ts} |
88 | {if $templateUrl} | |
89 | {ts 1=$templateUrl}You can create reports by selecting from the <a href="%1">list of report templates here.</a>{/ts} | |
90 | {else} | |
91 | {ts}Contact your site administrator for help creating reports.{/ts} | |
92 | {/if} | |
6a488035 | 93 | {/if} |
b69e578b | 94 | </div> |
6a488035 | 95 | </div> |
b69e578b | 96 | {/if} |
6a488035 | 97 | {/strip} |