commiting uncommited changes on live site
[weblabels.fsf.org.git] / crm.fsf.org / 20131203 / files / sites / all / modules-old / civicrm / templates / CRM / Contact / Form / Edit / CustomData.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
27 {foreach from=$groupTree item=cd_edit key=group_id}
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>
32 <div
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}"
36 class="crm-accordion-wrapper crm-custom-accordion {if $cd_edit.collapse_display}collapsed{/if}">
37 {/if}
38 <div class="crm-accordion-header">
39 {$cd_edit.title}
40 </div>
41
42 <div id="customData{$group_id}" class="crm-accordion-body">
43 {if $cd_edit.is_multiple eq 1}
44 {if $cd_edit.table_id}
45 <table class="no-border">
46 <tr>
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>
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}
63
64 {include file="CRM/common/customData.tpl"}
65
66 {include file="CRM/Form/attachmentjs.tpl"}