{* +--------------------------------------------------------------------+ | CiviCRM version 4.7 | +--------------------------------------------------------------------+ | Copyright CiviCRM LLC (c) 2004-2017 | +--------------------------------------------------------------------+ | 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 | +--------------------------------------------------------------------+ *} {if $action eq 1 or $action eq 2 or $action eq 4 or $action eq 8 or $action eq 64 or $action eq 16384} {* Add or edit Profile Group form *} {include file="CRM/UF/Form/Group.tpl"} {elseif $action eq 1024} {* Preview Profile Group form *} {include file="CRM/UF/Form/Preview.tpl"} {elseif $action eq 8192} {* Display HTML Form Snippet Code *}
{ts}The HTML code below will display a form consisting of the active fields in this Profile. You can copy this HTML code and paste it into any block or page on your website where you want to collect contact information.{/ts} {help id='standalone'}

Select HTML Code
{else}
{ts}CiviCRM Profile(s) allow you to aggregate groups of fields and include them in your site as input forms, contact display pages, and search and listings features. They provide a powerful set of tools for you to collect information from constituents and selectively share contact information.{/ts} {help id='profile_overview'}
{if NOT ($action eq 1 or $action eq 2)}
{ts}Add Profile{/ts}
{/if} {if $rows}
{* handle enable/disable actions*} {include file="CRM/common/enableDisableApi.tpl"} {include file="CRM/common/jsortable.tpl"}
{foreach from=$rows item=row} {if !$row.is_reserved } {/if} {/foreach}
{ts}Profile Title{/ts} {ts}Created By{/ts} {ts}Description{/ts} {ts}Type{/ts} {ts}ID{/ts} {ts}Used For{/ts}
{$row.title} {if $row.created_id && $row.created_by} {ts}{$row.created_by}{/ts} {/if} {$row.description} {$row.group_type} {$row.id} {$row.module} {$row.action|replace:'xx':$row.id}
{if NOT ($action eq 1 or $action eq 2)} {/if}
{* user profile*}
{foreach from=$rows item=row} {if $row.is_reserved} {/if} {/foreach}
{ts}Profile Title{/ts} {ts}Created By{/ts} {ts}Description{/ts} {ts}Type{/ts} {ts}ID{/ts} {ts}Used For{/ts}
{$row.title} {if $row.created_id && $row.created_by} {ts}{$row.created_by}{/ts} {/if} {$row.description} {$row.group_type} {$row.id} {$row.module} {$row.action|replace:'xx':$row.id}
{if NOT ($action eq 1 or $action eq 2)} {/if}
{* reserved profile*}
{* maincontainer*} {else} {if $action ne 1} {* When we are adding an item, we should not display this message *}
  {capture assign=crmURL}{crmURL p='civicrm/admin/uf/group/add' q='action=add&reset=1'}{/capture}{ts 1=$crmURL}No CiviCRM Profiles have been created yet. You can add one now.{/ts}
{/if} {/if} {/if}