Merge pull request #1625 from pradpnayak/CRM-13340
[civicrm-core.git] / templates / CRM / Price / Page / table.tpl
CommitLineData
6a488035
TO
1{*
2 +--------------------------------------------------------------------+
232624b1 3 | CiviCRM version 4.4 |
6a488035
TO
4 +--------------------------------------------------------------------+
5 | Copyright CiviCRM LLC (c) 2004-2013 |
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{foreach from=$contexts item=context}
27{if $context EQ "Event"}
28 {if $action eq 8}
29 {ts}If you no longer want to use this price set, click the event title below, and modify the fees for that event.{/ts}
30 {else}
31 {ts}This price set is used by the event(s) listed below. Click the event title to change or remove the price set.{/ts}
32 {/if}
33 <br /><br />
34<table class="report">
35 <thead class="sticky">
36 <th scope="col">{ts}Event{/ts}</th>
37 <th scope="col">{ts}Type{/ts}</th>
38 <th scope="col">{ts}Public{/ts}</th>
39 <th scope="col">{ts}Date(s){/ts}</th>
40 </thead>
41
42 {foreach from=$usedBy.civicrm_event item=event key=id}
43 <tr>
44 <td><a href="{crmURL p="civicrm/event/manage/fee" q="action=update&reset=1&id=`$id`"}" title="{ts}Change or remove the price set used for this event.{/ts}">{$event.title}</a></td>
45 <td>{$event.eventType}</td>
46 <td>{if $event.isPublic}{ts}Yes{/ts}{else}{ts}No{/ts}{/if}</td>
47 <td>{$event.startDate|crmDate}{if $event.endDate}&nbsp;to&nbsp;{$event.endDate|crmDate}{/if}</td>
48 </tr>
49 {/foreach}
50</table>
51{/if}
52{if $context EQ "Contribution"}
53 {if $action eq 8}
54 {ts}If you no longer want to use this price set, click the contribution page title below, and modify the Amounts or Membership tab configuration.{/ts}
55 {else}
56 {ts}This price set is used by the contribution page(s) listed below. Click the contribution page title to change or remove the price set.{/ts}
57 {/if}
58 <br /><br />
59<table class="report">
60 <thead class="sticky">
61 <th scope="col">{ts}Contribution Page{/ts}</th>
62 <th scope="col">{ts}Type{/ts}</th>
63 <th scope="col">{ts}Date(s){/ts}</th>
64 </thead>
65
66 {foreach from=$usedBy.civicrm_contribution_page item=contributionPage key=id}
67 <tr>
68 <td><a href="{crmURL p="civicrm/admin/contribute/settings" q="action=update&reset=1&id=`$id`"}" title="{ts}Change or remove the price set used for this contribution page.{/ts}">{$contributionPage.title}</a></td>
69 <td>{$contributionPage.type}</td>
70 <td>{$contributionPage.startDate|truncate:10:''|crmDate}{if $contributionPage.endDate}&nbsp;to&nbsp;{$contributionPage.endDate|truncate:10:''|crmDate}{/if}</td>
71 </tr>
72 {/foreach}
73</table>
74{/if}
c34e4bb4
PJ
75{if $context EQ "EventTemplate"}
76 {if $action eq 8}
77 {ts}If you no longer want to use this price set, click the event template title below, and modify the fees for that event.{/ts}
78 {else}
79 {ts}This price set is used by the event template(s) listed below. Click the event template title to change or remove the price set.{/ts}
80 {/if}
81 <br /><br />
82<table class="report">
83 <thead class="sticky">
84 <th scope="col">{ts}Event Template Name{/ts}</th>
85 <th scope="col">{ts}Type{/ts}</th>
86 <th scope="col">{ts}Public{/ts}</th>
87 </thead>
88 {foreach from=$usedBy.civicrm_event_template item=eventTemplate key=id}
89 <tr>
90 <td><a href="{crmURL p="civicrm/event/manage/fee" q="action=update&reset=1&id=`$id`"}" title="{ts}Change or remove the price set used for this event template.{/ts}">{$eventTemplate.title}</a></td>
91 <td>{$eventTemplate.eventType}</td>
92 <td>{if $eventTemplate.isPublic}{ts}Yes{/ts}{else}{ts}No{/ts}{/if}</td>
93 </tr>
94 {/foreach}
95</table>
96{/if}
232624b1 97{/foreach}