55456b0b34dabfb6e424895e69aaa5e8ef7be57b
[civicrm-core.git] / templates / CRM / Financial / Form / FinancialType.tpl
1 {*
2 +--------------------------------------------------------------------+
3 | CiviCRM version 4.7 |
4 +--------------------------------------------------------------------+
5 | Copyright CiviCRM LLC (c) 2004-2016 |
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 <div class="crm-block crm-form-block crm-financial_type-form-block">
28 {if $action eq 8}
29 <div class="messages status">
30 <div class="icon inform-icon"></div>
31 {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}
32 </div>
33 {else}
34 <div class="crm-submit-buttons">{include file="CRM/common/formButtons.tpl" location="top"}</div>
35 <table class="form-layout">
36 <tr class="crm-contribution-form-block-name">
37 <td class="label">{$form.name.label}</td>
38 <td class="html-adjust">{$form.name.html}</td>
39 </tr>
40 <tr class="crm-contribution-form-block-description">
41 <td class="label">{$form.description.label}</td>
42 <td class="html-adjust">{$form.description.html}</td>
43 </tr>
44
45 <tr class="crm-contribution-form-block-is_deductible">
46 <td class="label">{$form.is_deductible.label}</td>
47 <td class="html-adjust">{$form.is_deductible.html}<br />
48 <span class="description">{ts}Are contributions of this type tax-deductible?{/ts}</span>
49 </td>
50 </tr>
51 <tr class="crm-contribution-form-block-is_active">
52 <td class="label">{$form.is_active.label}</td>
53 <td class="html-adjust">{$form.is_active.html}</td>
54 </tr>
55 <tr class="crm-contribution-form-block-is_reserved">
56 <td class="label">{$form.is_reserved.label}</td>
57 <td class="html-adjust">{$form.is_reserved.html}</td>
58 </tr>
59
60 </table>
61 {/if}
62 <div class="crm-submit-buttons">{include file="CRM/common/formButtons.tpl" location="botttom"}</div>
63 {if $action eq 2 or $action eq 4 } {* Update or View*}
64 <div class="crm-submit-buttons">
65 <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>
66 </div>
67 {/if}
68 </div>
69