Commit | Line | Data |
---|---|---|
6a488035 TO |
1 | {* |
2 | +--------------------------------------------------------------------+ | |
39de6fd5 | 3 | | CiviCRM version 4.6 | |
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 | ||
6a488035 | 27 | {foreach from=$groupTree item=cd_edit key=group_id} |
a3aa37bd | 28 | {if $cd_edit.is_multiple eq 1} |
29 | {assign var=tableID value=$cd_edit.table_id} | |
30 | {assign var=divName value=$group_id|cat:"_$tableID"} | |
31 | <div></div> | |
eaf756c0 | 32 | <div |
a3aa37bd | 33 | class="crm-accordion-wrapper crm-custom-accordion {if $cd_edit.collapse_display and !$skipTitle}collapsed{/if}"> |
34 | {else} | |
35 | <div id="{$cd_edit.name}" | |
239f7a83 | 36 | class="crm-accordion-wrapper crm-custom-accordion {if $cd_edit.collapse_display}collapsed{/if}"> |
a3aa37bd | 37 | {/if} |
6a488035 TO |
38 | <div class="crm-accordion-header"> |
39 | {$cd_edit.title} | |
40 | </div> | |
41 | ||
239f7a83 KJ |
42 | <div id="customData{$group_id}" class="crm-accordion-body"> |
43 | {if $cd_edit.is_multiple eq 1} | |
44 | {if $cd_edit.table_id} | |
6a488035 | 45 | <table class="no-border"> |
239f7a83 | 46 | <tr> |
eaf756c0 CW |
47 | <a href="#" class="crm-hover-button crm-custom-value-del" title="{ts 1=$cd_edit.title}Delete %1{/ts}" |
48 | data-post='{ldelim}"valueID": "{$tableID}", "groupID": "{$group_id}", "contactId": "{$contactId}", "key": "{crmKey name='civicrm/ajax/customvalue'}"{rdelim}'> | |
49 | <span class="icon delete-icon"></span> {ts}Delete{/ts} | |
50 | </a> | |
239f7a83 KJ |
51 | <!-- crm-submit-buttons --> |
52 | </tr> | |
53 | </table> | |
54 | {/if} | |
55 | {/if} | |
56 | {include file="CRM/Custom/Form/CustomData.tpl" formEdit=true} | |
57 | </div> | |
58 | <!-- crm-accordion-body--> | |
59 | </div> | |
60 | <!-- crm-accordion-wrapper --> | |
61 | <div id="custom_group_{$group_id}_{$cgCount}"></div> | |
62 | {/foreach} | |
6a488035 | 63 | |
239f7a83 | 64 | {include file="CRM/common/customData.tpl"} |
cbe8b99c | 65 | |
239f7a83 | 66 | {include file="CRM/Form/attachmentjs.tpl"} |