Merge pull request #16258 from samuelsov/i18ncountriesorder
[civicrm-core.git] / templates / CRM / Core / Form / Field.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{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>
48c242dc 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 />
d84ae5f6 21 {if $fieldSpec.description}<span class="description">{$fieldSpec.description}</span>{/if}
969afb18 22 {if $fieldSpec.documentation_link}{docURL page=$fieldSpec.documentation_link.page resource=$fieldSpec.documentation_link.resource}{/if}
d84ae5f6 23 </td>
24{/if}