2 +--------------------------------------------------------------------+
4 +--------------------------------------------------------------------+
5 | Copyright CiviCRM LLC (c) 2004-2018 |
6 +--------------------------------------------------------------------+
7 | This file is a part of CiviCRM. |
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. |
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. |
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 +--------------------------------------------------------------------+
26 <div class="crm-form-block">
28 <div class="messages status no-popup">
29 <div class="icon inform-icon"></div>
30 {ts}WARNING: Deleting this option will result in the loss of all data.{/ts} {ts}This action cannot be undone.{/ts} {ts}Do you want to continue?{/ts}
33 <table class="form-layout">
35 <tr class="crm-price-option-form-block-membership_type_id">
36 <td class="label">{$form.membership_type_id.label}</td>
37 <td>{$form.membership_type_id.html}
38 <br /> <span class="description">{ts}If a membership type is selected, a membership will be created or renewed when users select this option. Leave this blank if you are using this for non-membership options (e.g. magazine subscription).{/ts} {help id="id-member-price-options" file="CRM/Price/Page/Field.hlp"}</span></td>
40 <tr class="crm-price-option-form-block-membership_num_terms">
41 <td class="label">{$form.membership_num_terms.label}</td>
42 <td>{$form.membership_num_terms.html}
43 <br /> <span class="description">{ts}You can set this to a number other than one to allow multiple membership terms.{/ts}</span></td>
46 <tr class="crm-price-option-form-block-label">
47 <td class="label">{$form.label.label}</td>
48 <td>{if $action == 2}{include file='CRM/Core/I18n/Dialog.tpl' table='civicrm_price_field_value' field='label' id=$optionId}{/if}{$form.label.html}</td>
50 <tr class="crm-price-option-form-block-amount">
51 <td class="label">{$form.amount.label}</td>
52 <td>{$form.amount.html}</td>
54 <tr class="crm-price-option-form-block-non-deductible-amount">
55 <td class="label">{$form.non_deductible_amount.label}</td>
56 <td>{$form.non_deductible_amount.html}</td>
58 <tr class="crm-price-option-form-block-description">
59 <td class="label">{$form.description.label}</td>
60 <td>{if $action == 2}{include file='CRM/Core/I18n/Dialog.tpl' table='civicrm_price_field_value' field='description' id=$optionId}{/if}{$form.description.html}</td>
62 <tr class="crm-price-option-form-block-help-pre">
63 <td class="label">{$form.help_pre.label}</td>
64 <td>{if $action == 2}{include file='CRM/Core/I18n/Dialog.tpl' table='civicrm_price_field_value' field='help_pre' id=$optionId}{/if}{$form.help_pre.html}</td>
66 <tr class="crm-price-option-form-block-help-post">
67 <td class="label">{$form.help_post.label}</td>
68 <td>{if $action == 2}{include file='CRM/Core/I18n/Dialog.tpl' table='civicrm_price_field_value' field='help_post' id=$optionId}{/if}{$form.help_post.html}</td>
70 <tr class="crm-price-option-form-block-financial-type">
71 <td class="label">{$form.financial_type_id.label}</td>
74 {capture assign=ftUrl}{crmURL p='civicrm/admin/financial/financialType' q="reset=1"}{/capture}
75 {ts 1=$ftUrl}There are no financial types configured with a linked 'Revenue Account of' account. <a href='%1'>Click here</a> if you want to configure financial types for your site.{/ts}
77 {$form.financial_type_id.html}
81 {* fix for CRM-10241 *}
83 <tr class="crm-price-option-form-block-count">
84 <td class="label">{$form.count.label}</td>
85 <td>{$form.count.html} {help id="id-participant-count" file="CRM/Price/Page/Field.hlp"}</td>
87 {* 2 line fix for CRM-10241 *}
89 {if $form.max_value.html}
90 <tr class="crm-price-option-form-block-max_value">
91 <td class="label">{$form.max_value.label}</td>
92 <td>{$form.max_value.html} {help id="id-participant-max" file="CRM/Price/Page/Field.hlp"}</td>
94 {* fix for CRM-10241 *}
96 <tr class="crm-price-option-form-block-weight">
97 <td class="label">{$form.weight.label}</td>
98 <td>{$form.weight.html}</td>
100 <tr class="crm-price-option-form-block-is_active">
101 <td class="label">{$form.is_active.label}</td>
102 <td>{$form.is_active.html}</td>
103 {if !$hideDefaultOption}
104 <tr class="crm-price-option-form-block-is_default">
105 <td class="label">{$form.is_default.label}</td>
106 <td>{$form.is_default.html}</td>
109 <tr class="crm-price-field-form-block-visibility_id">
110 <td class="label">{$form.visibility_id.label}</td>
111 <td> {$form.visibility_id.html} {help id="id-visibility-options" file="CRM/Price/Page/Field.hlp"}</td>
116 <script type="text/javascript">
118 function calculateRowValues( ) {
119 var mtype = cj("#membership_type_id").val();
120 var postUrl = "{/literal}{crmURL p='civicrm/ajax/memType' h=0}{literal}";
121 cj.post( postUrl, {mtype: mtype}, function( data ) {
122 cj("#amount").val( data.total_amount );
123 cj("#label").val( data.name );
132 <div class="crm-submit-buttons">
133 {include file="CRM/common/formButtons.tpl"}