First commit

This commit is contained in:
Theodotos Andreou 2018-01-14 13:10:16 +00:00
commit c6e2478c40
13918 changed files with 2303184 additions and 0 deletions

View file

@ -0,0 +1,41 @@
{*
+--------------------------------------------------------------------+
| CiviCRM version 4.7 |
+--------------------------------------------------------------------+
| Copyright CiviCRM LLC (c) 2004-2017 |
+--------------------------------------------------------------------+
| This file is a part of CiviCRM. |
| |
| CiviCRM is free software; you can copy, modify, and distribute it |
| under the terms of the GNU Affero General Public License |
| Version 3, 19 November 2007 and the CiviCRM Licensing Exception. |
| |
| CiviCRM is distributed in the hope that it will be useful, but |
| WITHOUT ANY WARRANTY; without even the implied warranty of |
| MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
| See the GNU Affero General Public License for more details. |
| |
| You should have received a copy of the GNU Affero General Public |
| License and the CiviCRM Licensing Exception along |
| with this program; if not, contact CiviCRM LLC |
| at info[AT]civicrm[DOT]org. If you have questions about the |
| GNU Affero General Public License or the licensing of CiviCRM, |
| see the CiviCRM license FAQ at http://civicrm.org/licensing |
+--------------------------------------------------------------------+
*}
{htxt id="id-event-intro-title"}
{ts}Event Dashboard{/ts}
{/htxt}
{htxt id="id-event-intro"}
{capture assign=newEventURL}{crmURL p="civicrm/event/add" q="reset=1"}{/capture}
{capture assign=configPagesURL}{crmURL p="civicrm/event/manage" q="reset=1"}{/capture}
{capture assign=findContactURL}{crmURL p="civicrm/contact/search/basic" q="reset=1"}{/capture}
{capture assign=importURL}{crmURL p="civicrm/event/import" q="reset=1"}{/capture}
{capture assign=findEventsURL}{crmURL p="civicrm/event/search/basic" q="reset=1"}{/capture}
<p>{ts 1=$newEventURL 2=$configPagesURL}CiviEvent allows you to create customized page(s) for constituents to learn about events and optionally register online. You can create <a href='%1'><strong>new events</strong></a> and <a href='%2'><strong>manage existing events</strong></a>.{/ts}</p>
<p>{ts 1=$findContactURL 2=$importURL}You can also input and track offline Events. To enter events manually for individual contacts, use <a href='%1'>Find Contacts</a> to locate the contact. Then click <strong>View</strong> to go to their summary page and click on the <strong>New Event</strong> link. You can also <a href='%2'><strong>import batches of participants</strong></a> from other sources.{/ts}</p>
<p>{ts 1=$findEventsURL}The Event Summary table provides a summary of up to ten scheduled and recent <strong>Events</strong>. Click the <strong>Event name</strong> to view the event as it will be displayed to site visitors. Click the <strong>Participants count</strong> to see a list of participants. To run your own customized searches - click <a href='%1'>Find Participants</a>. You can search by Participant Name, Event, Date Range and Status.{/ts}</p>
{/htxt}

View file

