Merge pull request #4826 from monishdeb/CRM-15740
[civicrm-core.git] / templates / CRM / Contribute / Page / Premium.tpl
CommitLineData
6a488035
TO
1{*
2 +--------------------------------------------------------------------+
39de6fd5 3 | CiviCRM version 4.6 |
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{capture assign=managePremiumsURL}{crmURL p='civicrm/admin/contribute/managePremiums' q="reset=1"}{/capture}
27{if $rows}
28<div id="ltype">
29 <div class="description">
30 <p>{ts 1=$managePremiumsURL}The premiums listed below are currently offered on this Contribution Page. If you have other premiums which are not already being offered on this page, you will see a link below to offer another premium. Use <a href='%1'>Contributions &raquo; Premiums</a> to create or enable additional premium choices which can be used on any Contribution page.{/ts}</p>
31 </div>
32 <div class="form-item">
33 {strip}
34 <table>
35 <tr class="columnheader">
36 <th>{ts}Name{/ts}</th>
37 <th>{ts}SKU{/ts}</th>
38 <th>{ts}Market Value{/ts}</th>
39 <th>{ts}Min Contribution{/ts}</th>
b2603e29 40 <th>{ts}Financial Type{/ts}</th>
6a488035
TO
41 <th>{ts}Weight{/ts}</th>
42 <th></th>
43 </tr>
44 {foreach from=$rows item=row}
45 <tr class="{cycle values='odd-row,even-row'} {$row.class}{if NOT $row.is_active} disabled{/if}">
46 <td class="crm-contribution-form-block-product_name">{$row.product_name}</td>
47 <td class="crm-contribution-form-block-sku">{$row.sku}</td>
48 <td class="crm-contribution-form-block-price">{$row.price }</td>
49 <td class="crm-contribution-form-block-min_contribution">{$row.min_contribution}</td>
b2603e29 50 <td class="crm-contribution-form-block-financial_type">{$row.financial_type_id}</td>
6a488035
TO
51 <td class="nowrap crm-contribution-form-block-weight">{$row.weight}</td>
52 <td class="crm-contribution-form-block-action">{$row.action}</td>
53 </tr>
54 {/foreach}
55 </table>
56 {/strip}
57 </div>
58 {if $products}
59 <div class="action-link">
60 <a href="{crmURL p='civicrm/admin/contribute/addProductToPage' q="reset=1&action=update&id=$id"}">&raquo; {ts}Offer Another Premium on this Contribution Page{/ts}</a>
61 </div>
62 {/if}
63</div>
64{else}
65 {if $showForm eq false}
66 <div class="messages status no-popup">
67 {if $products ne null }
68 <div class="icon inform-icon"></div>
69 {capture assign=crmURL}{crmURL p='civicrm/admin/contribute/addProductToPage' q="reset=1&action=update&id=$id"}{/capture}
70 {ts 1=$crmURL}There are no premiums offered on this contribution page yet. You can <a href='%1'>add one</a>.{/ts}
71 {else}
72 <div class="icon inform-icon"></div>
73 {ts 1=$managePremiumsURL}There are no active premiums for your site. You can <a href='%1'>create and/or enable premiums here</a>.{/ts}
74 {/if}
75 </div>
76 {/if}
77{/if}