Import from SVN (r45945, r596)
[civicrm-core.git] / templates / CRM / Financial / Form / FinancialType.tpl
1 {*
2 +--------------------------------------------------------------------+
3 | CiviCRM version 4.3 |
4 +--------------------------------------------------------------------+
5 | Copyright CiviCRM LLC (c) 2004-2013 |
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 {* this template is used for adding/editing/deleting financial type *}
27 <h3>{if $action eq 1}{ts}New Financial Type{/ts}{elseif $action eq 2}{ts}Edit Financial Type{/ts}{else}{ts}Delete Financial Type{/ts}{/if}</h3>
28 <div class="crm-block crm-form-block crm-financial_type-form-block">
29 {if $action eq 8}
30 <div class="messages status">
31 <div class="icon inform-icon"></div>
32 {ts}WARNING: You cannot delete a financial type if it is currently used by any Contributions, Contribution Pages or Membership Types. Consider disabling this option instead.{/ts} {ts}Deleting a financial type cannot be undone.{/ts} {ts}Do you want to continue?{/ts}
33 </div>
34 {else}
35 <div class="crm-submit-buttons">{include file="CRM/common/formButtons.tpl" location="top"}</div>
36 <table class="form-layout">
37 <tr class="crm-contribution-form-block-name">
38 <td class="label">{$form.name.label}</td>
39 <td class="html-adjust">{$form.name.html}</td>
40 </tr>
41 <tr class="crm-contribution-form-block-description">
42 <td class="label">{$form.description.label}</td>
43 <td class="html-adjust">{$form.description.html}</td>
44 </tr>
45
46 <tr class="crm-contribution-form-block-is_deductible">
47 <td class="label">{$form.is_deductible.label}</td>
48 <td class="html-adjust">{$form.is_deductible.html}<br />
49 <span class="description">{ts}Are contributions of this type tax-deductible?{/ts}</span>
50 </td>
51 </tr>
52 <tr class="crm-contribution-form-block-is_active">
53 <td class="label">{$form.is_active.label}</td>
54 <td class="html-adjust">{$form.is_active.html}</td>
55 </tr>
56 <tr class="crm-contribution-form-block-is_reserved">
57 <td class="label">{$form.is_reserved.label}</td>
58 <td class="html-adjust">{$form.is_reserved.html}</td>
59 </tr>
60
61 </table>
62 {/if}
63 <div class="crm-submit-buttons">{include file="CRM/common/formButtons.tpl" location="botttom"}</div>
64 {if $action eq 2 or $action eq 4 } {* Update or View*}
65 <div class="crm-submit-buttons">
66 <a href="{crmURL p='civicrm/admin/financial/financialType/accounts' q="action=browse&reset=1&aid=$aid"}" class="button"><span>{ts}View or Edit Financial Accounts{/ts}</a></span>
67 </div>
68 {/if}
69 </div>
70