2 +--------------------------------------------------------------------+
3 | CiviCRM version 4.5 |
4 +--------------------------------------------------------------------+
5 | Copyright CiviCRM LLC (c) 2004-2014 |
6 +--------------------------------------------------------------------+
7 | This file is a part of CiviCRM. |
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. |
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. |
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 +--------------------------------------------------------------------+
28 {if $cd_edit.help_pre}
29 <div class="messages help">{$cd_edit.help_pre}</div>
31 <table class="form-layout-compressed">
32 {foreach from=$cd_edit.fields item=element key=field_id}
33 {include file="CRM/Custom/Form/CustomField.tpl"}
36 <div class="spacer"></div>
37 {if $cd_edit.help_post}
38 <div class="messages help">{$cd_edit.help_post}</div>
40 {if $cd_edit.is_multiple and ( ( $cd_edit.max_multiple eq '' ) or ( $cd_edit.max_multiple > 0 and $cd_edit.max_multiple > $cgCount ) ) }
41 <div id="add-more-link-{$cgCount}" class="add-more-link-{$group_id}-{$cgCount}"><a href="#" onclick="CRM.buildCustomData('{$cd_edit.extends}',{if $cd_edit.subtype}'{$cd_edit.subtype}'{else}'{$cd_edit.extends_entity_column_id}'{/if}, '', {$cgCount}, {$group_id}, true ); return false;">{ts 1=$cd_edit.title}Add another %1 record{/ts}</a></div>
44 {foreach from=$groupTree item=cd_edit key=group_id name=custom_sets}
45 {if $cd_edit.is_multiple and $multiRecordDisplay eq 'single'}
46 <div class="custom-group custom-group-{$cd_edit.name}">
47 {if $cd_edit.help_pre}
48 <div class="messages help">{$cd_edit.help_pre}</div>
51 {foreach from=$cd_edit.fields item=element key=field_id}
52 {include file="CRM/Custom/Form/CustomField.tpl"}
55 <div class="spacer"></div>
56 {if $cd_edit.help_post}
57 <div class="messages help">{$cd_edit.help_post}</div>
61 <div class="custom-group custom-group-{$cd_edit.name} crm-accordion-wrapper {if $cd_edit.collapse_display and !$skipTitle}collapsed{/if}">
63 <div class="crm-accordion-header">
65 </div><!-- /.crm-accordion-header -->
67 <div class="crm-accordion-body">
68 {if $cd_edit.help_pre}
69 <div class="messages help">{$cd_edit.help_pre}</div>
71 <table class="form-layout-compressed">
72 {foreach from=$cd_edit.fields item=element key=field_id}
73 {include file="CRM/Custom/Form/CustomField.tpl"}
76 <div class="spacer"></div>
77 {if $cd_edit.help_post}
78 <div class="messages help">{$cd_edit.help_post}</div>
82 {if $cd_edit.is_multiple and ( ( $cd_edit.max_multiple eq '' ) or ( $cd_edit.max_multiple > 0 and $cd_edit.max_multiple > $cgCount ) ) }
84 {* We don't yet support adding new records in inline-edit forms *}
85 <div class="messages help">
86 <em>{ts 1=$cd_edit.title}Click "Edit Contact" to add more %1 records{/ts}</em>
89 <div id="add-more-link-{$cgCount}"><a href="#" onclick="CRM.buildCustomData('{$cd_edit.extends}',{if $cd_edit.subtype}'{$cd_edit.subtype}'{else}'{$cd_edit.extends_entity_column_id}'{/if}, '', {$cgCount}, {$group_id}, true ); return false;">{ts 1=$cd_edit.title}Add another %1 record{/ts}</a></div>
93 <div id="custom_group_{$group_id}_{$cgCount}"></div>
98 {include file="CRM/Form/attachmentjs.tpl"}