CRM-14408 - get rid of unnecessary calls to crmAccordions
[civicrm-core.git] / templates / CRM / Financial / Form / FinancialBatch.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 batch *}
27<h3>{if $action eq 8}
28 {ts}Delete Batch{/ts} - {$batchTitle}
29 {elseif $action eq 1}
30 {ts}Add New Batch{/ts}
31 {elseif $action eq 2}
32 {ts}Edit Batch{/ts} - {$batchTitle}
33 {/if}
34</h3>
35<div class="crm-block crm-form-block crm-financial_type-form-block">
36{if $action eq 8}
37 <div class="messages status">
38 <div class="icon inform-icon"></div>
39 {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}
40 </div>
41{else}
42 <div class="crm-submit-buttons">{include file="CRM/common/formButtons.tpl" location="top"}</div>
43
44 <table class="form-layout">
45 <tr class="crm-contribution-form-block-name">
46 <td class="label">{$form.title.label}</td>
47 <td class="html-adjust">{$form.title.html}</td>
48 </tr>
49 <tr class="crm-contribution-form-block-description">
50 <td class="label">{$form.description.label}</td>
51 <td class="html-adjust">{$form.description.html}</td>
52 </tr>
53 {if $action eq 2}
54 <tr class="crm-contribution-form-block-contact">
a48d1d9c 55 <td class="label">{ts}Created By{/ts}</td>
56 <td class="html-adjust">{$contactName}</td>
57 </tr>
6a488035
TO
58 <tr class="crm-contribution-form-block-open_date">
59 <td class="label">{ts}Opened Date{/ts}</td>
60 <td class="html-adjust">{$created_date|crmDate}</td>
61 </tr>
62 <tr class="crm-contribution-form-block-modified_date">
63 <td class="label">{ts}Modified Date{/ts}</td>
64 <td class="html-adjust">{$modified_date|crmDate}</td>
65 </tr>
66 <tr class="crm-contribution-form-block-batch_status">
67 <td class="label">{$form.status_id.label}</td>
68 <td class="html-adjust">{$form.status_id.html}</td>
69 </tr>
70 {/if}
71 </table>
72 <fieldset class="crm-collapsible">
73 <legend class="collapsible-title">{ts}Optional Constraints{/ts}</legend>
74 <div>
75 <table class="form-layout">
76 <tr class="crm-contribution-form-block-payment_instrument">
77 <td class="label">{$form.payment_instrument_id.label}</td>
78 <td class="html-adjust">{$form.payment_instrument_id.html} {help id="payment_instrument"}</td>
79 </tr>
80 <tr class="crm-contribution-form-block-item_count">
81 <td class="label">{$form.item_count.label}</td>
82 <td class="html-adjust">{$form.item_count.html|crmAddClass:number} {help id="item_count"}</td>
83 </tr>
84 <tr class="crm-contribution-form-block-total">
85 <td class="label">{$form.total.label}</td>
86 <td class="html-adjust">{$form.total.html|crmAddClass:number} {help id="total"}</td>
87 </tr>
88 </table>
89 </div>
90 </fieldset>
91{/if}
92 <div class="crm-submit-buttons">{include file="CRM/common/formButtons.tpl" location="botttom"}</div>
93</div>
94{include file="CRM/Form/validate.tpl"}