Merge pull request #18653 from eileenmcnaughton/token
[civicrm-core.git] / templates / CRM / Admin / Form / Setting / SettingForm.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 <div class="crm-submit-buttons">{include file="CRM/common/formButtons.tpl" location="top"}</div>
11 <table class="form-layout-compressed">
12 {foreach from=$settings_fields key="setting_name" item="setting_detail"}
13 <tr class="crm-mail-form-block-{$setting_name}">
14 <td class="label">{$form.$setting_name.label}</td>
15 <td>
16 {if !empty($setting_detail.wrapper_element)}
17 {$setting_detail.wrapper_element.0}{$form.$setting_name.html}{$setting_detail.wrapper_element.1}
18 {else}
19 {$form.$setting_name.html}
20 {/if}
21 <div class="description">
22 {ts}{$setting_detail.description}{/ts}
23 </div>
24 {if $setting_detail.help_text}
25 {assign var='tplhelp_id' value = $setting_name|cat:'-id'|replace:'_':'-'}{help id="$tplhelp_id"}
26 {/if}
27 </td>
28 </tr>
29 {/foreach}
30 </table>
31 <div class="crm-submit-buttons">{include file="CRM/common/formButtons.tpl" location="bottom"}</div>
32 <div class="spacer"></div>