Merge pull request #19708 from J0WI/patch-1
[civicrm-core.git] / templates / CRM / UF / Form / Preview.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 $previewField}
11 {capture assign=infoTitle}{ts}Profile Field Preview{/ts}{/capture}
12 {else}
13 {capture assign=infoTitle}{ts}Profile Preview{/ts}{/capture}
14 {/if}
15 {include file="CRM/common/info.tpl" infoType="no-popup profile-preview-msg" infoMessage=" "}
16 <div class="crm-form-block">
17
18 {if ! empty( $fields )}
19 {if $viewOnly}
20 {* wrap in crm-container div so crm styles are used *}
21 <div id="crm-container-inner" lang="{$config->lcMessages|truncate:2:"":true}" xml:lang="{$config->lcMessages|truncate:2:"":true}">
22 {include file="CRM/common/CMSUser.tpl"}
23 {strip}
24 {if $help_pre && $action neq 4}<div class="messages help">{$help_pre}</div>{/if}
25 {assign var=zeroField value="Initial Non Existent Fieldset"}
26 {assign var=fieldset value=$zeroField}
27 {include file="CRM/UF/Form/Fields.tpl"}
28 {if $addCAPTCHA }
29 {include file='CRM/common/ReCAPTCHA.tpl'}
30 {/if}
31 {if $field.groupHelpPost}
32 <div class="messages help">{$field.groupHelpPost}</div>
33 {/if}
34 {/strip}
35 </div> {* end crm-container div *}
36 {else}
37 {capture assign=infoMessage}{ts}This CiviCRM profile field is view only.{/ts}{/capture}
38 {include file="CRM/common/info.tpl"}
39 {/if}
40 {/if} {* fields array is not empty *}
41
42 <div class="crm-submit-buttons">
43 {include file="CRM/common/formButtons.tpl"}
44 </div>
45 </div>