commiting uncommited changes on live site
[weblabels.fsf.org.git] / crm.fsf.org / 20131203 / files / sites / all / modules-old / civicrm / templates / CRM / Contribute / Page / ManagePremiums.tpl
1 {*
2 +--------------------------------------------------------------------+
3 | CiviCRM version 4.6 |
4 +--------------------------------------------------------------------+
5 | Copyright CiviCRM LLC (c) 2004-2015 |
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 {if $action eq 1 or $action eq 2 or $action eq 8 or $action eq 1024}
27 {include file="CRM/Contribute/Form/ManagePremiums.tpl"}
28 {else}
29
30
31 {if $action ne 2}
32 {if $action ne 1 or $action ne 8}
33 <div id="help">
34 {capture assign=contribURL}{crmURL p='civicrm/admin/contribute' q="reset=1"}{/capture}
35 <p>{ts}CiviContribute allows you to configure any number of <strong>Premiums</strong> which can be offered to contributors as incentives / thank-you gifts. Premiums may be tangible items (i.e. a coffee mug or t-shirt), or they may be a membership or subscription with a pre-determined duration.{/ts}</p>
36 <p>{ts 1=$contribURL}Use this section to enter and update all premiums that you want to offer on any of your Online Contribution pages. Then you can assign one or more premiums to a specific Contribution page from <a href='%1'>Configure Online Contribution Pages</a> <strong>&raquo; Configure &raquo; Premiums</strong>.{/ts}</p>
37 </div>
38
39 {/if}
40 {if $rows}
41 <div id="ltype">
42 <p></p>
43 {strip}
44 {* handle enable/disable actions*}
45 {include file="CRM/common/enableDisableApi.tpl"}
46 {include file="CRM/common/jsortable.tpl"}
47 <table id="options" class="display">
48 <thead>
49 <tr>
50 <th id="sortable">{ts}Name{/ts}</th>
51 <th>{ts}SKU{/ts}</th>
52 <th>{ts}Market Value{/ts}</th>
53 <th>{ts}Financial Type{/ts}</th>
54 <th>{ts}Min Contribution{/ts}</th>
55 <th>{ts}Active?{/ts}</th>
56 <th></th>
57 </tr>
58 </thead>
59 {foreach from=$rows item=row}
60 <tr id="product-{$row.id}" class="crm-entity {cycle values="odd-row,even-row"} {$row.class}{if NOT $row.is_active} disabled{/if}">
61 <td class="crm-contribution-form-block-name crm-editable" data-field="name">{$row.name}</td>
62 <td class="crm-contribution-form-block-sku crm-editable" data-field="sku">{$row.sku}</td>
63 <td class="crm-contribution-form-block-price">{$row.price }</td>
64 <td class="crm-contribution-form-block-financial_type">{$row.financial_type_id}</td>
65 <td class="crm-contribution-form-block-min_contribution">{$row.min_contribution}</td>
66 <td id="row_{$row.id}_status" >{if $row.is_active eq 1} {ts}Yes{/ts} {else} {ts}No{/ts} {/if}</td>
67 <td id={$row.id}>{$row.action|replace:'xx':$row.id}</td>
68 </tr>
69 {/foreach}
70 </table>
71 {/strip}
72 {if $action ne 1 and $action ne 2}
73 <div class="action-link">
74 {crmButton q="action=add&reset=1" id="newManagePremium" icon="circle-plus"}{ts}Add Premium{/ts}{/crmButton}
75 </div>
76 {/if}
77 </div>
78 {else}
79 {if $action ne 1 and $action ne 2}
80 <div class="messages status no-popup">
81 <img src="{$config->resourceBase}i/Inform.gif" alt="{ts}status{/ts}"/>
82 {capture assign=crmURL}{crmURL p='civicrm/admin/contribute/managePremiums' q="action=add&reset=1"}{/capture}
83 {ts 1=$crmURL}No premium products have been created for your site. You can <a href='%1'>add one</a>.{/ts}
84 </div>
85 {/if}
86 {/if}
87 {/if}
88 {/if}