Commit | Line | Data |
---|---|---|
6a488035 TO |
1 | {* |
2 | +--------------------------------------------------------------------+ | |
1188c7a8 | 3 | | Copyright CiviCRM LLC. All rights reserved. | |
6a488035 | 4 | | | |
1188c7a8 TO |
5 | | This work is published under the GNU AGPLv3 license with some | |
6 | | permitted exceptions and without any warranty. For full license | | |
7 | | and copyright information, see https://civicrm.org/licensing | | |
6a488035 TO |
8 | +--------------------------------------------------------------------+ |
9 | *} | |
10 | {strip} | |
b69e578b CW |
11 | <div class="action-link"> |
12 | {if $templateUrl} | |
13a3d214 | 13 | <a href="{$templateUrl}" class="button"><span><i class="crm-i fa-plus-circle" aria-hidden="true"></i> {$newButton}</span></a> |
b69e578b CW |
14 | {/if} |
15 | {if $reportUrl} | |
16 | <a href="{$reportUrl}" class="button"><span>{ts}View All Reports{/ts}</span></a> | |
17 | {/if} | |
6a488035 | 18 | </div> |
b69e578b CW |
19 | {if $list} |
20 | <div class="crm-block crm-form-block crm-report-instanceList-form-block"> | |
21 | {counter start=0 skip=1 print=false} | |
22 | {foreach from=$list item=rows key=report} | |
23 | <div class="crm-accordion-wrapper crm-accordion_{$report}-accordion "> | |
24 | <div class="crm-accordion-header"> | |
0f8c6e58 | 25 | {if $title}{$title}{elseif $report EQ 'Contribute'}{ts}Contribution Reports{/ts}{else}{ts}{$report} Reports{/ts}{/if}</a> |
b69e578b CW |
26 | </div><!-- /.crm-accordion-header --> |
27 | <div class="crm-accordion-body"> | |
28 | <div id="{$report}" class="boxBlock"> | |
29 | <table class="report-layout"> | |
30 | {foreach from=$rows item=row} | |
31 | <tr id="row_{counter}" class="crm-report-instanceList"> | |
13a3d214 | 32 | <td class="crm-report-instanceList-title" style="width:35%"><a href="{$row.url}" title="{ts}Run this report{/ts}"><i class="crm-i fa-chevron-right" aria-hidden="true"></i> <strong>{$row.title}</strong></a></td> |
b69e578b | 33 | <td class="crm-report-instanceList-description">{$row.description}</td> |
182f5081 | 34 | <td> |
35 | <a href="{$row.viewUrl}" class="action-item crm-hover-button">{ts}View Results{/ts}</a> | |
36 | <span class="btn-slide crm-hover-button">more | |
37 | <ul class="panel"> | |
38 | {foreach from=$row.actions item=action key=action_name} | |
39 | <li><a href="{$action.url}" class="{$action_name} action-item crm-hover-button small-popup" | |
40 | {if $action.confirm_message}onclick="return window.confirm({$action.confirm_message|json_encode|htmlspecialchars})"{/if} | |
f03ef825 | 41 | title="{$action.label|escape}">{$action.label}</a></li> |
182f5081 | 42 | {/foreach} |
43 | </ul> | |
44 | </span> | |
45 | </td> | |
b69e578b CW |
46 | </tr> |
47 | {/foreach} | |
48 | </table> | |
49 | </div> | |
50 | </div> | |
51 | </div> | |
52 | {/foreach} | |
53 | </div> | |
6a488035 | 54 | |
b69e578b CW |
55 | <div class="action-link"> |
56 | {if $templateUrl} | |
13a3d214 | 57 | <a href="{$templateUrl}" class="button"><span><i class="crm-i fa-plus-circle" aria-hidden="true"></i> {$newButton}</span></a> |
b69e578b CW |
58 | {/if} |
59 | {if $reportUrl} | |
60 | <a href="{$reportUrl}" class="button"><span>{ts}View All Reports{/ts}</span></a> | |
61 | {/if} | |
62 | </div> | |
6a488035 | 63 | |
b69e578b CW |
64 | {else} |
65 | <div class="crm-content-block"> | |
66 | <div class="messages status no-popup"> | |
34d6cec4 | 67 | {icon icon="fa-info-circle"}{/icon} |
0f8c6e58 | 68 | {if $myReports} |
69 | {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 | 70 | {else} |
0f8c6e58 | 71 | {ts 1=$compName}No %1 reports have been created.{/ts} |
72 | {if $templateUrl} | |
73 | {ts 1=$templateUrl}You can create reports by selecting from the <a href="%1">list of report templates here.</a>{/ts} | |
74 | {else} | |
75 | {ts}Contact your site administrator for help creating reports.{/ts} | |
76 | {/if} | |
6a488035 | 77 | {/if} |
b69e578b | 78 | </div> |
6a488035 | 79 | </div> |
b69e578b | 80 | {/if} |
6a488035 | 81 | {/strip} |