Merge pull request #17995 from colemanw/updateHook
[civicrm-core.git] / templates / CRM / Batch / Form / Batch.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 batch *}
11{if $action eq 8}
12 <h3>{ts}Delete Data Entry Batch{/ts}</h3>
13{elseif $action eq 2}
cb2036b1 14 <h3>{ts}Edit Data Entry Batch{/ts}</h3>
6a488035
TO
15{else}
16 <h3>{ts}New Data Entry Batch{/ts}</h3>
17{/if}
18<div class="crm-block crm-form-block crm-batch-form-block">
19<div class="crm-submit-buttons">{include file="CRM/common/formButtons.tpl" location="top"}</div>
20{if $action eq 8}
21 <div class="messages status no-popup">
34d6cec4 22 {icon icon="fa-info-circle"}{/icon}
6a488035
TO
23 {ts}WARNING: Deleting this batch will result in the loss of all data entered for the batch.{/ts} {ts}This may mean the loss of a substantial amount of data, and the action cannot be undone.{/ts} {ts}Do you want to continue?{/ts}
24 </div>
25{else}
26 <table class="form-layout-compressed">
27 <tr class="crm-batch-form-block-title">
28 <td class="label">{$form.title.label}</td>
29 <td>{$form.title.html}</td>
30 </tr>
31 <tr class="crm-batch-form-block-type_id">
32 <td class="label">{$form.type_id.label}</td>
33 <td>{$form.type_id.html}</td>
34 </tr>
35 <tr class="crm-batch-form-block-description">
36 <td class="label">{$form.description.label}</td>
37 <td>{$form.description.html}</td>
38 </tr>
39 <tr class="crm-batch-form-block-item_count">
40 <td class="label">{$form.item_count.label}</td>
41 <td>{$form.item_count.html}</td>
42 </tr>
43 <tr class="crm-batch-form-block-total">
44 <td class="label">{$form.total.label}</td>
45 <td>{$form.total.html|crmAddClass:eight}</td>
46 </tr>
47 </table>
48{/if}
49 <div class="crm-submit-buttons">{include file="CRM/common/formButtons.tpl" location="bottom"}</div>
50</div>