Merge pull request #15820 from seamuslee001/dev_core_183_custom_contribsybnt
[civicrm-core.git] / templates / CRM / Core / Form / EntityForm.tpl
1 {*
2 +--------------------------------------------------------------------+
3 | Copyright CiviCRM LLC. All rights reserved. |
4 | |
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 |
8 +--------------------------------------------------------------------+
9 *}
10 {* this template is used for adding/editing entities *}
11 <div class="crm-block crm-form-block crm-{$entityInClassFormat}-form-block">
12 <div class="crm-submit-buttons">{include file="CRM/common/formButtons.tpl" location="top"}</div>
13 {if $action eq 8}
14 <div class="messages status no-popup">
15 <div class="icon inform-icon"></div>
16 {$deleteMessage|escape}
17 </div>
18 {else}
19 <table class="form-layout-compressed">
20 {foreach from=$entityFields item=fieldSpec}
21 {assign var=fieldName value=$fieldSpec.name}
22 <tr class="crm-{$entityInClassFormat}-form-block-{$fieldName}">
23 {include file="CRM/Core/Form/Field.tpl"}
24 </tr>
25 {/foreach}
26 </table>
27 {include file="CRM/common/customDataBlock.tpl"}
28 {/if}
29 <div class="crm-submit-buttons">{include file="CRM/common/formButtons.tpl" location="bottom"}</div>
30 </div>