@ -0,0 +1,164 @@
{*
+--------------------------------------------------------------------+
| CiviCRM version 4.7 |
+--------------------------------------------------------------------+
| Copyright CiviCRM LLC (c) 2004-2017 |
+--------------------------------------------------------------------+
| This file is a part of CiviCRM. |
| |
| CiviCRM is free software; you can copy, modify, and distribute it |
| under the terms of the GNU Affero General Public License |
| Version 3, 19 November 2007 and the CiviCRM Licensing Exception. |
| |
| CiviCRM is distributed in the hope that it will be useful, but |
| WITHOUT ANY WARRANTY; without even the implied warranty of |
| MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
| See the GNU Affero General Public License for more details. |
| |
| You should have received a copy of the GNU Affero General Public |
| License and the CiviCRM Licensing Exception along |
| with this program; if not, contact CiviCRM LLC |
| at info[AT]civicrm[DOT]org. If you have questions about the |
| GNU Affero General Public License or the licensing of CiviCRM, |
| see the CiviCRM license FAQ at http://civicrm.org/licensing |
+--------------------------------------------------------------------+
*}
{* CiviEvent DashBoard (launch page) *}
{capture assign=newEventURL}{crmURL p="civicrm/event/add" q="action=add&reset=1"}{/capture}
{capture assign=configPagesURL}{crmURL p="civicrm/event/manage" q="reset=1"}{/capture}
{capture assign=icalFile}{crmURL p='civicrm/event/ical' q="reset=1" fe=1 a=1}{/capture}
{capture assign=icalFeed}{crmURL p='civicrm/event/ical' q="reset=1&list=1" fe=1 a=1}{/capture}
{capture assign=rssFeed}{crmURL p='civicrm/event/ical' q="reset=1&list=1&rss=1" fe=1 a=1}{/capture}
{capture assign=htmlFeed}{crmURL p='civicrm/event/ical' q="reset=1&list=1&html=1" fe=1 a=1}{/capture}
{if $eventSummary.total_events}
<a href="{$configPagesURL}" class="button no-popup"><span><i class="crm-i fa-th-list"></i> {ts}Manage Events{/ts}</span></a>
<a href="{$newEventURL}" class="button"><span><i class="crm-i fa-calendar-plus-o"></i> {ts}New Event{/ts}</span></a>
<div class="clear">&nbsp;</div>
<h3 id="crm-event-dashboard-heading">{ts}Event Summary{/ts}
{help id="id-event-intro"}
<a href="{$htmlFeed}" target="_blank" title="{ts}HTML listing of current and future public events.{/ts}" class="crm-event-feed-link"><i class="crm-i fa-lg fa-calendar"></i></a>
<a href="{$rssFeed}" target="_blank" title="{ts}Get RSS 2.0 feed for current and future public events.{/ts}" class="crm-event-feed-link"><i class="crm-i fa-lg fa-rss"></i></a>
<a href="{$icalFile}" title="{ts}Download iCalendar file for current and future public events.{/ts}" class="crm-event-feed-link"><i class="crm-i fa-lg fa-download"></i></a>
<a href="{$icalFeed}" target="_blank" title="{ts}Get iCalendar feed for current and future public events.{/ts}" class="crm-event-feed-link"><i class="crm-i fa-lg fa-calendar-o"></i></a></h3>
{include file="CRM/common/jsortable.tpl"}
<table id="options" class="display">
<thead>
<tr>
<th>{ts}Event{/ts}</th>
<th>{ts}ID{/ts}</th>
<th>{ts}Type{/ts}</th>
<th id="nosort">{ts}Public{/ts}</th>
<th id="nosort">{ts}Date(s){/ts}</th>
<th id="nosort">{ts}Participants{/ts}</th>
{if $actionColumn}<th></th>{/if}
</tr>
</thead>
<tbody>
{foreach from=$eventSummary.events item=values key=id}
<tr class="crm-event_{$id}">
<td class="crm-event-eventTitle"><a href="{crmURL p="civicrm/event/info" q="reset=1&id=`$id`"}" title="{ts}View event info page{/ts}">{$values.eventTitle}</a>
{if $values.is_repeating_event}
<br/>
{if $values.is_repeating_event eq $id}
<span>{ts}Repeating Event{/ts} - ({ts}Parent{/ts})</span>
{else}
<span>{ts}Repeating Event{/ts} - ({ts}Child{/ts})</span>
{/if}
{/if}
</td>
<td class="crm-event-id">{$id}</td>
<td class="crm-event-eventType">{$values.eventType}</td>
<td class="crm-event-isPublic">{$values.isPublic}</td>
<td class="nowrap crm-event-startDate">{$values.startDate}&nbsp;{if $values.endDate}to{/if}&nbsp;{$values.endDate}</td>
<td class="right crm-event-participants_url">
{if $values.participants and $values.participants_url}
<a href="{$values.participants_url}" title="{ts 1=$eventSummary.countedStatusANDRoles}List %1 participants{/ts}">{ts}Counted{/ts}:&nbsp;{$values.participants}</a>
{else}
{ts}Counted{/ts}:&nbsp;{$values.participants}
{/if}
{if $values.notCountedParticipants and $values.notCountedParticipants_url}
<a href="{$values.notCountedParticipants_url}" title="{ts 1=$eventSummary.nonCountedStatusANDRoles}List %1 participants{/ts}">{ts}Not&nbsp;Counted{/ts}:&nbsp;{$values.notCountedParticipants}</a><hr />
{else}
{ts}Not&nbsp;Counted{/ts}:&nbsp;{$values.notCountedParticipants}<hr />
{/if}
{if $values.notCountedDueToStatus and $values.notCountedDueToStatus_url}
<a href="{$values.notCountedDueToStatus_url}" title="{ts 1=$eventSummary.nonCountedStatus}List %1 participants{/ts}">{ts}Not&nbsp;Counted&nbsp;Due&nbsp;To&nbsp;Status{/ts}:&nbsp;{$values.notCountedDueToStatus}</a><hr />
{else}
{ts}Not&nbsp;Counted&nbsp;Due&nbsp;To&nbsp;Status{/ts}:&nbsp;{$values.notCountedDueToStatus}<hr />
{/if}
{if $values.notCountedDueToRole and $values.notCountedDueToRole_url}
<a href="{$values.notCountedDueToRole_url}" title="{ts 1=$eventSummary.nonCountedRoles}List %1 participants{/ts}">{ts}Not&nbsp;Counted&nbsp;Due&nbsp;To&nbsp;Role{/ts}:&nbsp;{$values.notCountedDueToRole}</a><hr />
{else}
{ts}Not&nbsp;Counted&nbsp;Due&nbsp;To&nbsp;Role{/ts}:&nbsp;{$values.notCountedDueToRole}<hr />
{/if}
{foreach from=$values.statuses item=class}
{if $class}
{foreach from=$class item=status}
<a href="{$status.url}" title="{ts 1=$status.label}List %1 participants{/ts}">{$status.label}: {$status.count}</a>
{/foreach}
<hr />
{/if}
{/foreach}
{if $values.maxParticipants}{ts 1=$values.maxParticipants}(max %1){/ts}{/if}
</td>
{if $actionColumn}
<td class="crm-event-isMap">
{if $values.isMap}
<a href="{$values.isMap}" title="{ts}Map event location{/ts}">&raquo;&nbsp;{ts}Map{/ts}</a>
&nbsp;|&nbsp;
{/if}
{if $values.configure}
<div class="crm-configure-actions">
<span id="{$id}" class="btn-slide crm-hover-button">{ts}Configure{/ts}
<ul class="panel" id="panel_info_{$id}">
{foreach from=$eventSummary.tab key=k item=v}
{assign var="fld" value=$v.field}
{if NOT $values.$fld}{assign var="status" value="disabled"}{else}{assign var="status" value="enabled"}{/if}
{* Schedule Reminders requires a different query string. *}
{if $v.url EQ 'civicrm/event/manage/reminder'}
<li><a title="{$v.title|escape}" class="action-item crm-hover-button no-popup {$status}"
href="{crmURL p="`$v.url`" q="reset=1&action=browse&setTab=1&id=`$id`"}">{$v.title}</a></li>
{else}
<li><a title="{$v.title|escape}" class="action-item crm-hover-button no-popup {$status}"
href="{crmURL p="`$v.url`" q="reset=1&action=update&id=`$id`"}">{$v.title}</a></li>
{/if}
{/foreach}
</ul>
</span>
</div>
{/if}
</td>
{/if}
</tr>
{/foreach}
</tbody>
</table>
{if $eventSummary.total_events GT 10}
<div><a href="{crmURL p='civicrm/admin/event' q='reset=1'}">&raquo; {ts}Browse more events{/ts}...</a></div>
{/if}
{else}
<br />
<div class="messages status no-popup">
<table>
<tr><div class="icon inform-icon"></div></tr>
<tr>
{ts}There are no active Events to display.{/ts}
{ts 1=$newEventURL}You can <a href="%1">Create a New Event</a> now.{/ts}
</tr>
</table>
</div>
{/if}
{if $pager->_totalItems}
<br/>
<h3>{ts}Recent Registrations{/ts}</h3>
<div class="form-item">
{include file="CRM/Event/Form/Selector.tpl" context="event_dashboard"}
</div>
{/if}

View file

