Merge pull request #13437 from mattwire/ref_simplifybillingblock_template
[civicrm-core.git] / templates / CRM / Core / Form / EntityForm.tpl
CommitLineData
d84ae5f6 1{*
2 +--------------------------------------------------------------------+
3 | CiviCRM version 5 |
4 +--------------------------------------------------------------------+
6b83d5bd 5 | Copyright CiviCRM LLC (c) 2004-2019 |
d84ae5f6 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 entities *}
27<div class="crm-block crm-form-block crm-{$entityInClassFormat}-form-block">
28 <div class="crm-submit-buttons">{include file="CRM/common/formButtons.tpl" location="top"}</div>
29 {if $action eq 8}
30 <div class="messages status no-popup">
31 <div class="icon inform-icon"></div>
32 {$deleteMessage|escape}
33 </div>
34 {else}
35 <table class="form-layout-compressed">
36 {foreach from=$entityFields item=fieldSpec}
37 {assign var=fieldName value=$fieldSpec.name}
38 <tr class="crm-{$entityInClassFormat}-form-block-{$fieldName}">
39 {include file="CRM/Core/Form/Field.tpl"}
40 </tr>
41 {/foreach}
42 </table>
43 {include file="CRM/common/customDataBlock.tpl"}
44 {/if}
45 <div class="crm-submit-buttons">{include file="CRM/common/formButtons.tpl" location="bottom"}</div>
46</div>