Merge pull request #17297 from agh1/treeminus-gone
[civicrm-core.git] / templates / CRM / Core / Form / EntityForm.tpl
CommitLineData
d84ae5f6 1{*
2 +--------------------------------------------------------------------+
1188c7a8 3 | Copyright CiviCRM LLC. All rights reserved. |
d84ae5f6 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 |
d84ae5f6 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>