CRM-16554 - Cannot Use or Delete Smart Groups Created by Contribution Aggregate Search
[civicrm-core.git] / templates / CRM / Contact / Form / Search / Custom / ContributionAggregate.tpl
CommitLineData
6a488035
TO
1{*
2 +--------------------------------------------------------------------+
39de6fd5 3 | CiviCRM version 4.6 |
6a488035 4 +--------------------------------------------------------------------+
e7112fa7 5 | Copyright CiviCRM LLC (c) 2004-2015 |
6a488035
TO
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<div class="crm-block crm-form-block crm-contact-custom-search-form-block">
27<div class="crm-accordion-wrapper crm-custom_search_form-accordion {if $rows}collapsed{/if}">
28 <div class="crm-accordion-header crm-master-accordion-header">
29 {ts}Edit Search Criteria{/ts}
30 </div><!-- /.crm-accordion-header -->
31 <div class="crm-accordion-body">
32 <div class="crm-submit-buttons">{include file="CRM/common/formButtons.tpl" location="top"}</div>
33 <table class="form-layout-compressed">
34 {* Loop through all defined search criteria fields (defined in the buildForm() function). *}
35 {foreach from=$elements item=element}
36 <tr class="crm-contact-custom-search-form-row-{$element}">
37 <td class="label">{$form.$element.label}</td>
38 {if $element eq 'start_date'}
39 <td>{include file="CRM/common/jcalendar.tpl" elementName=start_date}</td>
40 {elseif $element eq 'end_date'}
41 <td>{include file="CRM/common/jcalendar.tpl" elementName=end_date}</td>
42 {else}
43 <td>{$form.$element.html}</td>
44 {/if}
45 </tr>
46 {/foreach}
47 <tr class="crm-contact-custom-search-contributionDetails-form-block-financial_type">
48 <td class="label">{ts}Financial Type{/ts}</td>
78065c52 49 <td>{$form.financial_type_id.html|crmAddClass:twenty}</td>
6a488035
TO
50 </tr>
51 </table>
52 <div class="crm-submit-buttons">{include file="CRM/common/formButtons.tpl" location="bottom"}</div>
53 </div><!-- /.crm-accordion-body -->
54</div><!-- /.crm-accordion-wrapper -->
55</div><!-- /.crm-form-block -->
56
57{if $rowsEmpty || $rows}
58<div class="crm-content-block">
59{if $rowsEmpty}
60 {include file="CRM/Contact/Form/Search/Custom/EmptyResults.tpl"}
61{/if}
62
63{if $summary}
64 {$summary.summary}: {$summary.total}
65{/if}
66
67{if $rows}
b2603e29 68 <div class="crm-results-block">
6a488035
TO
69 {* Search request has returned 1 or more matching rows. Display results and collapse the search criteria fieldset. *}
70 {* This section handles form elements for action task select and submit *}
71 <div class="crm-search-tasks">
72 {include file="CRM/Contact/Form/Search/ResultTasks.tpl"}
b2603e29 73 </div>
6a488035 74 {* This section displays the rows along and includes the paging controls *}
b2603e29 75 <div class="crm-search-results">
6a488035
TO
76
77 {include file="CRM/common/pager.tpl" location="top"}
78
79 {* Include alpha pager if defined. *}
80 {if $atoZ}
81 {include file="CRM/common/pagerAToZ.tpl"}
82 {/if}
83
84 {strip}
16850d34 85 <table class="selector row-highlight" summary="{ts}Search results listings.{/ts}">
6a488035
TO
86 <thead class="sticky">
87 <tr>
88 <th scope="col" title="Select All Rows">{$form.toggleSelect.html}</th>
89 {foreach from=$columnHeaders item=header}
90 <th scope="col">
91 {if $header.sort}
92 {assign var='key' value=$header.sort}
93 {$sort->_response.$key.link}
94 {else}
95 {$header.name}
96 {/if}
97 </th>
98 {/foreach}
99 <th>&nbsp;</th>
100 </tr>
101 </thead>
102
103 {counter start=0 skip=1 print=false}
104 {foreach from=$rows item=row}
105 <tr id='rowid{$row.contact_id}' class="{cycle values="odd-row,even-row"}">
106 {assign var=cbName value=$row.checkbox}
107 <td>{$form.$cbName.html}</td>
108 {foreach from=$columnHeaders item=header}
109 {assign var=fName value=$header.sort}
110 {if $fName eq 'sort_name'}
26a9b6ab 111 <td><a href="{crmURL p='civicrm/contact/view' q="reset=1&cid=`$row.contact_id`&key=`$qfKey`"}">{$row.sort_name}</a></td>
6a488035
TO
112 {else}
113 <td>{$row.$fName}</td>
114 {/if}
115 {/foreach}
116 <td>{$row.action}</td>
117 </tr>
118 {/foreach}
119 </table>
120 {/strip}
121
6a488035
TO
122
123 {include file="CRM/common/pager.tpl" location="bottom"}
124
125 </p>
126 {* END Actions/Results section *}
127 </div>
128 </div>
129{/if}
130
131
132
133</div>
134{/if}