Commit | Line | Data |
---|---|---|
6a488035 TO |
1 | {* |
2 | +--------------------------------------------------------------------+ | |
fee14197 | 3 | | CiviCRM version 5 | |
6a488035 | 4 | +--------------------------------------------------------------------+ |
8c9251b3 | 5 | | Copyright CiviCRM LLC (c) 2004-2018 | |
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 » 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> | |
da6b7c62 | 40 | <th>{ts}Actual Cost{/ts}</th> |
e4b61f5c | 41 | <th>{ts}Financial Type{/ts}</th> |
7ecddde4 | 42 | <th>{ts}Order{/ts}</th> |
6a488035 TO |
43 | <th></th> |
44 | </tr> | |
45 | {foreach from=$rows item=row} | |
46 | <tr class="{cycle values='odd-row,even-row'} {$row.class}{if NOT $row.is_active} disabled{/if}"> | |
1c9e4ce3 | 47 | <td class="crm-contribution-form-block-product_name">{$row.product_name}</td> |
6a488035 | 48 | <td class="crm-contribution-form-block-sku">{$row.sku}</td> |
da6b7c62 MW |
49 | <td class="crm-contribution-form-block-price">{$row.price|crmMoney}</td> |
50 | <td class="crm-contribution-form-block-min_contribution">{$row.min_contribution|crmMoney}</td> | |
51 | <td class="crm-contribution-form-block-cost">{$row.cost|crmMoney}</td> | |
52 | <td class="crm-contribution-form-block-financial_type">{$row.financial_type}</td> | |
6a488035 TO |
53 | <td class="nowrap crm-contribution-form-block-weight">{$row.weight}</td> |
54 | <td class="crm-contribution-form-block-action">{$row.action}</td> | |
55 | </tr> | |
56 | {/foreach} | |
57 | </table> | |
58 | {/strip} | |
59 | </div> | |
60 | {if $products} | |
61 | <div class="action-link"> | |
62 | <a href="{crmURL p='civicrm/admin/contribute/addProductToPage' q="reset=1&action=update&id=$id"}">» {ts}Offer Another Premium on this Contribution Page{/ts}</a> | |
63 | </div> | |
64 | {/if} | |
65 | </div> | |
66 | {else} | |
67 | {if $showForm eq false} | |
68 | <div class="messages status no-popup"> | |
69 | {if $products ne null } | |
70 | <div class="icon inform-icon"></div> | |
71 | {capture assign=crmURL}{crmURL p='civicrm/admin/contribute/addProductToPage' q="reset=1&action=update&id=$id"}{/capture} | |
72 | {ts 1=$crmURL}There are no premiums offered on this contribution page yet. You can <a href='%1'>add one</a>.{/ts} | |
73 | {else} | |
74 | <div class="icon inform-icon"></div> | |
75 | {ts 1=$managePremiumsURL}There are no active premiums for your site. You can <a href='%1'>create and/or enable premiums here</a>.{/ts} | |
76 | {/if} | |
77 | </div> | |
78 | {/if} | |
79 | {/if} |