@ -0,0 +1,266 @@
{*
+--------------------------------------------------------------------+
| CiviCRM version 4.7 |
+--------------------------------------------------------------------+
| Copyright CiviCRM LLC (c) 2004-2017 |
+--------------------------------------------------------------------+
| This file is a part of CiviCRM. |
| |
| CiviCRM is free software; you can copy, modify, and distribute it |
| under the terms of the GNU Affero General Public License |
| Version 3, 19 November 2007 and the CiviCRM Licensing Exception. |
| |
| CiviCRM is distributed in the hope that it will be useful, but |
| WITHOUT ANY WARRANTY; without even the implied warranty of |
| MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
| See the GNU Affero General Public License for more details. |
| |
| You should have received a copy of the GNU Affero General Public |
| License and the CiviCRM Licensing Exception along |
| with this program; if not, contact CiviCRM LLC |
| at info[AT]civicrm[DOT]org. If you have questions about the |
| GNU Affero General Public License or the licensing of CiviCRM, |
| see the CiviCRM license FAQ at http://civicrm.org/licensing |
+--------------------------------------------------------------------+
*}
{* this template is used for displaying event information *}
{if $registerClosed }
<div class="spacer"></div>
<div class="messages status no-popup">
<i class="crm-i fa-info-circle"></i>
&nbsp;{ts}Registration is closed for this event{/ts}
</div>
{/if}
{if call_user_func(array('CRM_Core_Permission','check'), 'access CiviEvent')}
<div class="crm-actions-ribbon crm-event-manage-tab-actions-ribbon">
<ul id="actions">
{if call_user_func(array('CRM_Core_Permission','check'), 'edit all events') && !empty($manageEventLinks)}
<li>
<div id="crm-event-links-wrapper">
<span id="crm-event-configure-link" class="crm-hover-button">
<span title="{ts}Configure this event.{/ts}" class="crm-i fa-wrench"></span>
</span>
<div class="ac_results" id="crm-event-links-list" style="margin-left: -25px;">
<div class="crm-event-links-list-inner">
<ul>
{foreach from=$manageEventLinks item='link'}
<li>
{* Schedule Reminders requires a different query string. *}
{if $link.url EQ 'civicrm/event/manage/reminder'}
<a href="{crmURL p=$link.url q="reset=1&action=browse&setTab=1&id=`$event.id`" fb=1}">{$link.title}</a>
{else}
<a href="{crmURL p=$link.url q="reset=1&action=update&id=`$event.id`" fb=1}">{$link.title}</a>
{/if}
</li>
{/foreach}
</ul>
</div>
</div>
</div>
</li>
{/if}
<li>
<div id="crm-participant-wrapper">
<span id="crm-participant-links" class="crm-hover-button">
<span title="{ts}Participant listing links.{/ts}" class="crm-i fa-search"></span>
</span>
<div class="ac_results" id="crm-participant-list" style="margin-left: -25px;">
<div class="crm-participant-list-inner">
<ul>
{if $findParticipants.statusCounted}
<li><a class="crm-participant-counted" href="{crmURL p='civicrm/event/search' q="reset=1&force=1&event=`$event.id`&status=true" fb=1}"><b>{ts}List counted participants{/ts}</b> ({$findParticipants.statusCounted|replace:'/':', '})</a></li>
{/if}
{if $findParticipants.statusNotCounted}
<li><a class="crm-participant-not-counted" href="{crmURL p='civicrm/event/search' q="reset=1&force=1&event=`$event.id`&status=false" fb=1}"><b>{ts}List uncounted participants{/ts}</b> ({$findParticipants.statusNotCounted|replace:'/':', '})</a>
</li>
{/if}
{if $participantListingURL}
<li><a class="crm-participant-listing" href="{$participantListingURL}">{ts}Public Participant Listing{/ts}</a></li>
{/if}
</ul>
</div>
</div>
</div>
</li>
</ul>
<div class="clear"></div>
</div>
{/if}
<div class="vevent crm-event-id-{$event.id} crm-block crm-event-info-form-block">
<div class="event-info">
{* Display top buttons only if the page is long enough to merit duplicate buttons *}
{if $event.summary or $event.description}
<div class="crm-actionlinks-top">
{crmRegion name="event-page-eventinfo-actionlinks-top"}
{if $allowRegistration}
<div class="action-link section register_link-section register_link-top">
<a href="{$registerURL}" title="{$registerText|escape:'html'}" class="button crm-register-button"><span>{$registerText}</span></a>
</div>
{/if}
{/crmRegion}
</div>
{/if}
{if $event.summary}
<div class="crm-section event_summary-section">
{$event.summary}
</div>
{/if}
{if $event.description}
<div class="crm-section event_description-section summary">
{$event.description}
</div>
{/if}
<div class="clear"></div>
<div class="crm-section event_date_time-section">
<div class="label"><label>{ts}When{/ts}</label></div>
<div class="content">
<abbr class="dtstart" title="{$event.event_start_date|crmDate}">
{$event.event_start_date|crmDate}</abbr>
{if $event.event_end_date}
&nbsp; {ts}through{/ts} &nbsp;
{* Only show end time if end date = start date *}
{if $event.event_end_date|date_format:"%Y%m%d" == $event.event_start_date|date_format:"%Y%m%d"}
<abbr class="dtend" title="{$event.event_end_date|crmDate:0:1}">
{$event.event_end_date|crmDate:0:1}
</abbr>
{else}
<abbr class="dtend" title="{$event.event_end_date|crmDate}">
{$event.event_end_date|crmDate}
</abbr>
{/if}
{/if}
</div>
<div class="clear"></div>
</div>
{if $isShowLocation}
{if $location.address.1}
<div class="crm-section event_address-section">
<div class="label"><label>{ts}Location{/ts}</label></div>
<div class="content">{$location.address.1.display|nl2br}</div>
<div class="clear"></div>
</div>
{/if}
{if ( $event.is_map && $config->mapProvider &&
( is_numeric($location.address.1.geo_code_1) ||
( $location.address.1.city AND $location.address.1.state_province ) ) ) }
<div class="crm-section event_map-section">
<div class="content">
{assign var=showDirectly value="1"}
{include file="CRM/Contact/Form/Task/Map/`$config->mapProvider`.tpl" fields=$showDirectly}
<br /><a href="{$mapURL}" title="{ts}Show large map{/ts}">{ts}Show large map{/ts}</a>
</div>
<div class="clear"></div>
</div>
{/if}
{/if}{*End of isShowLocation condition*}
{if $location.phone.1.phone || $location.email.1.email}
<div class="crm-section event_contact-section">
<div class="label"><label>{ts}Contact{/ts}</label></div>
<div class="content">
{* loop on any phones and emails for this event *}
{foreach from=$location.phone item=phone}
{if $phone.phone}
{if $phone.phone_type_id}{$phone.phone_type_display}{else}{ts}Phone{/ts}{/if}:
<span class="tel">{$phone.phone} {if $phone.phone_ext}&nbsp;{ts}ext.{/ts} {$phone.phone_ext}{/if} </span> <br />
{/if}
{/foreach}
{foreach from=$location.email item=email}
{if $email.email}
{ts}Email:{/ts} <span class="email"><a href="mailto:{$email.email}">{$email.email}</a></span>
{/if}
{/foreach}
</div>
<div class="clear"></div>
</div>
{/if}
{if $event.is_monetary eq 1 && $feeBlock.value}
<div class="crm-section event_fees-section">
<div class="label"><label>{$event.fee_label}</label></div>
<div class="content">
<table class="form-layout-compressed fee_block-table">
{foreach from=$feeBlock.value name=fees item=value}
{assign var=idx value=$smarty.foreach.fees.iteration}
{* Skip price field label for quick_config price sets since it duplicates $event.fee_label *}
{if $feeBlock.lClass.$idx}
{assign var="lClass" value=$feeBlock.lClass.$idx}
{else}
{assign var="lClass" value="fee_level-label"}
{/if}
{if $isQuickConfig && $lClass EQ "price_set_option_group-label"}
{* Skip price field label for quick_config price sets since it duplicates $event.fee_label *}
{else}
<tr>
<td class="{$lClass} crm-event-label">{$feeBlock.label.$idx}</td>
{if $isPriceSet & $feeBlock.isDisplayAmount.$idx}
<td class="fee_amount-value right">
{if isset($feeBlock.tax_amount.$idx)}
{$feeBlock.value.$idx}
{else}
{$feeBlock.value.$idx|crmMoney}
{/if}
</td>
{/if}
</tr>
{/if}
{/foreach}
</table>
</div>
<div class="clear"></div>
</div>
{/if}
{include file="CRM/Custom/Page/CustomDataView.tpl"}
<div class="crm-actionlinks-bottom">
{crmRegion name="event-page-eventinfo-actionlinks-bottom"}
{if $allowRegistration}
<div class="action-link section register_link-section register_link-bottom">
<a href="{$registerURL}" title="{$registerText|escape:'html'}" class="button crm-register-button"><span>{$registerText}</span></a>
</div>
{/if}
{/crmRegion}
</div>
{if $event.is_public }
<br />{include file="CRM/Event/Page/iCalLinks.tpl"}
{/if}
{if $event.is_share }
{capture assign=eventUrl}{crmURL p='civicrm/event/info' q="id=`$event.id`&amp;reset=1" a=1 fe=1 h=1}{/capture}
{include file="CRM/common/SocialNetwork.tpl" url=$eventUrl title=$event.title pageURL=$eventUrl}
{/if}
</div>
</div>
{literal}
<script type="text/javascript">
cj('body').click(function() {
cj('#crm-event-links-list').hide();
cj('#crm-participant-list').hide();
});
cj('#crm-event-configure-link').click(function(event) {
cj('#crm-event-links-list').toggle();
cj('#crm-participant-list').hide();
event.stopPropagation();
});
cj('#crm-participant-links').click(function(event) {
cj('#crm-participant-list').toggle();
cj('#crm-event-links-list').hide();
event.stopPropagation();
});
</script>
{/literal}

View file

@ -0,0 +1,60 @@
{*
+--------------------------------------------------------------------+
| CiviCRM version 4.7 |
+--------------------------------------------------------------------+
| Copyright CiviCRM LLC (c) 2004-2017 |
+--------------------------------------------------------------------+
| This file is a part of CiviCRM. |
| |
| CiviCRM is free software; you can copy, modify, and distribute it |
| under the terms of the GNU Affero General Public License |
| Version 3, 19 November 2007 and the CiviCRM Licensing Exception. |
| |
| CiviCRM is distributed in the hope that it will be useful, but |
| WITHOUT ANY WARRANTY; without even the implied warranty of |
| MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
| See the GNU Affero General Public License for more details. |
| |
| You should have received a copy of the GNU Affero General Public |
| License and the CiviCRM Licensing Exception along |
| with this program; if not, contact CiviCRM LLC |
| at info[AT]civicrm[DOT]org. If you have questions about the |
| GNU Affero General Public License or the licensing of CiviCRM, |
| see the CiviCRM license FAQ at http://civicrm.org/licensing |
+--------------------------------------------------------------------+
*}
{* Displays current and upcoming public Events Listing as an HTML page. *}
{include file="CRM/common/jsortable.tpl"}
<table id="options" class="display">
<thead>
<tr>
<th>{ts}Event{/ts}</th>
<th></th>
<th>{ts}When{/ts}</th>
<th>{ts}Location{/ts}</th>
<th>{ts}Category{/ts}</th>
<th>{ts}Email{/ts}</th>
{if $registration_links}<th>{ts}Register{/ts}</th>{/if}
</tr>
</thead>
{foreach from=$events key=uid item=event}
<tr class="{cycle values="odd-row,even-row"} {$row.class}">
<td><a href="{crmURL p='civicrm/event/info' q="reset=1&id=`$event.event_id`"}" title="{ts}read more{/ts}"><strong>{$event.title}</strong></a></td>
<td>{if $event.summary}{$event.summary} (<a href="{crmURL p='civicrm/event/info' q="reset=1&id=`$event.event_id`"}" title="{ts}details...{/ts}">{ts}read more{/ts}...</a>){else}&nbsp;{/if}</td>
<td class="nowrap">
{if $event.start_date}{$event.start_date|crmDate}{if $event.end_date}<br /><em>{ts}through{/ts}</em><br />{strip}
{* Only show end time if end date = start date *}
{if $event.end_date|date_format:"%Y%m%d" == $event.start_date|date_format:"%Y%m%d"}
{$event.end_date|crmDate:0:1}
{else}
{$event.end_date|crmDate}
{/if}{/strip}{/if}
{else}{ts}(not available){/ts}{/if}
</td>
<td>{if $event.is_show_location EQ 1 AND $event.location}{$event.location}{else}{ts}(not available){/ts}{/if}</td>
<td>{if $event.event_type}{$event.event_type}{else}&nbsp;{/if}</td>
<td>{if $event.contact_email}<a href="mailto:{$event.contact_email}">{$event.contact_email}</a>{else}&nbsp;{/if}</td>
{if $registration_links}<td><a href="{$event.registration_link}">{$event.registration_link_text}</a></td>{/if}
</tr>
{/foreach}
</table>

View file

@ -0,0 +1,69 @@
{*
+--------------------------------------------------------------------+
| CiviCRM version 4.7 |
+--------------------------------------------------------------------+
| Copyright CiviCRM LLC (c) 2004-2017 |
+--------------------------------------------------------------------+
| This file is a part of CiviCRM. |
| |
| CiviCRM is free software; you can copy, modify, and distribute it |
| under the terms of the GNU Affero General Public License |
| Version 3, 19 November 2007 and the CiviCRM Licensing Exception. |
| |
| CiviCRM is distributed in the hope that it will be useful, but |
| WITHOUT ANY WARRANTY; without even the implied warranty of |
| MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
| See the GNU Affero General Public License for more details. |
| |
| You should have received a copy of the GNU Affero General Public |
| License and the CiviCRM Licensing Exception along |
| with this program; if not, contact CiviCRM LLC |
| at info[AT]civicrm[DOT]org. If you have questions about the |
| GNU Affero General Public License or the licensing of CiviCRM, |
| see the CiviCRM license FAQ at http://civicrm.org/licensing |
+--------------------------------------------------------------------+
*}
{htxt id='icalendar-title'}
{ts}ICalendar Downloads and Feeds{/ts}
{/htxt}
{htxt id='icalendar'}
{capture assign=icalPage}{crmURL p='civicrm/event/ical' q="reset=1&list=1"}{/capture}
{capture assign=rssFeed}{crmURL p='civicrm/event/ical' q="reset=1&list=1&rss=1"}{/capture}
{capture assign=htmlFeed}{crmURL p='civicrm/event/ical' q="reset=1&list=1&html=1"}{/capture}
{capture assign=icalPageExample}{crmURL p='civicrm/event/ical' q="reset=1&list=1&type=3&start=20070101"}{/capture}
<p>
{ts}iCalendar is a standard format for representing information about calendaring and scheduling. CiviEvent allows you to output your current and upcoming 'public' events in the iCalendar format - so this information can be shared with other iCalendar-enabled applications.{/ts}</p>
<p>{ts}Depending on how you want to use the iCalendar data - you can:{/ts}</p>
<ul>
<li>{ts}Download an iCalendar file (with a *.ics extension) to your local computer.{/ts}</li>
<li>{ts}Access the data using an HTTP GET request from a specific URL. (This is the 'ICAL' icon on the Manage Events page.){/ts}</li>
</ul>
<p>{ts}The iCalendar Feed URL for CiviEvent on this site:{/ts}</p>
<pre>
{$icalPage}
</pre>
<p>{ts}By default, both methods get all events whose starting date is greater than or equal to the current date. However, you can modify this by passing additional parameters in the URL:{/ts}</p>
<ul>
<li>{ts}start=YYYYMMDD - Specify a different starting date range for the events to be listed.{/ts}</li>
<li>{ts}type=N - Specify a particular Event Type using the event_type_id value. (You can find these values by browsing the listing at Administer &raquo; CiviEvent &raquo; Event Types.){/ts}</li>
</ul>
<p>{ts}EXAMPLE: Given the default event types, this URL will retrieve all events with start dates on or after January 1, 2007 whose event type is 'Fundraiser':{/ts}</p>
<pre>
{$icalPageExample}
</pre>
<p><strong>{ts}HTML Listing{/ts}</strong><br />
{ts}CiviEvent provides a page which lists your current and future public events in a table layout for display in a browser. Point people to this page using the following URL:{/ts}</p>
<pre>
{$htmlFeed}
</pre>
<p>{ts}You can add links to this page in your Drupal or Joomla menus and on any content page. You can also use the additional parameters shown above to filter the events included on the page.{/ts}</p>
<p><strong>{ts}RSS 2.0 Feeds{/ts}</strong><br />
{ts}CiviEvent also creates an RSS 2.0 formatted feed which can be subscribed to people using RSS readers and can be displayed in most modern browsers. The RSS Feed URL for CiviEvent on this site:{/ts}</p>
<pre>
{$rssFeed}
</pre>
<p>{ts}You can also use the additional parameters shown above to filter the events included in the RSS feed.{/ts}</p>
{/htxt}

View file

