2 +--------------------------------------------------------------------+
3 | Copyright CiviCRM LLC. All rights reserved. |
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 +--------------------------------------------------------------------+
15 <div>{$form.hidden}</div>
18 {if ($snippet !== 'json') and !$suppressForm and count($form.errors) gt 0}
19 <div class="messages crm-error">
20 <i class="crm-i fa-exclamation-triangle crm-i-red"></i>
21 {ts}Please correct the following errors in the form fields below:{/ts}
23 {foreach from=$form.errors key=errorName item=error}
25 <li>{$error.label} {$error.message}</li>
34 {* Add all the form elements sent in by the hook *}
35 {if $beginHookFormElements}
36 <table class="form-layout-compressed">
37 {foreach from=$beginHookFormElements key=dontCare item=hookFormElement}
38 <tr><td class="label nowrap">{$form.$hookFormElement.label}</td><td>{$form.$hookFormElement.html}</td></tr>