2 +--------------------------------------------------------------------+
4 +--------------------------------------------------------------------+
5 | Copyright CiviCRM LLC (c) 2004-2019 |
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 +--------------------------------------------------------------------+
26 {* Custom Data view mode*}
27 {foreach from=$viewCustomData item=customValues key=customGroupId}
28 {foreach from=$customValues item=cd_edit key=cvID}
29 {assign var='index' value=$groupId|cat:"_$cvID"}
30 <div id="{$cd_edit.name}" class="crm-accordion-wrapper {if $cd_edit.collapse_display neq 0}collapsed{/if}">
31 <div class="crm-accordion-header">
34 <div class="crm-accordion-body">
35 {foreach from=$cd_edit.fields item=element key=field_id}
36 <table class="crm-info-panel">
38 {if $element.options_per_line != 0}
39 <td class="label">{$element.field_title}</td>
40 <td class="html-adjust">
41 {* sort by fails for option per line. Added a variable to iterate through the element array*}
42 {foreach from=$element.field_value item=val}
47 <td class="label">{$element.field_title}</td>
48 <td class="html-adjust">{$element.field_value}</td>
54 {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}
57 <div class="clear"></div>
63 <div id="case_custom_edit"></div>