X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=templates%2FCRM%2FForm%2FbasicFormFields.tpl;h=c769e2cd610e6663316ed1e0e3a256f28b84d2ea;hb=f6377d13a900441a52a30224ebe2093f032ad9b0;hp=d5d292b8d9fb65d18381f851d242034291e7a73a;hpb=f87c35c7308fc6876e1a4fea8ac3ea908d3d9453;p=civicrm-core.git diff --git a/templates/CRM/Form/basicFormFields.tpl b/templates/CRM/Form/basicFormFields.tpl index d5d292b8d9..c769e2cd61 100644 --- a/templates/CRM/Form/basicFormFields.tpl +++ b/templates/CRM/Form/basicFormFields.tpl @@ -2,7 +2,7 @@ +--------------------------------------------------------------------+ | CiviCRM version 5 | +--------------------------------------------------------------------+ - | Copyright CiviCRM LLC (c) 2004-2018 | + | Copyright CiviCRM LLC (c) 2004-2020 | +--------------------------------------------------------------------+ | This file is a part of CiviCRM. | | | @@ -23,31 +23,13 @@ | see the CiviCRM license FAQ at http://civicrm.org/licensing | +--------------------------------------------------------------------+ *} -{* @todo the invoicing_blocks id is used by contribution preferences - get that out of the shared code & back to where it belongs *} {* @todo with a small amount of tinkering most of this can be replaced by re-using the foreach loop in CRM_Core_EntityForm.tpl *} - - {foreach from=$fields item=field key=fieldName} - {assign var=n value=$fieldName} - {if $form.$n} - - {if $field.html_type EQ 'checkbox'|| $field.html_type EQ 'checkboxes'} - - - {else} - - - {/if} - - {/if} +
- {$form.$n.html} - {if $field.description} -
{$field.description} - {/if} -
{$form.$n.label} - {$form.$n.html} - {if $field.description} -
{$field.description} - {/if} -
+ + {foreach from=$fields item=fieldSpec} + {assign var=fieldName value=$fieldSpec.name} + + {include file="CRM/Core/Form/Field.tpl"} + {/foreach}