Skip to content
Snippets Groups Projects
Unverified Commit 3a8f45dd authored by colemanw's avatar colemanw Committed by GitHub
Browse files

Merge pull request #19697 from eileenmcnaughton/setting

Enable & do single field metadata conversion for defaultContactCountry
parents b3df94f6 8ad2d066
Branches
Tags
No related merge requests found
......@@ -69,7 +69,7 @@
<td class="label">{$form.moneyformat.label} {help id='moneyformat' title=$form.moneyformat.label}</td>
<td>{$form.moneyformat.html}</td>
</tr>
<tr class="crm-localization-form-block-customTranslateFunction">
<tr class="crm-localization-form-block-customTranslateFunction">
<td class="label">{$form.customTranslateFunction.label} {help id='customTranslateFunction' title=$form.customTranslateFunction.label}</td>
<td>{$form.customTranslateFunction.html}</td>
</tr>
......@@ -84,10 +84,7 @@
</table>
<h3>{ts}Contact Address Fields - Selection Values{/ts}</h3>
<table class="form-layout-compressed">
<tr class="crm-localization-form-block-defaultContactCountry">
<td class="label">{$form.defaultContactCountry.label} {help id='defaultContactCountry' title=$form.defaultContactCountry.label}</td>
<td>{$form.defaultContactCountry.html}</td>
</tr>
{include file='CRM/Admin/Form/Setting/SettingField.tpl' setting_name='defaultContactCountry' fieldSpec=$settings_fields.defaultContactCountry}
<tr class="crm-localization-form-block-pinnedContactCountries">
<td class="label">{$form.pinnedContactCountries.label} {help id='pinnedContactCountries' title=$form.pinnedContactCountries.label}</td>
<td>{$form.pinnedContactCountries.html}</td>
......
{* Display setting field from metadata - todo consolidate with CRM_Core_Form_Field.tpl *}
<tr class="crm-setting-form-block-{$setting_name}">
<td class="label">{$form.$setting_name.label}</td>
<td>
{if !empty($fieldSpec.wrapper_element)}
{$fieldSpec.wrapper_element.0}{$form.$setting_name.html}{$fieldSpec.wrapper_element.1}
{else}
{$form.$setting_name.html}
{/if}
<div class="description">
{$fieldSpec.description}
</div>
{if $fieldSpec.help_text}
{* @todo the appended -id here appears to be inconsistent in the hlp files *}
{assign var='tplhelp_id' value = $setting_name|cat:'-id'|replace:'_':'-'}{help id="$tplhelp_id"}
{/if}
</td>
</tr>
......@@ -9,23 +9,8 @@
*}
<div class="crm-submit-buttons">{include file="CRM/common/formButtons.tpl" location="top"}</div>
<table class="form-layout-compressed">
{foreach from=$settings_fields key="setting_name" item="setting_detail"}
<tr class="crm-mail-form-block-{$setting_name}">
<td class="label">{$form.$setting_name.label}</td>
<td>
{if !empty($setting_detail.wrapper_element)}
{$setting_detail.wrapper_element.0}{$form.$setting_name.html}{$setting_detail.wrapper_element.1}
{else}
{$form.$setting_name.html}
{/if}
<div class="description">
{$setting_detail.description}
</div>
{if $setting_detail.help_text}
{assign var='tplhelp_id' value = $setting_name|cat:'-id'|replace:'_':'-'}{help id="$tplhelp_id"}
{/if}
</td>
</tr>
{foreach from=$settings_fields key="setting_name" item="fieldSpec"}
{include file="CRM/Admin/Form/Setting/SettingField.tpl"}
{/foreach}
</table>
<div class="crm-submit-buttons">{include file="CRM/common/formButtons.tpl" location="bottom"}</div>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment