2 +--------------------------------------------------------------------+
3 | Copyright CiviCRM LLC. All rights reserved. |
5 | This work is published under the GNU AGPLv3 license with some |
6 | permitted exceptions and without any warranty. For full license |
7 | and copyright information, see https://civicrm.org/licensing |
8 +--------------------------------------------------------------------+
10 {* Custom Data view mode*}
11 {foreach from=$viewCustomData item=customValues key=customGroupId}
12 {foreach from=$customValues item=cd_edit key=cvID}
13 {assign var='index' value=$groupId|cat:"_$cvID"}
14 <div id="{$cd_edit.name}" class="crm-accordion-wrapper {if $cd_edit.collapse_display neq 0}collapsed{/if}">
15 <div class="crm-accordion-header">
18 <div class="crm-accordion-body">
19 {foreach from=$cd_edit.fields item=element key=field_id}
20 <table class="crm-info-panel">
22 {if $element.options_per_line != 0}
23 <td class="label">{$element.field_title}</td>
24 <td class="html-adjust">
25 {* sort by fails for option per line. Added a variable to iterate through the element array*}
26 {foreach from=$element.field_value item=val}
31 <td class="label">{$element.field_title}</td>
32 <td class="html-adjust">{$element.field_value}</td>
38 {crmButton p="civicrm/case/cd/edit" q="cgcount=1&action=update&reset=1&type=Case&entityID=$caseID&groupID=$customGroupId&cid=$contactID&subType=$caseTypeID" icon="pencil"}{ts}Edit{/ts}{/crmButton}
41 <div class="clear"></div>
47 <div id="case_custom_edit"></div>