@ -0,0 +1,207 @@
{*
+--------------------------------------------------------------------+
| CiviCRM version 4.7 |
+--------------------------------------------------------------------+
| Copyright CiviCRM LLC (c) 2004-2017 |
+--------------------------------------------------------------------+
| This file is a part of CiviCRM. |
| |
| CiviCRM is free software; you can copy, modify, and distribute it |
| under the terms of the GNU Affero General Public License |
| Version 3, 19 November 2007 and the CiviCRM Licensing Exception. |
| |
| CiviCRM is distributed in the hope that it will be useful, but |
| WITHOUT ANY WARRANTY; without even the implied warranty of |
| MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
| See the GNU Affero General Public License for more details. |
| |
| You should have received a copy of the GNU Affero General Public |
| License and the CiviCRM Licensing Exception along |
| with this program; if not, contact CiviCRM LLC |
| at info[AT]civicrm[DOT]org. If you have questions about the |
| GNU Affero General Public License or the licensing of CiviCRM, |
| see the CiviCRM license FAQ at http://civicrm.org/licensing |
+--------------------------------------------------------------------+
*}
{capture assign=newEventURL}{crmURL p='civicrm/event/add' q="action=add&reset=1"}{/capture}
{capture assign=icalFile}{crmURL p='civicrm/event/ical' q="reset=1" fe=1}{/capture}
{capture assign=icalFeed}{crmURL p='civicrm/event/ical' q="reset=1&list=1" fe=1}{/capture}
{capture assign=rssFeed}{crmURL p='civicrm/event/ical' q="reset=1&list=1&rss=1" fe=1}{/capture}
{capture assign=htmlFeed}{crmURL p='civicrm/event/ical' q="reset=1&list=1&html=1" fe=1}{/capture}
<div class="float-right">
<a href="{$htmlFeed}" target="_blank" title="{ts}HTML listing of current and future public events.{/ts}" class="crm-event-feed-link"><i class="crm-i fa-lg fa-calendar"></i></a>
<a href="{$rssFeed}" target="_blank" title="{ts}Get RSS 2.0 feed for current and future public events.{/ts}" class="crm-event-feed-link"><i class="crm-i fa-lg fa-rss"></i></a>
<a href="{$icalFile}" title="{ts}Download iCalendar file for current and future public events.{/ts}" class="crm-event-feed-link"><i class="crm-i fa-lg fa-download"></i></a>
<a href="{$icalFeed}" target="_blank" title="{ts}Get iCalendar feed for current and future public events.{/ts}" class="crm-event-feed-link"><i class="crm-i fa-lg fa-calendar-o"></i></a>
{help id='icalendar'}
</div>
{include file="CRM/Event/Form/SearchEvent.tpl"}
<div class="action-link">
<a accesskey="N" href="{$newEventURL}" id="newManageEvent" class="button crm-popup">
<span><i class="crm-i fa-calendar-plus-o"></i> {ts}Add Event{/ts}</span>
</a>
<div class="clear"></div>
</div>
{if $rows}
<div id="event_status_id" class="crm-block crm-manage-events">
{strip}
{include file="CRM/common/pager.tpl" location="top"}
{include file="CRM/common/pagerAToZ.tpl"}
{* handle enable/disable actions*}
{include file="CRM/common/enableDisableApi.tpl"}
{include file="CRM/common/jsortable.tpl"}
<table id="options" class="display">
<thead>
<tr>
<th>{ts}Event{/ts}</th>
<th>{ts}City{/ts}</th>
<th>{ts}State/Province{/ts}</th>
<th>{ts}Type{/ts}</th>
<th>{ts}Public?{/ts}</th>
<th>{ts}Starts{/ts}</th>
<th>{ts}Ends{/ts}</th>
{if call_user_func(array('CRM_Campaign_BAO_Campaign','isCampaignEnable'))}
<th>{ts}Campaign{/ts}</th>
{/if}
<th>{ts}Active?{/ts}</th>
<th></th>
<th class="hiddenElement"></th>
<th class="hiddenElement"></th>
</tr>
</thead>
{foreach from=$rows key=keys item=row}
{if $keys neq 'tab'}
<tr id="event-{$row.id}" class="crm-entity {if NOT $row.is_active} disabled{/if}">
<td class="crm-event_{$row.id}">
<a href="{crmURL p='civicrm/event/info' q="id=`$row.id`&reset=1"}"
title="{ts}View event info page{/ts}" class="bold">{$row.title}</a>&nbsp;&nbsp;({ts}ID:{/ts} {$row.id})<br/>
<span><b>{$row.repeat}</b></span>
</td>
<td class="crm-event-city">{$row.city}</td>
<td class="crm-event-state_province">{$row.state_province}</td>
<td class="crm-event-event_type">{$row.event_type}</td>
<td class="crm-event-is_public">{if $row.is_public eq 1} {ts}Yes{/ts} {else} {ts}No{/ts} {/if}</td>
<td class="crm-event-start_date" data-order="{$row.start_date|crmDate:'%Y-%m-%d'}">{$row.start_date|crmDate:"%b %d, %Y %l:%M %P"}</td>
<td class="crm-event-end_date" data-order="{$row.end_date|crmDate:'%Y-%m-%d'}">{$row.end_date|crmDate:"%b %d, %Y %l:%M %P"}</td>
{if call_user_func(array('CRM_Campaign_BAO_Campaign','isCampaignEnable'))}
<td class="crm-event-campaign">{$row.campaign}</td>
{/if}
<td class="crm-event_status" id="row_{$row.id}_status">
{if $row.is_active eq 1} {ts}Yes{/ts} {else} {ts}No{/ts} {/if}
</td>
<td class="crm-event-actions right nowrap">
<div class="crm-configure-actions">
<span id="event-configure-{$row.id}" class="btn-slide crm-hover-button">{ts}Configure{/ts}
<ul class="panel" id="panel_info_{$row.id}">
{foreach from=$rows.tab key=k item=v}
{assign var="fld" value=$v.field}
{if NOT $row.$fld}{assign var="status" value="disabled"}{else}{assign var="status" value="enabled"}{/if}
{if $k eq 'reminder'}
<li><a title="{$v.title|escape:'html'}" class="action-item crm-hover-button {$status}"
href="{crmURL p="`$v.url`" q="reset=1&action=browse&setTab=1&id=`$row.id`"}">{$v.title}</a>
{else}
<li><a title="{$v.title|escape:'html'}" class="action-item crm-hover-button {$status}"
href="{crmURL p="`$v.url`" q="reset=1&action=update&id=`$row.id`"}">{$v.title}</a></li>
{/if}
{/foreach}
</ul>
</span>
</div>
<div class=crm-event-participants>
<span id="event-participants-{$row.id}" class="btn-slide crm-hover-button">{ts}Participants{/ts}
<ul class="panel" id="panel_participants_{$row.id}">
{if $findParticipants.statusCounted}
<li>
<a title="Counted" class="action-item crm-hover-button" href="{crmURL p='civicrm/event/search'
q="reset=1&force=1&status=true&event=`$row.id`"}">{$findParticipants.statusCounted}
</a>
</li>
{/if}
{if $findParticipants.statusNotCounted}
<li>
<a title="Not Counted" class="action-item crm-hover-button"
href="{crmURL p='civicrm/event/search'
q="reset=1&force=1&status=false&event=`$row.id`"}">{$findParticipants.statusNotCounted}
</a>
</li>
{/if}
{if $row.participant_listing_id}
<li>
<a title="Public Participant Listing" class="action-item crm-hover-button"
href="{crmURL p='civicrm/event/participant' q="reset=1&id=`$row.id`"
fe='true'}">{ts}Public Participant Listing{/ts}
</a>
</li>
{/if}
</ul>
</span>
</div>
<div class="crm-event-links">
<span id="event-links-{$row.id}" class="btn-slide crm-hover-button">{ts}Event Links{/ts}
<ul class="panel" id="panel_links_{$row.id}">
<li>
<a title="Register Participant" class="action-item crm-hover-button" href="{crmURL p='civicrm/participant/add'
q="reset=1&action=add&context=standalone&eid=`$row.id`"}">{ts}Register Participant{/ts}</a>
</li>
<li>
<a title="Event Info" class="action-item crm-hover-button" href="{crmURL p='civicrm/event/info'
q="reset=1&id=`$row.id`" fe='true'}" target="_blank">{ts}Event Info{/ts}
</a>
</li>
{if $row.is_online_registration}
<li>
<a title="Online Registration (Test-drive)" class="action-item crm-hover-button"
href="{crmURL p='civicrm/event/register'
q="reset=1&action=preview&id=`$row.id`"}">{ts}Registration (Test-drive){/ts}
</a>
</li>
<li>
<a title="Online Registration (Live)" class="action-item crm-hover-button" href="{crmURL p='civicrm/event/register'
q="reset=1&id=`$row.id`" fe='true'}" target="_blank">{ts}Registration (Live){/ts}
</a>
</li>
{/if}
</ul>
</span>
</div>
<div class="crm-event-more">
{$row.action|replace:'xx':$row.id}
</div>
</td>
<td class="crm-event-start_date hiddenElement">{$row.start_date|crmDate}</td>
<td class="crm-event-end_date hiddenElement">{$row.end_date|crmDate}</td>
</tr>
{/if}
{/foreach}
</table>
{include file="CRM/common/pager.tpl" location="bottom"}
{/strip}
{if $isSearch eq 0}
<div class="status messages no-popup">{ts}Don't see your event listed? Try "Search All or by Date Range" above.{/ts}</div>
{/if}
</div>
{else}
{if $isSearch eq 1}
<div class="status messages">
<div class="icon inform-icon"></div>
{capture assign=browseURL}{crmURL p='civicrm/event/manage' q="reset=1"}{/capture}
{ts}No available Events match your search criteria. Suggestions:{/ts}
<div class="spacer"></div>
<ul>
<li>{ts}Check your spelling.{/ts}</li>
<li>{ts}Try "Search All or by Date Range".{/ts}</li>
<li>{ts}Try a different spelling or use fewer letters.{/ts}</li>
<li>{ts}Make sure you have enough privileges in the access control system.{/ts}</li>
</ul>
{ts 1=$browseURL}Or you can <a href='%1'>browse all available Current Events</a>.{/ts}
</div>
{else}
<div class="messages status no-popup">
<div class="icon inform-icon"></div>
{ts 1=$newEventURL}There are no events scheduled for the date range. You can <a href='%1'>add one</a>.{/ts}
</div>
{/if}
{/if}

View file

