Merge pull request #3859 from civicrm/revert-3799-patch-1
[civicrm-core.git] / templates / CRM / UF / Form / Preview.tpl
index 9d47362840a1f9eec8925d9432857223931116ff..c24e344faaffb8f00d4de9e6727ee312bd66907d 100644 (file)
@@ -1,8 +1,8 @@
 {*
  +--------------------------------------------------------------------+
- | CiviCRM version 4.4                                                |
+ | CiviCRM version 4.5                                                |
  +--------------------------------------------------------------------+
- | Copyright CiviCRM LLC (c) 2004-2013                                |
+ | Copyright CiviCRM LLC (c) 2004-2014                                |
  +--------------------------------------------------------------------+
  | This file is a part of CiviCRM.                                    |
  |                                                                    |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
 *}
-{capture assign=infoTitle}{ts}Preview Mode{/ts}{/capture}
-{assign var="infoType" value="info"}
 {if $previewField}
-  {capture assign=infoMessage}<strong>{ts}Profile Field Preview{/ts}</strong>{/capture}
+  {capture assign=infoTitle}{ts}Profile Field Preview{/ts}{/capture}
 {else}
-  {capture assign=infoMessage}<strong>{ts}Profile Preview{/ts}</strong>{/capture}
+  {capture assign=infoTitle}{ts}Profile Preview{/ts}{/capture}
 {/if}
-{include file="CRM/common/info.tpl"}
+{include file="CRM/common/info.tpl" infoType="no-popup profile-preview-msg" infoMessage=" "}
 <div class="crm-form-block">
 
 {if ! empty( $fields )}
                   {if $field.html_type eq 'Autocomplete-Select'}
                     {if $field.data_type eq 'ContactReference'}
                     {include file="CRM/Custom/Form/ContactReference.tpl" element_name = $n}
-                      {else}
-                    {include file="CRM/Custom/Form/AutoComplete.tpl" element_name = $n}
                     {/if}
                   {/if}
                 {/if}