Merge pull request #22171 from civicrm/5.44
[civicrm-core.git] / templates / CRM / Form / basicFormFields.tpl
CommitLineData
9cd2dac2 1{*
2 +--------------------------------------------------------------------+
1188c7a8 3 | Copyright CiviCRM LLC. All rights reserved. |
9cd2dac2 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 |
9cd2dac2 8 +--------------------------------------------------------------------+
9*}
9cd2dac2 10{* @todo with a small amount of tinkering most of this can be replaced by re-using the foreach loop in CRM_Core_EntityForm.tpl *}
2f6c641a 11<table class="form-layout">
969afb18 12
13 {foreach from=$fields item=fieldSpec}
14 {assign var=fieldName value=$fieldSpec.name}
7808a9a8 15 <tr class="crm-{if !empty($entityInClassFormat)}{$entityInClassFormat}{/if}-form-block-{$fieldName}">
969afb18 16 {include file="CRM/Core/Form/Field.tpl"}
17 </tr>
9cd2dac2 18 {/foreach}
19</table>