Merge pull request #17981 from eileenmcnaughton/merge_form
[civicrm-core.git] / templates / CRM / Financial / Form / FinancialBatch.tpl
CommitLineData
6a488035
TO
1{*
2 +--------------------------------------------------------------------+
1188c7a8 3 | Copyright CiviCRM LLC. All rights reserved. |
6a488035 4 | |
1188c7a8
TO
5 | This work is published under the GNU AGPLv3 license with some |
6 | permitted exceptions and without any warranty. For full license |
7 | and copyright information, see https://civicrm.org/licensing |
6a488035
TO
8 +--------------------------------------------------------------------+
9*}
10{* this template is used for adding/editing/deleting financial batch *}
6a488035
TO
11<div class="crm-block crm-form-block crm-financial_type-form-block">
12{if $action eq 8}
13 <div class="messages status">
34d6cec4 14 {icon icon="fa-info-circle"}{/icon}
6a488035
TO
15 {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}
16 </div>
17{else}
18 <div class="crm-submit-buttons">{include file="CRM/common/formButtons.tpl" location="top"}</div>
19
20 <table class="form-layout">
21 <tr class="crm-contribution-form-block-name">
22 <td class="label">{$form.title.label}</td>
23 <td class="html-adjust">{$form.title.html}</td>
24 </tr>
25 <tr class="crm-contribution-form-block-description">
26 <td class="label">{$form.description.label}</td>
27 <td class="html-adjust">{$form.description.html}</td>
28 </tr>
29 {if $action eq 2}
30 <tr class="crm-contribution-form-block-contact">
a48d1d9c 31 <td class="label">{ts}Created By{/ts}</td>
32 <td class="html-adjust">{$contactName}</td>
33 </tr>
6a488035
TO
34 <tr class="crm-contribution-form-block-open_date">
35 <td class="label">{ts}Opened Date{/ts}</td>
36 <td class="html-adjust">{$created_date|crmDate}</td>
37 </tr>
38 <tr class="crm-contribution-form-block-modified_date">
39 <td class="label">{ts}Modified Date{/ts}</td>
40 <td class="html-adjust">{$modified_date|crmDate}</td>
41 </tr>
42 <tr class="crm-contribution-form-block-batch_status">
43 <td class="label">{$form.status_id.label}</td>
44 <td class="html-adjust">{$form.status_id.html}</td>
45 </tr>
46 {/if}
47 </table>
48 <fieldset class="crm-collapsible">
49 <legend class="collapsible-title">{ts}Optional Constraints{/ts}</legend>
50 <div>
51 <table class="form-layout">
52 <tr class="crm-contribution-form-block-payment_instrument">
53 <td class="label">{$form.payment_instrument_id.label}</td>
54 <td class="html-adjust">{$form.payment_instrument_id.html} {help id="payment_instrument"}</td>
55 </tr>
56 <tr class="crm-contribution-form-block-item_count">
57 <td class="label">{$form.item_count.label}</td>
58 <td class="html-adjust">{$form.item_count.html|crmAddClass:number} {help id="item_count"}</td>
59 </tr>
60 <tr class="crm-contribution-form-block-total">
61 <td class="label">{$form.total.label}</td>
62 <td class="html-adjust">{$form.total.html|crmAddClass:number} {help id="total"}</td>
63 </tr>
64 </table>
65 </div>
66 </fieldset>
67{/if}
68 <div class="crm-submit-buttons">{include file="CRM/common/formButtons.tpl" location="botttom"}</div>
69</div>
70{include file="CRM/Form/validate.tpl"}