Commit | Line | Data |
---|---|---|
6a488035 TO |
1 | {* |
2 | +--------------------------------------------------------------------+ | |
2c4c49ca | 3 | | CiviCRM version 4.7 | |
6a488035 | 4 | +--------------------------------------------------------------------+ |
e7112fa7 | 5 | | Copyright CiviCRM LLC (c) 2004-2015 | |
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 | *} | |
26 | {* Custom Data view mode*} | |
27 | {assign var="customGroupCount" value = 1} | |
28 | {foreach from=$viewCustomData item=customValues key=customGroupId} | |
bd2e25c4 | 29 | {assign var="cgcount" value=1} |
6a488035 TO |
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> | |
fa6bfe1b | 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}"> | |
bd2e25c4 | 41 | {include file="CRM/Contact/Page/View/CustomDataFieldView.tpl" customGroupId=$customGroupId customRecId=$cvID cgcount=$cgcount} |
6a488035 TO |
42 | </div> |
43 | </div> | |
bd2e25c4 | 44 | {assign var="cgcount" value=$cgcount+1} |
6a488035 TO |
45 | {/foreach} |
46 | {/if} | |
47 | {assign var="customGroupCount" value = $customGroupCount+1} | |
48 | {/foreach} | |
49 |