fix year in headers
[civicrm-core.git] / templates / CRM / Case / Page / CustomDataView.tpl
1 {*
2 +--------------------------------------------------------------------+
3 | CiviCRM version 4.7 |
4 +--------------------------------------------------------------------+
5 | Copyright CiviCRM LLC (c) 2004-2016 |
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 {* 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">
32 {$cd_edit.title}
33 </div>
34 <div class="crm-accordion-body">
35 {foreach from=$cd_edit.fields item=element key=field_id}
36 <table class="crm-info-panel">
37 <tr>
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}
43 {$val}<br/>
44 {/foreach}
45 </td>
46 {else}
47 <td class="label">{$element.field_title}</td>
48 <td class="html-adjust">{$element.field_value}</td>
49 {/if}
50 </tr>
51 </table>
52 {/foreach}
53 <div>
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}
55 </div>
56 <br/>
57 <div class="clear"></div>
58 </div>
59 </div>
60
61 {/foreach}
62 {/foreach}
63 <div id="case_custom_edit"></div>