{* +--------------------------------------------------------------------+ | CiviCRM version 4.3 | +--------------------------------------------------------------------+ | Copyright CiviCRM LLC (c) 2004-2013 | +--------------------------------------------------------------------+ | This file is a part of CiviCRM. | | | | CiviCRM is free software; you can copy, modify, and distribute it | | under the terms of the GNU Affero General Public License | | Version 3, 19 November 2007 and the CiviCRM Licensing Exception. | | | | CiviCRM is distributed in the hope that it will be useful, but | | WITHOUT ANY WARRANTY; without even the implied warranty of | | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. | | See the GNU Affero General Public License for more details. | | | | You should have received a copy of the GNU Affero General Public | | License and the CiviCRM Licensing Exception along | | with this program; if not, contact CiviCRM LLC | | at info[AT]civicrm[DOT]org. If you have questions about the | | GNU Affero General Public License or the licensing 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}{ts}Profile Field Preview{/ts}{/capture} {else} {capture assign=infoMessage}{ts}Profile Preview{/ts}{/capture} {/if} {include file="CRM/common/info.tpl"}
{$field.help_pre} | ||
{$form.$n.label} |
{assign var="count" value="1"}
{strip}
|
|
{$form.$n.label} | {if $n eq 'group' && $form.group || ( $n eq 'tag' && $form.tag )} {include file="CRM/Contact/Form/Edit/TagsAndGroups.tpl" type=$n} {elseif $n eq 'email_greeting' or $n eq 'postal_greeting' or $n eq 'addressee'} {include file="CRM/Profile/Form/GreetingType.tpl"} {elseif ( $field.data_type eq 'Date' AND $element.skip_calendar NEQ true ) or ( $n|substr:-5:5 eq '_date' ) or ( $field.name eq 'activity_date_time' ) } {include file="CRM/common/jcalendar.tpl" elementName=$form.$n.name} {elseif $n|substr:0:5 eq 'phone'} {assign var="phone_ext_field" value=$n|replace:'phone':'phone_ext'} {$form.$n.html} {if $form.$phone_ext_field.html} {$form.$phone_ext_field.html} {/if} {else} {if $n|substr:0:4 eq 'url-'} {assign var="websiteType" value=$n|cat:"-website_type_id"} {$form.$websiteType.html} {elseif $n|substr:0:3 eq 'im-'} {assign var="provider" value=$n|cat:"-provider_id"} {$form.$provider.html} {/if} {$form.$n.html} {if $field.is_view eq 0} {if ( $field.html_type eq 'Radio' or $n eq 'gender') and $form.formName eq 'Preview'} ({ts}clear{/ts}) {elseif $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} {/if} | |
{$field.help_post} |