@ -0,0 +1,55 @@
{*
+--------------------------------------------------------------------+
| CiviCRM version 4.7 |
+--------------------------------------------------------------------+
| Copyright CiviCRM LLC (c) 2004-2017 |
+--------------------------------------------------------------------+
| This file is a part of CiviCRM. |
| |
| CiviCRM is free software; you can copy, modify, and distribute it |
| under the terms of the GNU Affero General Public License |
| Version 3, 19 November 2007 and the CiviCRM Licensing Exception. |
| |
| CiviCRM is distributed in the hope that it will be useful, but |
| WITHOUT ANY WARRANTY; without even the implied warranty of |
| MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
| See the GNU Affero General Public License for more details. |
| |
| You should have received a copy of the GNU Affero General Public |
| License and the CiviCRM Licensing Exception along |
| with this program; if not, contact CiviCRM LLC |
| at info[AT]civicrm[DOT]org. If you have questions about the |
| GNU Affero General Public License or the licensing of CiviCRM, |
| see the CiviCRM license FAQ at http://civicrm.org/licensing |
+--------------------------------------------------------------------+
*}
{* Displays participant listing for an event. *}
{if $rows}
{include file="CRM/common/pager.tpl" location="top"}
<table cellpadding="0" cellspacing="0" border="0">
<tr class="columnheader">
{foreach from=$headers item=header}
<th scope="col">
{if $header.sort}
{assign var='key' value=$header.sort}
{$sort->_response.$key.link}
{else}
{$header.name}
{/if}
</th>
{/foreach}
</tr>
{foreach from=$rows item=row}
<tr class="{cycle values="odd-row,even-row"} crm-participant-name">
<td>{$row.name}</td>
</tr>
{/foreach}
</table>
{include file="CRM/common/pager.tpl" location="bottom"}
{else}
<div class='spacer'></div>
<div class="messages status no-popup">
<div class="icon inform-icon"></div>
{ts}There are currently no participants registered for this event.{/ts}
</div>
{/if}

View file

@ -0,0 +1,56 @@
{*
+--------------------------------------------------------------------+
| CiviCRM version 4.7 |
+--------------------------------------------------------------------+
| Copyright CiviCRM LLC (c) 2004-2017 |
+--------------------------------------------------------------------+
| This file is a part of CiviCRM. |
| |
| CiviCRM is free software; you can copy, modify, and distribute it |
| under the terms of the GNU Affero General Public License |
| Version 3, 19 November 2007 and the CiviCRM Licensing Exception. |
| |
| CiviCRM is distributed in the hope that it will be useful, but |
| WITHOUT ANY WARRANTY; without even the implied warranty of |
| MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
| See the GNU Affero General Public License for more details. |
| |
| You should have received a copy of the GNU Affero General Public |
| License and the CiviCRM Licensing Exception along |
| with this program; if not, contact CiviCRM LLC |
| at info[AT]civicrm[DOT]org. If you have questions about the |
| GNU Affero General Public License or the licensing of CiviCRM, |
| see the CiviCRM license FAQ at http://civicrm.org/licensing |
+--------------------------------------------------------------------+
*}
{* Displays participant listing for an event. *}
{if $rows}
{include file="CRM/common/pager.tpl" location="top"}
<table cellpadding="0" cellspacing="0" border="0">
<tr class="columnheader">
{foreach from=$headers item=header}
<th scope="col">
{if $header.sort}
{assign var='key' value=$header.sort}
{$sort->_response.$key.link}
{else}
{$header.name}
{/if}
</th>
{/foreach}
</tr>
{foreach from=$rows item=row}
<tr class="{cycle values="odd-row,even-row"}">
<td class="crm-participant-name">{$row.name}</td>
<td class="crm-participant-email">{$row.email}</td>
</tr>
{/foreach}
</table>
{include file="CRM/common/pager.tpl" location="bottom"}
{else}
<div class='spacer'></div>
<div class="messages status no-popup">
<div class="icon inform-icon"></div>
{ts}There are currently no participants registered for this event.{/ts}
</div>
{/if}

View file

@ -0,0 +1,57 @@
{*
+--------------------------------------------------------------------+
| CiviCRM version 4.7 |
+--------------------------------------------------------------------+
| Copyright CiviCRM LLC (c) 2004-2017 |
+--------------------------------------------------------------------+
| This file is a part of CiviCRM. |
| |
| CiviCRM is free software; you can copy, modify, and distribute it |
| under the terms of the GNU Affero General Public License |
| Version 3, 19 November 2007 and the CiviCRM Licensing Exception. |
| |
| CiviCRM is distributed in the hope that it will be useful, but |
| WITHOUT ANY WARRANTY; without even the implied warranty of |
| MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
| See the GNU Affero General Public License for more details. |
| |
| You should have received a copy of the GNU Affero General Public |
| License and the CiviCRM Licensing Exception along |
| with this program; if not, contact CiviCRM LLC |
| at info[AT]civicrm[DOT]org. If you have questions about the |
| GNU Affero General Public License or the licensing of CiviCRM, |
| see the CiviCRM license FAQ at http://civicrm.org/licensing |
+--------------------------------------------------------------------+
*}
{* Displays participant listing for an event. *}
{if $rows}
{include file="CRM/common/pager.tpl" location="top"}
<table cellpadding="0" cellspacing="0" border="0">
<tr class="columnheader">
{foreach from=$headers item=header}
<th scope="col">
{if $header.sort}
{assign var='key' value=$header.sort}
{$sort->_response.$key.link}
{else}
{$header.name}
{/if}
</th>
{/foreach}
</tr>
{foreach from=$rows item=row}
<tr class="{cycle values="odd-row,even-row"}">
<td class="crm-participant-name">{$row.name}</td>
<td class="crm-participant-status">{$row.status}</td>
<td class="crm-participant-date">{$row.date}</td>
</tr>
{/foreach}
</table>
{include file="CRM/common/pager.tpl" location="bottom"}
{else}
<div class='spacer'></div>
<div class="messages status no-popup">
<div class="icon inform-icon"></div>
{ts}There are currently no participants registered for this event.{/ts}
</div>
{/if}

View file

