Commit | Line | Data |
---|---|---|
50951061 EM |
1 | {* |
2 | +--------------------------------------------------------------------+ | |
3 | | CiviCRM version 4.6 | | |
4 | +--------------------------------------------------------------------+ | |
5 | | Copyright CiviCRM LLC (c) 2004-2014 | | |
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 | <div id="report-tab-col-groups" class="civireport-criteria"> | |
28 | {foreach from=$colGroups item=grpFields key=dnc} | |
29 | {assign var="count" value="0"} | |
30 | {* Wrap custom field sets in collapsed accordion pane. *} | |
31 | {if $grpFields.group_title} | |
32 | <div class="crm-accordion-wrapper crm-accordion collapsed"> | |
33 | <div class="crm-accordion-header"> | |
34 | {$grpFields.group_title} | |
35 | </div><!-- /.crm-accordion-header --> | |
36 | <div class="crm-accordion-body"> | |
37 | {/if} | |
38 | <table class="criteria-group"> | |
39 | <tr class="crm-report crm-report-criteria-field crm-report-criteria-field-{$dnc}"> | |
40 | {foreach from=$grpFields.fields item=title key=field} | |
41 | {assign var="count" value=`$count+1`} | |
42 | <td width="25%">{$form.fields.$field.html}</td> | |
43 | {if $count is div by 4} | |
44 | </tr><tr class="crm-report crm-report-criteria-field crm-report-criteria-field_{$dnc}"> | |
45 | {/if} | |
46 | {/foreach} | |
47 | {if $count is not div by 4} | |
48 | <td colspan="4 - ($count % 4)"></td> | |
49 | {/if} | |
50 | </tr> | |
51 | </table> | |
52 | {if $grpFields.group_title} | |
53 | </div><!-- /.crm-accordion-body --> | |
54 | </div><!-- /.crm-accordion-wrapper --> | |
55 | {/if} | |
56 | {/foreach} | |
57 | </div> |