Commit | Line | Data |
---|---|---|
6a488035 TO |
1 | {* |
2 | +--------------------------------------------------------------------+ | |
fee14197 | 3 | | CiviCRM version 5 | |
6a488035 | 4 | +--------------------------------------------------------------------+ |
f299f7db | 5 | | Copyright CiviCRM LLC (c) 2004-2020 | |
6a488035 TO |
6 | +--------------------------------------------------------------------+ |
7 | | This file is a part of CiviCRM. | | |
8 | | | | |
9 | | CiviCRM is free software; you can copy, modify, and distribute it | | |
10 | | under the terms of the GNU Affero General Public License | | |
11 | | Version 3, 19 November 2007 and the CiviCRM Licensing Exception. | | |
12 | | | | |
13 | | CiviCRM is distributed in the hope that it will be useful, but | | |
14 | | WITHOUT ANY WARRANTY; without even the implied warranty of | | |
15 | | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. | | |
16 | | See the GNU Affero General Public License for more details. | | |
17 | | | | |
18 | | You should have received a copy of the GNU Affero General Public | | |
19 | | License and the CiviCRM Licensing Exception along | | |
20 | | with this program; if not, contact CiviCRM LLC | | |
21 | | at info[AT]civicrm[DOT]org. If you have questions about the | | |
22 | | GNU Affero General Public License or the licensing of CiviCRM, | | |
23 | | see the CiviCRM license FAQ at http://civicrm.org/licensing | | |
24 | +--------------------------------------------------------------------+ | |
25 | *} | |
6a488035 | 26 | {if $previewField} |
fb0aac1e | 27 | {capture assign=infoTitle}{ts}Profile Field Preview{/ts}{/capture} |
6a488035 | 28 | {else} |
fb0aac1e | 29 | {capture assign=infoTitle}{ts}Profile Preview{/ts}{/capture} |
6a488035 | 30 | {/if} |
fb0aac1e | 31 | {include file="CRM/common/info.tpl" infoType="no-popup profile-preview-msg" infoMessage=" "} |
6a488035 TO |
32 | <div class="crm-form-block"> |
33 | ||
34 | {if ! empty( $fields )} | |
35 | {if $viewOnly} | |
36 | {* wrap in crm-container div so crm styles are used *} | |
37 | <div id="crm-container-inner" lang="{$config->lcMessages|truncate:2:"":true}" xml:lang="{$config->lcMessages|truncate:2:"":true}"> | |
38 | {include file="CRM/common/CMSUser.tpl"} | |
39 | {strip} | |
40 | {if $help_pre && $action neq 4}<div class="messages help">{$help_pre}</div>{/if} | |
41 | {assign var=zeroField value="Initial Non Existent Fieldset"} | |
42 | {assign var=fieldset value=$zeroField} | |
0abd4676 | 43 | {include file="CRM/UF/Form/Fields.tpl"} |
6a488035 TO |
44 | {if $addCAPTCHA } |
45 | {include file='CRM/common/ReCAPTCHA.tpl'} | |
46 | {/if} | |
6a488035 TO |
47 | {if $field.groupHelpPost} |
48 | <div class="messages help">{$field.groupHelpPost}</div> | |
49 | {/if} | |
50 | {/strip} | |
51 | </div> {* end crm-container div *} | |
52 | {else} | |
53 | {capture assign=infoMessage}{ts}This CiviCRM profile field is view only.{/ts}{/capture} | |
54 | {include file="CRM/common/info.tpl"} | |
55 | {/if} | |
56 | {/if} {* fields array is not empty *} | |
57 | ||
58 | <div class="crm-submit-buttons"> | |
59 | {include file="CRM/common/formButtons.tpl"} | |
60 | </div> | |
61 | </div> |