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 | {* add/update price set *} | |
f6eedce7 | 11 | <div class="help"> |
6a488035 TO |
12 | {ts}Use this form to edit the title and group-level help for a set of Price fields.{/ts} |
13 | </div> | |
14 | {capture assign="enableComponents"}{crmURL p='civicrm/admin/setting/component' q="reset=1"}{/capture} | |
15 | <div class="crm-form-block"> | |
16 | <div class="crm-submit-buttons">{include file="CRM/common/formButtons.tpl" location="top"}</div> | |
17 | ||
18 | <table class="form-layout"> | |
19 | <tr class="crm-price-set-form-block-title"> | |
20 | <td class="label">{$form.title.label}</td> | |
21 | <td> | |
22 | {if $action == 2}{include file='CRM/Core/I18n/Dialog.tpl' table='civicrm_price_set' field='title' id=$sid}{/if}{$form.title.html} | |
23 | </td> | |
24 | </tr> | |
25 | <tr> | |
26 | <td> </td> | |
27 | <td class="description">{ts}The name of this Price Set{/ts} | |
28 | </td> | |
29 | <tr class="crm-price-set-form-block-extends"> | |
30 | <td class="label">{$form.extends.label}</td> | |
31 | <td> | |
32 | {if $extends eq false} | |
33 | <div class="status message">{ts 1=$enableComponents}No Components have been enabled for your site that can be configured with the price sets. Click <a href='%1'>here</a> if you want to enable CiviEvent/CiviContribute for your site.{/ts}</div> | |
34 | {else} | |
35 | {$form.extends.html} | |
36 | {/if} | |
37 | </td> | |
38 | </tr> | |
f1d5fae2 | 39 | <tr class="crm-price-set-form-block-min_amount"> |
601c7a24 | 40 | <td class="label">{$form.min_amount.label}</td> |
41 | <td>{$form.min_amount.html}</td> | |
42 | </tr> | |
43 | <tr id="financial_type_id_row" class="crm-price-set-form-block-contribution_type_id crm-price-set-form-block-financial_type_id"> | |
44 | <td class="label">{$form.financial_type_id.label}</td> | |
6a488035 TO |
45 | <td>{$form.financial_type_id.html}</td> |
46 | <td> </td> | |
47 | </tr> | |
48 | <tr class="crm-price-set-form-block-help_pre"> | |
49 | <td class="label">{$form.help_pre.label}</td> | |
50 | <td>{if $action == 2}{include file='CRM/Core/I18n/Dialog.tpl' table='civicrm_price_set' field='help_pre' id=$sid}{/if}{$form.help_pre.html} | |
51 | </td> | |
52 | <td> </td> | |
53 | </tr> | |
54 | <tr> | |
55 | <td> </td> | |
56 | <td class="description">{ts}Explanatory text displayed at the beginning of this group of fields.{/ts} | |
57 | </td> | |
58 | </tr> | |
59 | <tr class="crm-price-set-form-block-help_post"> | |
60 | <td class="label">{$form.help_post.label}</td> | |
61 | <td>{if $action == 2}{include file='CRM/Core/I18n/Dialog.tpl' table='civicrm_price_set' field='help_post' id=$sid}{/if}{$form.help_post.html} | |
62 | </td> | |
63 | </tr> | |
64 | <tr> | |
65 | <td> </td> | |
66 | <td class="description">{ts}Explanatory text displayed below this group of fields.{/ts} | |
67 | </td> | |
68 | </tr> | |
69 | <tr class="crm-price-set-form-block-is_active"> | |
70 | <td class="label">{$form.is_active.label}</td> | |
71 | <td>{$form.is_active.html}</td> | |
72 | </tr> | |
73 | </table> | |
74 | <div class="crm-submit-buttons">{include file="CRM/common/formButtons.tpl" location="bottom"}</div> | |
75 | ||
76 | </div> | |
77 | {if $action eq 2 or $action eq 4} {* Update or View*} | |
78 | <p></p> | |
79 | <div class="action-link"> | |
80 | <a href="{crmURL p='civicrm/admin/price/field' q="action=browse&reset=1&sid=$sid"}" class="button"><span>{ts}Fields for this Set{/ts}</span></a> | |
81 | </div> | |
82 | {/if} | |
83 |