CRM-16109 - suppress fee section for waitlist and approval-required registration...
[civicrm-core.git] / templates / CRM / Event / Form / Selector.tpl
CommitLineData
6a488035
TO
1{*
2 +--------------------------------------------------------------------+
39de6fd5 3 | CiviCRM version 4.6 |
6a488035 4 +--------------------------------------------------------------------+
819d0d41 5 | Copyright CiviCRM LLC (c) 2004-2014 |
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{if $context EQ 'Search'}
27 {include file="CRM/common/pager.tpl" location="top"}
28{/if}
29
30{strip}
16850d34 31<table class="selector row-highlight">
6a488035
TO
32<thead class="sticky">
33 <tr>
34 {if ! $single and $context eq 'Search' }
35 <th scope="col" title="Select Rows">{$form.toggleSelect.html}</th>
36 {/if}
37 {foreach from=$columnHeaders item=header}
38 <th scope="col">
39 {if $header.sort}
40 {assign var='key' value=$header.sort}
41 {$sort->_response.$key.link}
42 {else}
43 {$header.name}
44 {/if}
45 </th>
46 {/foreach}
47 </tr>
48 </thead>
49
50 {counter start=0 skip=1 print=false}
51 {foreach from=$rows item=row}
52 <tr id='rowid{$row.participant_id}' class="{cycle values="odd-row,even-row"} crm-event crm-event_{$row.event_id}">
53 {if ! $single }
54 {if $context eq 'Search' }
55 {assign var=cbName value=$row.checkbox}
56 <td>{$form.$cbName.html}</td>
57 {/if}
58 <td class="crm-participant-contact_type">{$row.contact_type}</td>
59 <td class="crm-participant-sort_name"><a href="{crmURL p='civicrm/contact/view' q="reset=1&cid=`$row.contact_id`"}" title="{ts}View contact record{/ts}">{$row.sort_name}</a></td>
60 {/if}
61
62 <td class="crm-participant-event_title"><a href="{crmURL p='civicrm/event/info' q="id=`$row.event_id`&reset=1"}" title="{ts}View event info page{/ts}">{$row.event_title}</a>
63 {if $contactId}<br /><a href="{crmURL p='civicrm/event/search' q="reset=1&force=1&event=`$row.event_id`"}" title="{ts}List participants for this event (all statuses){/ts}">({ts}participants{/ts})</a>{/if}
64 </td>
65 {assign var="participant_id" value=$row.participant_id}
66 {if $lineItems.$participant_id}
67 <td>
68 {foreach from=$lineItems.$participant_id item=line name=lineItemsIter}
69 {if $line.html_type eq 'Text'}{$line.label}{else}{$line.field_title} - {$line.label}{/if}: {$line.qty}
70 {if ! $smarty.foreach.lineItemsIter.last}<br />{/if}
71 {/foreach}
72 </td>
73 {else}
74 <td class="crm-participant-participant_fee_level">{if !$row.paid && !$row.participant_fee_level} {ts}(no fee){/ts}{else} {$row.participant_fee_level}{/if}</td>
75 {/if}
76 <td class="right nowrap crm-paticipant-participant_fee_amount">{$row.participant_fee_amount|crmMoney:$row.participant_fee_currency}</td>
77 <td class="crm-participant-participant_register_date">{$row.participant_register_date|truncate:10:''|crmDate}</td>
78 <td class="crm-participant-event_start_date">{$row.event_start_date|truncate:10:''|crmDate}
79 {if $row.event_end_date && $row.event_end_date|date_format:"%Y%m%d" NEQ $row.event_start_date|date_format:"%Y%m%d"}
80 <br/>- {$row.event_end_date|truncate:10:''|crmDate}
81 {/if}
82 </td>
83 <td class="crm-participant-participant_status crm-participant_status_{$row.participant_status_id}">{$row.participant_status}</td>
84 <td class="crm-participant-participant_role">{$row.participant_role_id}</td>
85 <td>{$row.action|replace:'xx':$participant_id}</td>
86 </tr>
87 {/foreach}
88{* Link to "View all participants" for Dashboard and Contact Summary *}
89{if $limit and $pager->_totalItems GT $limit }
90 {if $context EQ 'event_dashboard' }
91 <tr class="even-row">
92 <td colspan="10"><a href="{crmURL p='civicrm/event/search' q='reset=1'}">&raquo; {ts}Find more event participants{/ts}...</a></td></tr>
93 </tr>
94 {elseif $context eq 'participant' }
95 <tr class="even-row">
96 <td colspan="7"><a href="{crmURL p='civicrm/contact/view' q="reset=1&force=1&selectedChild=participant&cid=$contactId"}">&raquo; {ts}View all events for this contact{/ts}...</a></td></tr>
97 </tr>
98 {/if}
99{/if}
100</table>
101{/strip}
102
d664f648 103
6a488035
TO
104
105{if $context EQ 'Search'}
106 {include file="CRM/common/pager.tpl" location="bottom"}
107{/if}