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 {if $context EQ 'Search'}
27 {include file="CRM/common/pager.tpl" location="top"}
31 <table class="selector row-highlight">
32 <thead class="sticky">
34 {if ! $single and $context eq 'Search' }
35 <th scope="col" title="Select Rows">{$form.toggleSelect.html}</th>
37 {foreach from=$columnHeaders item=header}
40 {assign var='key' value=$header.sort}
41 {$sort->_response.$key.link}
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}">
54 {if $context eq 'Search' }
55 {assign var=cbName value=$row.checkbox}
56 <td>{$form.$cbName.html}</td>
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>
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}
65 {assign var="participant_id" value=$row.participant_id}
66 {if $lineItems.$participant_id}
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}
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>
76 <td class="right nowrap crm-participant-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}
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>
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' }
92 <td colspan="10"><a href="{crmURL p='civicrm/event/search' q='reset=1'}">» {ts}Find more event participants{/ts}...</a></td></tr>
94 {elseif $context eq 'participant' }
96 <td colspan="7"><a href="{crmURL p='civicrm/contact/view' q="reset=1&force=1&selectedChild=participant&cid=$contactId"}">» {ts}View all events for this contact{/ts}...</a></td></tr>
105 {if $context EQ 'Search'}
106 {include file="CRM/common/pager.tpl" location="bottom"}