commiting uncommited changes on live site
[weblabels.fsf.org.git] / crm.fsf.org / 20131203 / files / sites / all / modules-new / civicrm / templates / CRM / Contact / Page / View / CustomDataView.tpl
1 {*
2 +--------------------------------------------------------------------+
3 | CiviCRM version 4.6 |
4 +--------------------------------------------------------------------+
5 | Copyright CiviCRM LLC (c) 2004-2015 |
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 *}
26 {* Custom Data view mode*}
27 {assign var="customGroupCount" value = 1}
28 {foreach from=$viewCustomData item=customValues key=customGroupId}
29 {assign var="cgcount" value=1}
30 {assign var="count" value=$customGroupCount%2}
31 {if ($count eq $side) or $skipTitle }
32 {foreach from=$customValues item=cd_edit key=cvID}
33 <div class="customFieldGroup crm-collapsible{if $cd_edit.collapse_display} collapsed{/if} ui-corner-all {$cd_edit.name} crm-custom-set-block-{$customGroupId}">
34 <div class="collapsible-title">
35 {$cd_edit.title}
36 </div>
37 {if $cvID eq 0}
38 {assign var='cvID' value='-1'}
39 {/if}
40 <div class="crm-summary-block" id="custom-set-block-{$customGroupId}-{$cvID}">
41 {include file="CRM/Contact/Page/View/CustomDataFieldView.tpl" customGroupId=$customGroupId customRecId=$cvID cgcount=$cgcount}
42 </div>
43 </div>
44 {assign var="cgcount" value=$cgcount+1}
45 {/foreach}
46 {/if}
47 {assign var="customGroupCount" value = $customGroupCount+1}
48 {/foreach}
49