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 | <fieldset> | |
28 | <legend>{ts}Template List{/ts}</legend> | |
29 | {if $list} | |
30 | {foreach from=$list item=rows key=report} | |
31 | <br> | |
32 | <div style="cursor:pointer;background-color:#F5F5F5" onclick="toggle_visibility('{$report}');"> | |
33 | <table class="form-layout"> | |
34 | <tr> | |
35 | <td><strong>{if $report}{$report}{else}Contact{/if} Reports</strong></td> | |
36 | </tr> | |
37 | </table> | |
38 | </div> | |
39 | <div id="{$report}" style="display:none;"> | |
40 | <table style="border:0;"> | |
41 | {foreach from=$rows item=row} | |
42 | <tr style="border-bottom:1px solid #E3E9ED;background-color:{cycle values="#FFFFFF;,#F4F6F8;" name="$report"}"> | |
43 | <td style="color:#2F425C;width:200px;"> | |
44 | <a href="{$row.url}" style="text-decoration:none;display:block;" title="{$row.description}"> | |
45 | <img alt="report" src="{$config->resourceBase}i/report.gif"/> | |
46 | <strong>{$row.title}</strong> | |
47 | </a> | |
48 | {if $row.instanceUrl} | |
49 | <div align="right"> | |
50 | <a href="{$row.instanceUrl}">{ts}Instance(s){/ts}</a> | |
51 | </div> | |
52 | {/if} | |
53 | </td> | |
54 | <td style="cursor:help;width:350px;"> | |
55 | {$row.description} | |
56 | </td> | |
57 | </tr> | |
58 | {/foreach} | |
59 | </table> | |
60 | </div> | |
61 | {/foreach} | |
62 | {else} | |
63 | <div class="messages status no-popup"> | |
64 | <div class="icon inform-icon"></div> {ts}There are currently no Reports.{/ts} | |
65 | </div> | |
66 | {/if} | |
67 | </fieldset> | |
68 | {/strip} | |
69 | {literal} | |
70 | <script type="text/javascript"> | |
71 | function toggle_visibility(id) { | |
72 | var e = document.getElementById(id); | |
73 | if (e.style.display == 'block') { | |
74 | e.style.display = 'none'; | |
75 | } else { | |
76 | e.style.display = 'block'; | |
77 | } | |
78 | } | |
79 | </script> | |
80 | {/literal} |