{* +--------------------------------------------------------------------+ | CiviCRM version 4.6 | +--------------------------------------------------------------------+ | Copyright CiviCRM LLC (c) 2004-2014 | +--------------------------------------------------------------------+ | This file is a part of CiviCRM. | | | | CiviCRM is free software; you can copy, modify, and distribute it | | under the terms of the GNU Affero General Public License | | Version 3, 19 November 2007 and the CiviCRM Licensing Exception. | | | | CiviCRM is distributed in the hope that it will be useful, but | | WITHOUT ANY WARRANTY; without even the implied warranty of | | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. | | See the GNU Affero General Public License for more details. | | | | You should have received a copy of the GNU Affero General Public | | License and the CiviCRM Licensing Exception along | | with this program; if not, contact CiviCRM LLC | | at info[AT]civicrm[DOT]org. If you have questions about the | | GNU Affero General Public License or the licensing of CiviCRM, | | see the CiviCRM license FAQ at http://civicrm.org/licensing | +--------------------------------------------------------------------+ *} {* this template is used for adding/editing/deleting premium *}
{if $action eq 8}
{ts}Are you sure you want to delete this premium?{/ts} {ts}This action cannot be undone.{/ts} {ts}This will also remove the premium from any contribution pages that currently include it.{/ts}
{elseif $action eq 1024} {include file="CRM/Contribute/Form/Contribution/PremiumBlock.tpl" context="previewPremium"} {else}
{include file="CRM/common/formButtons.tpl" location="top"}
{$form.name.label} {if $action == 2}{include file='CRM/Core/I18n/Dialog.tpl' table='civicrm_product' field='name' id=$productId}{/if} {$form.name.html}
{ts}Name of the premium (product, service, subscription, etc.) as it will be displayed to contributors.{/ts}
{$form.description.label} {if $action == 2}{include file='CRM/Core/I18n/Dialog.tpl' table='civicrm_product' field='description' id=$productId}{/if} {$form.description.html}
{$form.sku.label} {$form.sku.html}
{ts}Optional product SKU or code. If used, this value will be included in contributor receipts.{/ts}
{$form.imageOption.label}

{ts}You can give this premium a picture that will be displayed on the contribution page. Both a 50 x 50 pixel thumbnail image and a 200 x 200 pixel larger image will be displayed. Images must be in GIF, JPEG, or PNG format.{/ts}

{ts}You can upload an image from your computer OR enter a URL for an image already on the Web. If you chose to upload an image file, a 'thumbnail' version will be automatically created for you. If you don't have an image available at this time, you may also choose to display a 'No Image Available' icon - by selecting the 'default image'.{/ts}

{if $thumbnailUrl}{/if}
Current Image Thumbnail
{$form.imageOption.image.html}{$form.uploadFile.html}
{$form.imageOption.thumbnail.html}
{$form.imageUrl.label}{$form.imageUrl.html|crmAddClass:huge}
{$form.thumbnailUrl.label}{$form.thumbnailUrl.html|crmAddClass:huge}
{$form.imageOption.default_image.html}
{$form.imageOption.noImage.html}
{$form.min_contribution.label} {$form.min_contribution.html|crmMoney}
{ts}The minimum contribution amount required to be eligible to select this premium. If you want to offer it to all contributors regardless of contribution amount, enter '0'. If display of minimum contribution amounts is enabled then this text is displayed:{/ts} {ts}(Contribute at least X to be eligible for this gift.){/ts}
{$form.price.label} {$form.price.html|crmMoney}
{ts}The market value of this premium (e.g. retail price). For tax-deductible contributions, this amount will be used to set the non-deductible amount in the contribution record and receipt.{/ts}
{$form.cost.label} {$form.cost.html|crmMoney}
{ts}You may optionally record the actual cost of this premium to your organization. This may be useful when evaluating net return for this incentive.{/ts}
{$form.financial_type_id.label} {if !$financialType} {capture assign=ftUrl}{crmURL p='civicrm/admin/financial/financialType' q="reset=1"}{/capture} {ts 1=$ftUrl}There are no financial types configured with linked 'Cost of Sales Premiums' and 'Premiums Inventory Account' accounts. If you want to generate accounting transactions which track the cost of premiums used click here to configure financial types and accounts.{/ts} {else} {$form.financial_type_id.html}
{ts}Select a financial type that is linked to both a 'Cost of Sales Premiums Account' and a 'Premiums Inventory Account' if you want to generate accounting transactions to track the cost of premiums used.{/ts} {/if}
{$form.options.label} {if $action == 2}{include file='CRM/Core/I18n/Dialog.tpl' table='civicrm_product' field='options' id=$productId}{/if} {$form.options.html}
{ts}Enter a comma-delimited list of color, size, etc. options for the product if applicable. Contributors will be presented a drop-down menu of these options when they select this product.{/ts}
{$form.is_active.label} {$form.is_active.html}
{ts}Subscription or Service Settings{/ts}
{$form.period_type.label} {$form.period_type.html}
{ts}Select 'Rolling' if the subscription or service starts on the current day. Select 'Fixed' if the start date is a fixed month and day within the current year (set this value in the next field).{/ts}
{$form.fixed_period_start_day.label} {$form.fixed_period_start_day.html}
{ts}Month and day (MMDD) on which a fixed period subscription or service will start. EXAMPLE: A fixed period subscription with Start Day set to 0101 means that the subscription period would be 1/1/06 - 12/31/06 for anyone signing up during 2006.{/ts}
{$form.duration_interval.label} {$form.duration_interval.html}   {$form.duration_unit.html}
{ts}Duration of subscription or service (e.g. 12-month subscription).{/ts}
{$form.frequency_interval.label} {$form.frequency_interval.html}   {$form.frequency_unit.html}
{ts}Frequency of subscription or service (e.g. journal delivered every two months).{/ts}
{/if}
{include file="CRM/common/formButtons.tpl" location="bottom"}
{if $action eq 1 or $action eq 2 } {/if}