@ -0,0 +1,68 @@
{*
+--------------------------------------------------------------------+
| CiviCRM version 4.7 |
+--------------------------------------------------------------------+
| Copyright CiviCRM LLC (c) 2004-2017 |
+--------------------------------------------------------------------+
| This file is a part of CiviCRM. |
| |
| CiviCRM is free software; you can copy, modify, and distribute it |
| under the terms of the GNU Affero General Public License |
| Version 3, 19 November 2007 and the CiviCRM Licensing Exception. |
| |
| CiviCRM is distributed in the hope that it will be useful, but |
| WITHOUT ANY WARRANTY; without even the implied warranty of |
| MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
| See the GNU Affero General Public License for more details. |
| |
| You should have received a copy of the GNU Affero General Public |
| License and the CiviCRM Licensing Exception along |
| with this program; if not, contact CiviCRM LLC |
| at info[AT]civicrm[DOT]org. If you have questions about the |
| GNU Affero General Public License or the licensing of CiviCRM, |
| see the CiviCRM license FAQ at http://civicrm.org/licensing |
+--------------------------------------------------------------------+
*}
{if $action eq 1 or $action eq 2 or $action eq 8} {* add, update or view *}
{include file="CRM/Event/Form/Participant.tpl"}
{elseif $action eq 4}
{include file="CRM/Event/Form/ParticipantView.tpl"}
{else}
{if $permission EQ 'edit'}{capture assign=newEventURL}{crmURL p="civicrm/contact/view/participant" q="reset=1&action=add&cid=`$contactId`&context=participant"}{/capture}
{/if}
<div class="help">
<p>{ts 1=$displayName}This page lists all event registrations for %1 since inception.{/ts}
{capture assign="link"}class="action-item" href="{$newEventURL}"{/capture}
{if $permission EQ 'edit'}{ts 1=$link}Click <a %1>Add Event Registration</a> to register this contact for an event.{/ts}{/if}
{if $accessContribution and $newCredit}
{capture assign=newCreditURL}{crmURL p="civicrm/contact/view/participant" q="reset=1&action=add&cid=`$contactId`&context=participant&mode=live"}{/capture}
{capture assign="link"}class="action-item" href="{$newCreditURL}"{/capture}
{ts 1=$link}Click <a %1>Submit Credit Card Event Registration</a> to process a new New Registration on behalf of the participant using their credit card.{/ts}
{/if}
</p>
</div>
{if $action eq 16 and $permission EQ 'edit'}
<div class="action-link">
<a accesskey="N" href="{$newEventURL}" class="button"><span><i class="crm-i fa-plus-circle"></i> {ts}Add Event Registration{/ts}</span></a>
{if $accessContribution and $newCredit}
<a accesskey="N" href="{$newCreditURL}" class="button"><span><i class="crm-i fa-credit-card"></i> {ts}Submit Credit Card Event Registration{/ts}</a></span>
{/if}
<br/ ><br/ >
</div>
{/if}
{if $rows}
{include file="CRM/common/pager.tpl" location="top"}
{include file="CRM/Event/Form/Selector.tpl"}
{include file="CRM/common/pager.tpl" location="bottom"}
{else}
<div class="messages status no-popup">
<table class="form-layout">
<tr><div class="icon inform-icon"></div>
{ts}No event registrations have been recorded for this contact.{/ts}
</tr>
</table>
</div>
{/if}
{/if}

View file

@ -0,0 +1,72 @@
{*
+--------------------------------------------------------------------+
| CiviCRM version 4.7 |
+--------------------------------------------------------------------+
| Copyright CiviCRM LLC (c) 2004-2017 |
+--------------------------------------------------------------------+
| This file is a part of CiviCRM. |
| |
| CiviCRM is free software; you can copy, modify, and distribute it |
| under the terms of the GNU Affero General Public License |
| Version 3, 19 November 2007 and the CiviCRM Licensing Exception. |
| |
| CiviCRM is distributed in the hope that it will be useful, but |
| WITHOUT ANY WARRANTY; without even the implied warranty of |
| MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
| See the GNU Affero General Public License for more details. |
| |
| You should have received a copy of the GNU Affero General Public |
| License and the CiviCRM Licensing Exception along |
| with this program; if not, contact CiviCRM LLC |
| at info[AT]civicrm[DOT]org. If you have questions about the |
| GNU Affero General Public License or the licensing of CiviCRM, |
| see the CiviCRM license FAQ at http://civicrm.org/licensing |
+--------------------------------------------------------------------+
*}
<div class="view-content">
{if $event_rows}
{strip}
<div class="description">
{ts}Click on the event name for more information.{/ts}
</div>
<table class="selector">
<tr class="columnheader">
<th>{ts}Event{/ts}</th>
<th>{ts}Event Date(s){/ts}</th>
<th>{ts}Status{/ts}</th>
<th></th>
</tr>
{counter start=0 skip=1 print=false}
{foreach from=$event_rows item=row}
<tr id='rowid{$row.participant_id}' class=" crm-event-participant-id_{$row.participant_id} {cycle values="odd-row,even-row"}{if $row.status eq Cancelled} disabled{/if}">
<td class="crm-participant-event-id_{$row.event_id}"><a href="{crmURL p='civicrm/event/info' q="reset=1&id=`$row.event_id`&context=dashboard"}">{$row.event_title}</a></td>
<td class="crm-participant-event_start_date">
{$row.event_start_date|crmDate}
{if $row.event_end_date}
&nbsp; - &nbsp;
{* Only show end time if end date = start date *}
{if $row.event_end_date|date_format:"%Y%m%d" == $row.event_start_date|date_format:"%Y%m%d"}
{$row.event_end_date|crmDate:0:1}
{else}
{$row.event_end_date|crmDate}
{/if}
{/if}
</td>
<td class="crm-participant-participant_status">{$row.participant_status}</td>
<td class="crm-participant-showConfirmUrl">
{if $row.showConfirmUrl}
<a href="{crmURL p='civicrm/event/confirm' q="reset=1&participantId=`$row.participant_id`"}">{ts}Confirm Registration{/ts}</a>
{/if}
</td>
</tr>
{/foreach}
</table>
{/strip}
{else}
<div class="messages status no-popup">
<div class="icon inform-icon"></div>&nbsp;
{ts}You are not registered for any current or upcoming Events.{/ts}
</div>
{/if}
</div>

View file

@ -0,0 +1,31 @@
{*
+--------------------------------------------------------------------+
| CiviCRM version 4.7 |
+--------------------------------------------------------------------+
| Copyright CiviCRM LLC (c) 2004-2017 |
+--------------------------------------------------------------------+
| This file is a part of CiviCRM. |
| |
| CiviCRM is free software; you can copy, modify, and distribute it |
| under the terms of the GNU Affero General Public License |
| Version 3, 19 November 2007 and the CiviCRM Licensing Exception. |
| |
| CiviCRM is distributed in the hope that it will be useful, but |
| WITHOUT ANY WARRANTY; without even the implied warranty of |
| MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
| See the GNU Affero General Public License for more details. |
| |
| You should have received a copy of the GNU Affero General Public |
| License and the CiviCRM Licensing Exception along |
| with this program; if not, contact CiviCRM LLC |
| at info[AT]civicrm[DOT]org. If you have questions about the |
| GNU Affero General Public License or the licensing of CiviCRM, |
| see the CiviCRM license FAQ at http://civicrm.org/licensing |
+--------------------------------------------------------------------+
*}
{* Display icons / links for ical download and feed for EventInfo.tpl and ThankYou.tpl *}
{capture assign=icalFile}{crmURL p='civicrm/event/ical' q="reset=1&id=`$event.id`" fe=1 a=1}{/capture}
{capture assign=icalFeed}{crmURL p='civicrm/event/ical' q="reset=1&list=1&id=`$event.id`" fe=1 a=1}{/capture}
<div class="action-link section iCal_links-section">
<a href="{$icalFile}" title="{ts}Download iCalendar entry for this event.{/ts}"><img src="{$config->resourceBase}i/office-calendar.png" alt="{ts}Download iCalendar entry for this event.{/ts}"></a>&nbsp;&nbsp;<a href="{$icalFeed}" title="{ts}iCalendar feed for this event.{/ts}"><img src="{$config->resourceBase}i/ical_feed.gif" alt="{ts}iCalendar feed for this event.{/ts}" style="margin-bottom: 4px;" /></a>
</div>