Commit | Line | Data |
---|---|---|
6a488035 TO |
1 | {* |
2 | +--------------------------------------------------------------------+ | |
1188c7a8 | 3 | | Copyright CiviCRM LLC. All rights reserved. | |
6a488035 | 4 | | | |
1188c7a8 TO |
5 | | This work is published under the GNU AGPLv3 license with some | |
6 | | permitted exceptions and without any warranty. For full license | | |
7 | | and copyright information, see https://civicrm.org/licensing | | |
6a488035 TO |
8 | +--------------------------------------------------------------------+ |
9 | *} | |
10 | {capture assign=managePremiumsURL}{crmURL p='civicrm/admin/contribute/managePremiums' q="reset=1"}{/capture} | |
11 | {if $rows} | |
12 | <div id="ltype"> | |
13 | <div class="description"> | |
14 | <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> | |
15 | </div> | |
16 | <div class="form-item"> | |
17 | {strip} | |
18 | <table> | |
19 | <tr class="columnheader"> | |
20 | <th>{ts}Name{/ts}</th> | |
21 | <th>{ts}SKU{/ts}</th> | |
22 | <th>{ts}Market Value{/ts}</th> | |
23 | <th>{ts}Min Contribution{/ts}</th> | |
da6b7c62 | 24 | <th>{ts}Actual Cost{/ts}</th> |
e4b61f5c | 25 | <th>{ts}Financial Type{/ts}</th> |
7ecddde4 | 26 | <th>{ts}Order{/ts}</th> |
6a488035 TO |
27 | <th></th> |
28 | </tr> | |
29 | {foreach from=$rows item=row} | |
30 | <tr class="{cycle values='odd-row,even-row'} {$row.class}{if NOT $row.is_active} disabled{/if}"> | |
1c9e4ce3 | 31 | <td class="crm-contribution-form-block-product_name">{$row.product_name}</td> |
6a488035 | 32 | <td class="crm-contribution-form-block-sku">{$row.sku}</td> |
da6b7c62 MW |
33 | <td class="crm-contribution-form-block-price">{$row.price|crmMoney}</td> |
34 | <td class="crm-contribution-form-block-min_contribution">{$row.min_contribution|crmMoney}</td> | |
35 | <td class="crm-contribution-form-block-cost">{$row.cost|crmMoney}</td> | |
36 | <td class="crm-contribution-form-block-financial_type">{$row.financial_type}</td> | |
6a488035 TO |
37 | <td class="nowrap crm-contribution-form-block-weight">{$row.weight}</td> |
38 | <td class="crm-contribution-form-block-action">{$row.action}</td> | |
39 | </tr> | |
40 | {/foreach} | |
41 | </table> | |
42 | {/strip} | |
43 | </div> | |
44 | {if $products} | |
45 | <div class="action-link"> | |
13a3d214 | 46 | <a href="{crmURL p='civicrm/admin/contribute/addProductToPage' q="reset=1&action=update&id=$id"}"><i class="crm-i fa-plus-circle" aria-hidden="true"></i> {ts}Offer Another Premium on this Contribution Page{/ts}</a> |
6a488035 TO |
47 | </div> |
48 | {/if} | |
49 | </div> | |
50 | {else} | |
51 | {if $showForm eq false} | |
52 | <div class="messages status no-popup"> | |
53 | {if $products ne null } | |
34d6cec4 | 54 | {icon icon="fa-info-circle"}{/icon} |
6a488035 TO |
55 | {capture assign=crmURL}{crmURL p='civicrm/admin/contribute/addProductToPage' q="reset=1&action=update&id=$id"}{/capture} |
56 | {ts 1=$crmURL}There are no premiums offered on this contribution page yet. You can <a href='%1'>add one</a>.{/ts} | |
57 | {else} | |
34d6cec4 | 58 | {icon icon="fa-info-circle"}{/icon} |
6a488035 TO |
59 | {ts 1=$managePremiumsURL}There are no active premiums for your site. You can <a href='%1'>create and/or enable premiums here</a>.{/ts} |
60 | {/if} | |
61 | </div> | |
62 | {/if} | |
63 | {/if} |