Merge pull request #3746 from eileenmcnaughton/prtest
[civicrm-core.git] / templates / CRM / Financial / Form / FinancialType.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{* 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">
a48d1d9c 31 <div class="icon inform-icon"></div>
6a488035
TO
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">
a48d1d9c 38 <td class="label">{$form.name.label}</td>
39 <td class="html-adjust">{$form.name.html}</td>
6a488035 40 </tr>
a48d1d9c 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>
6a488035 44 </tr>
a48d1d9c 45
6a488035 46 <tr class="crm-contribution-form-block-is_deductible">
a48d1d9c 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>
6a488035 51 </tr>
a48d1d9c 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>
6a488035 55 </tr>
a48d1d9c 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>
6a488035 59 </tr>
a48d1d9c 60
61 </table>
6a488035
TO
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">
a48d1d9c 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>
6a488035 67 </div>
a48d1d9c 68 {/if}
6a488035
TO
69</div>
70