Merge remote-tracking branch 'upstream/4.4' into 4.4-master-2014-04-07-15-32-51
[civicrm-core.git] / templates / CRM / Price / Page / table.tpl
index 74c95380392831522e30d75aaabd46f0644f3a65..c997954bc27ba034debcd0a13adb7a424769b3a6 100644 (file)
@@ -1,8 +1,8 @@
 {*
  +--------------------------------------------------------------------+
- | CiviCRM version 4.3                                                |
+ | CiviCRM version 4.5                                                |
  +--------------------------------------------------------------------+
- | Copyright CiviCRM LLC (c) 2004-2013                                |
+ | Copyright CiviCRM LLC (c) 2004-2014                                |
  +--------------------------------------------------------------------+
  | This file is a part of CiviCRM.                                    |
  |                                                                    |
       {/foreach}
 </table>
 {/if}
+{if $context EQ "EventTemplate"}
+  {if $action eq 8}
+    {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}
+  {else}
+    {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}
+  {/if}
+  <br /><br />
+<table class="report">
+  <thead class="sticky">
+    <th scope="col">{ts}Event Template Name{/ts}</th>
+    <th scope="col">{ts}Type{/ts}</th>
+    <th scope="col">{ts}Public{/ts}</th>
+  </thead>
+  {foreach from=$usedBy.civicrm_event_template item=eventTemplate key=id}
+    <tr>
+      <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>
+      <td>{$eventTemplate.eventType}</td>
+      <td>{if $eventTemplate.isPublic}{ts}Yes{/ts}{else}{ts}No{/ts}{/if}</td>
+    </tr>
+  {/foreach}
+</table>
+{/if}
 {/foreach}