Merge pull request #4375 from totten/master-mysqli-compat
[civicrm-core.git] / templates / CRM / Price / Form / Set.tpl
CommitLineData
6a488035
TO
1{*
2 +--------------------------------------------------------------------+
819d0d41 3 | CiviCRM version 4.5 |
6a488035 4 +--------------------------------------------------------------------+
819d0d41 5 | Copyright CiviCRM LLC (c) 2004-2014 |
6a488035
TO
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{* add/update price set *}
27<div id="help">
28 {ts}Use this form to edit the title and group-level help for a set of Price fields.{/ts}
29</div>
30{capture assign="enableComponents"}{crmURL p='civicrm/admin/setting/component' q="reset=1"}{/capture}
31<div class="crm-form-block">
32 <div class="crm-submit-buttons">{include file="CRM/common/formButtons.tpl" location="top"}</div>
33
34 <table class="form-layout">
35 <tr class="crm-price-set-form-block-title">
36 <td class="label">{$form.title.label}</td>
37 <td>
38 {if $action == 2}{include file='CRM/Core/I18n/Dialog.tpl' table='civicrm_price_set' field='title' id=$sid}{/if}{$form.title.html}
39 </td>
40 </tr>
41 <tr>
42 <td>&nbsp;</td>
43 <td class="description">{ts}The name of this Price Set{/ts}
44 </td>
45 <tr class="crm-price-set-form-block-extends">
46 <td class="label">{$form.extends.label}</td>
47 <td>
48 {if $extends eq false}
49 <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>
50 {else}
51 {$form.extends.html}
52 {/if}
53 </td>
54 </tr>
152ff8b9 55 <tr id="financial_type_id_row" class="crm-price-set-form-block-contribution_type_id crm-price-set-form-block-financial_type_id">
56 <td class="label">{$form.financial_type_id.label}</td>
6a488035
TO
57 <td>{$form.financial_type_id.html}</td>
58 <td>&nbsp;</td>
59 </tr>
60 <tr class="crm-price-set-form-block-help_pre">
61 <td class="label">{$form.help_pre.label}</td>
62 <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}
63 </td>
64 <td>&nbsp;</td>
65 </tr>
66 <tr>
67 <td>&nbsp;</td>
68 <td class="description">{ts}Explanatory text displayed at the beginning of this group of fields.{/ts}
69 </td>
70 </tr>
71 <tr class="crm-price-set-form-block-help_post">
72 <td class="label">{$form.help_post.label}</td>
73 <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}
74 </td>
75 </tr>
76 <tr>
77 <td>&nbsp;</td>
78 <td class="description">{ts}Explanatory text displayed below this group of fields.{/ts}
79 </td>
80 </tr>
81 <tr class="crm-price-set-form-block-is_active">
82 <td class="label">{$form.is_active.label}</td>
83 <td>{$form.is_active.html}</td>
84 </tr>
85 </table>
86 <div class="crm-submit-buttons">{include file="CRM/common/formButtons.tpl" location="bottom"}</div>
87
88</div>
89{if $action eq 2 or $action eq 4} {* Update or View*}
90 <p></p>
91 <div class="action-link">
92 <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>
93 </div>
94{/if}
95