Merge pull request #17246 from agh1/review-contrib
[civicrm-core.git] / templates / CRM / Core / Form / Field.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 {if $fieldSpec.template}
11 {include file=$fieldSpec.template}
12 {else}
13 <td class="label">{$form.$fieldName.label}
14 {if $fieldSpec.help}{assign var=help value=$fieldSpec.help}{capture assign=helpFile}{if $fieldSpec.help}
15 {$fieldSpec.help}
16 {else}''{/if}
17 {/capture}{help id=$help.id file=$help.file}{/if}
18 {if $action == 2 && $fieldSpec.is_add_translate_dialog}{include file='CRM/Core/I18n/Dialog.tpl' table=$entityTable field=$fieldName id=$entityID}{/if}
19 </td>
20 <td>{$fieldSpec.pre_html_text}{if $form.$fieldName.html}{if $fieldSpec.formatter === 'crmMoney'}{$form.$fieldName.html|crmMoney:$fieldSpec.formatterParam}{else}{$form.$fieldName.html}{/if}{else}{$fieldSpec.place_holder}{/if}{$fieldSpec.post_html_text}<br />
21 {if $fieldSpec.description}<span class="description">{$fieldSpec.description}</span>{/if}
22 {if $fieldSpec.documentation_link}{docURL page=$fieldSpec.documentation_link.page resource=$fieldSpec.documentation_link.resource}{/if}
23 </td>
24 {/if}