First commit
This commit is contained in:
commit
c6e2478c40
13918 changed files with 2303184 additions and 0 deletions
Binary file not shown.
After Width: | Height: | Size: 15 KiB |
Binary file not shown.
After Width: | Height: | Size: 15 KiB |
|
@ -0,0 +1,51 @@
|
|||
{include file="CRM/common/TrackingFields.tpl"}
|
||||
|
||||
<h3>{ts 1=$mer_participant->display_name 2=$mer_participant->email}Choose Events For %1 (%2){/ts}</h3>
|
||||
|
||||
{foreach from=$slot_fields key=slot_name item=field_name}
|
||||
<fieldset>
|
||||
<legend>
|
||||
{$slot_name}
|
||||
</legend>
|
||||
<div class="slot_options">
|
||||
<ul class="indented">
|
||||
{$form.$field_name.html}
|
||||
</ul>
|
||||
</div>
|
||||
</fieldset>
|
||||
{/foreach}
|
||||
|
||||
<script type="text/javascript">
|
||||
var session_options = {$session_options};
|
||||
{literal}
|
||||
for (var radio_id in session_options)
|
||||
{
|
||||
var info = session_options[radio_id];
|
||||
var label_sel = "label[for=" + radio_id + "]";
|
||||
cj("#"+radio_id +","+ label_sel).wrapAll("<li>");
|
||||
if (info.session_full) {
|
||||
cj("#"+radio_id).prop('disabled', true);
|
||||
cj("#"+radio_id).after('<span class="error">{/literal}{ts escape='js'}Session is Full{/ts}{literal}: </span>');
|
||||
}
|
||||
var more = cj('<a href="#">{/literal}{ts escape='js'}more info{/ts}{literal}</a>').click(function(event) {
|
||||
event.preventDefault();
|
||||
var nfo = cj(this).data("session_info");//F-!
|
||||
cj("<div style='font-size: 90%;'>" + (nfo.session_description || "-{/literal}{ts escape='js'}No description available for this event{/ts}{literal}-") + "</div>").dialog({
|
||||
title: nfo.session_title,
|
||||
resizable: false,
|
||||
draggable: false,
|
||||
width: 600,
|
||||
modal: true
|
||||
});
|
||||
});
|
||||
more.data("session_info", info);
|
||||
cj(label_sel).append(" ", more);
|
||||
}
|
||||
{/literal}
|
||||
</script>
|
||||
|
||||
<div id="crm-submit-buttons" class="crm-submit-buttons">
|
||||
{include file="CRM/common/formButtons.tpl" location="bottom"}
|
||||
</div>
|
||||
|
||||
{include file="CRM/Event/Cart/Form/viewCartLink.tpl"}
|
|
@ -0,0 +1,31 @@
|
|||
{assign var=event_id value=$participant->event_id}
|
||||
{assign var=participant_id value=$participant->id}
|
||||
<fieldset class="participant" id="event_{$event_id}_participant_{$participant_id}">
|
||||
<legend>
|
||||
{assign var=name value="event[`$event_id`][participant][`$participant_id`][number]"}
|
||||
{$custom.$name}
|
||||
</legend>
|
||||
<div class="clearfix">
|
||||
{assign var=pre value="event[`$event_id`][participant][`$participant_id`][customPre]"}
|
||||
<div class="profile-group">
|
||||
{include file="CRM/UF/Form/Block.tpl" fields=$custom.$pre form=$form.field.$participant_id}
|
||||
</div>
|
||||
|
||||
<div class="participant-info crm-section form-item">
|
||||
<div class="label">
|
||||
{$form.event.$event_id.participant.$participant_id.email.label}
|
||||
</div>
|
||||
<div class="edit-value content">
|
||||
{$form.event.$event_id.participant.$participant_id.email.html}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{assign var=post value="event[`$event_id`][participant][`$participant_id`][customPost]"}
|
||||
<div style="clear:left"></div>
|
||||
<div class="profile-group">
|
||||
{include file="CRM/UF/Form/Block.tpl" fields=$custom.$post form=$form.field.$participant_id}
|
||||
</div>
|
||||
</div>
|
||||
<!--if $form_participant->participant_index > 0-->
|
||||
<a class="link-delete" href="#" onclick="delete_participant({$event_id}, {$participant_id}); return false;">{ts}Delete{/ts} {$form->name}</a>
|
||||
</fieldset>
|
|
@ -0,0 +1,87 @@
|
|||
{include file="CRM/common/TrackingFields.tpl"}
|
||||
|
||||
{if $contact}
|
||||
<div class="messages status no-popup">
|
||||
{ts 1=$contact.display_name}Welcome %1{/ts}. (<a href="{crmURL p='civicrm/event/cart_checkout' q="&cid=0&reset=1"}" title="{ts}Click here to register a different person for this event.{/ts}">{ts 1=$contact.display_name}Not %1, or want to register a different person{/ts}</a>?)</div>
|
||||
{/if}
|
||||
|
||||
{foreach from=$events_in_carts key=index item=event_in_cart}
|
||||
{if !$event_in_cart.main_conference_event_id}
|
||||
{assign var=event_id value=$event_in_cart->event_id}
|
||||
<h3 class="event-title">
|
||||
{$event_in_cart->event->title} ({$event_in_cart->event->start_date|date_format:"%m/%d/%Y %l:%M%p"})
|
||||
</h3>
|
||||
<fieldset class="event_form">
|
||||
<div class="participants crm-section" id="event_{$event_in_cart->event_id}_participants">
|
||||
{foreach from=$event_in_cart->participants item=participant}
|
||||
{include file="CRM/Event/Cart/Form/Checkout/Participant.tpl"}
|
||||
{/foreach}
|
||||
<a class="link-add" href="#" onclick="add_participant({$event_in_cart->event_cart->id}, {$event_in_cart->event_id}); return false;">{ts}Add Another Participant{/ts}</a>
|
||||
</div>
|
||||
{if $event_in_cart->event->is_monetary }
|
||||
<div class="price_choices crm-section">
|
||||
{foreach from=$price_fields_for_event.$event_id key=price_index item=price_field_name}
|
||||
<div class="label">
|
||||
{$form.$price_field_name.label}
|
||||
</div>
|
||||
<div class="content">
|
||||
{$form.$price_field_name.html|replace:'/label> ':'/label><br>'}
|
||||
</div>
|
||||
{/foreach}
|
||||
</div>
|
||||
{else}
|
||||
<p>{ts}There is no charge for this event.{/ts}</p>
|
||||
{/if}
|
||||
</fieldset>
|
||||
{/if}
|
||||
{/foreach}
|
||||
|
||||
<div id="crm-submit-buttons" class="crm-submit-buttons">
|
||||
{include file="CRM/common/formButtons.tpl" location="bottom"}
|
||||
</div>
|
||||
|
||||
{include file="CRM/Event/Cart/Form/viewCartLink.tpl"}
|
||||
|
||||
{literal}
|
||||
<script type="text/javascript">
|
||||
//<![CDATA[
|
||||
function add_participant( cart_id, event_id ) {
|
||||
var max_index = 0;
|
||||
var matcher = new RegExp("event_" + event_id + "_participant_(\\d+)");
|
||||
|
||||
cj('#event_' + event_id + '_participants .participant').each(
|
||||
function(index) {
|
||||
matches = matcher.exec(cj(this).attr('id'));
|
||||
index = parseInt(matches[1]);
|
||||
if (index > max_index)
|
||||
{
|
||||
max_index = index;
|
||||
}
|
||||
}
|
||||
);
|
||||
|
||||
// FIXME: this get should be a post according to restful standards
|
||||
cj.get(CRM.url("civicrm/ajax/event/add_participant_to_cart?snippet=1", {cart_id: cart_id, event_id: event_id}),
|
||||
function(data) {
|
||||
cj('#event_' + event_id + '_participants').append(data).trigger('crmLoad');
|
||||
}
|
||||
);
|
||||
}
|
||||
|
||||
function delete_participant( event_id, participant_id )
|
||||
{
|
||||
// FIXME: this get should be a post according to restful standards
|
||||
cj('#event_' + event_id + '_participant_' + participant_id).remove();
|
||||
cj.get(CRM.url("civicrm/ajax/event/remove_participant_from_cart", {id: participant_id}));
|
||||
}
|
||||
|
||||
|
||||
//XXX missing
|
||||
cj('#ajax_error').ajaxError(
|
||||
function( e, xrh, settings, exception ) {
|
||||
cj(this).append('<div class="error">{/literal}{ts escape='js'}Error adding a participant at{/ts}{literal} ' + settings.url + ': ' + exception);
|
||||
}
|
||||
);
|
||||
//]]>
|
||||
</script>
|
||||
{/literal}
|
|
@ -0,0 +1,196 @@
|
|||
{include file="CRM/common/TrackingFields.tpl"}
|
||||
|
||||
<table>
|
||||
<thead>
|
||||
<tr>
|
||||
<th class="event-title">
|
||||
{ts}Event{/ts}
|
||||
</th>
|
||||
<th class="participants-column">
|
||||
{ts}Participants{/ts}
|
||||
</th>
|
||||
<th class="cost">
|
||||
{ts}Price{/ts}
|
||||
</th>
|
||||
<th class="amount">
|
||||
{ts}Total{/ts}
|
||||
</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
{foreach from=$line_items item=line_item}
|
||||
<tr class="event-line-item {$line_item.class}">
|
||||
<td class="event-title">
|
||||
{$line_item.event->title} ({$line_item.event->start_date})
|
||||
</td>
|
||||
<td class="participants-column">
|
||||
{$line_item.num_participants}<br/>
|
||||
{if $line_item.num_participants > 0}
|
||||
<div class="participants" style="padding-left: 10px;">
|
||||
{foreach from=$line_item.participants item=participant}
|
||||
{$participant.display_name}<br />
|
||||
{/foreach}
|
||||
</div>
|
||||
{/if}
|
||||
{if $line_item.num_waiting_participants > 0}
|
||||
{ts}Waitlisted:{/ts}<br/>
|
||||
<div class="participants" style="padding-left: 10px;">
|
||||
{foreach from=$line_item.waiting_participants item=participant}
|
||||
{$participant.display_name}<br />
|
||||
{/foreach}
|
||||
</div>
|
||||
{/if}
|
||||
</td>
|
||||
<td class="cost">
|
||||
{$line_item.cost|crmMoney:$currency|string_format:"%10s"}
|
||||
</td>
|
||||
<td class="amount">
|
||||
{$line_item.amount|crmMoney:$currency|string_format:"%10s"}
|
||||
</td>
|
||||
</tr>
|
||||
{/foreach}
|
||||
</tbody>
|
||||
<tfoot>
|
||||
{if $discounts}
|
||||
<tr>
|
||||
<td>
|
||||
</td>
|
||||
<td>
|
||||
</td>
|
||||
<td>
|
||||
{ts}Subtotal:{/ts}
|
||||
</td>
|
||||
<td>
|
||||
{$sub_total|crmMoney:$currency|string_format:"%10s"}
|
||||
</td>
|
||||
</tr>
|
||||
{foreach from=$discounts key=myId item=i}
|
||||
<tr>
|
||||
<td>{$i.title}
|
||||
</td>
|
||||
<td>
|
||||
</td>
|
||||
<td>
|
||||
</td>
|
||||
<td>
|
||||
-{$i.amount|crmMoney:$currency|string_format:"%10s"}
|
||||
</td>
|
||||
</tr>
|
||||
{/foreach}
|
||||
{/if}
|
||||
<tr>
|
||||
<td>
|
||||
</td>
|
||||
<td>
|
||||
</td>
|
||||
<td class="total">
|
||||
{ts}Total:{/ts}
|
||||
</td>
|
||||
<td class="total">
|
||||
{$total|crmMoney:$currency|string_format:"%10s"}
|
||||
</td>
|
||||
</tr>
|
||||
</tfoot>
|
||||
</table>
|
||||
{if $payment_required == true}
|
||||
{if $form.is_pay_later.label}
|
||||
<div class="crm-section {$form.is_pay_later.name}-section">
|
||||
<div class="label">{$form.is_pay_later.label}</div>
|
||||
<div class="content">{$form.is_pay_later.html}
|
||||
</div>
|
||||
<div class="clear"></div>
|
||||
</div>
|
||||
<div class="pay-later-instructions" style="display:none">
|
||||
{$pay_later_instructions}
|
||||
</div>
|
||||
{/if}
|
||||
{include file='CRM/Core/BillingBlockWrapper.tpl'}
|
||||
{/if}
|
||||
{if $collect_billing_email == true}
|
||||
<div class="crm-section {$form.billing_contact_email.name}-section">
|
||||
<div class="label">{$form.billing_contact_email.label}</div>
|
||||
<div class="content">{$form.billing_contact_email.html}
|
||||
</div>
|
||||
<div class="clear"></div>
|
||||
</div>
|
||||
{/if}
|
||||
|
||||
{if $administrator}
|
||||
<!--
|
||||
<div style="border: 1px solid blue; padding: 5px;">
|
||||
<b>{ts}Staff use only{/ts}</b>
|
||||
<div class="crm-section {$form.note.name}-section">
|
||||
<div class="label">{$form.note.label}</div>
|
||||
<div class="content">{$form.note.html}
|
||||
<div class="description">{ts}Note that will be sent to the billing customer.{/ts}</div>
|
||||
</div>
|
||||
<div class="clear"></div>
|
||||
</div>
|
||||
<div class="crm-section {$form.source.name}-section">
|
||||
<div class="label">{$form.source.label}</div>
|
||||
<div class="content">{$form.source.html}
|
||||
<div class="description">{ts}Description of this transaction.{/ts}</div>
|
||||
</div>
|
||||
<div class="clear"></div>
|
||||
</div>
|
||||
<div class="crm-section {$form.payment_type.name}-section">
|
||||
<div class="label">{$form.payment_type.label}</div>
|
||||
<div class="content">{$form.payment_type.html}
|
||||
</div>
|
||||
<div class="clear"></div>
|
||||
</div>
|
||||
<div class="crm-section {$form.check_number.name}-section" style="display: none;">
|
||||
<div class="label">{$form.check_number.label}</div>
|
||||
<div class="content">{$form.check_number.html}</div>
|
||||
<div class="clear"></div>
|
||||
</div>
|
||||
<div class="crm-section {$form.is_pending.name}-section">
|
||||
<div class="label">{$form.is_pending.label}</div>
|
||||
<div class="content">{$form.is_pending.html}
|
||||
</div>
|
||||
<div class="clear"></div>
|
||||
</div>
|
||||
</div>
|
||||
-->
|
||||
{/if}
|
||||
|
||||
<script type="text/javascript">
|
||||
{if $form.is_pay_later.name}
|
||||
var pay_later_sel = "input#{$form.is_pay_later.name}";
|
||||
{/if}
|
||||
{literal}
|
||||
CRM.$(function($) {
|
||||
|
||||
function refresh() {
|
||||
{/literal}{if $form.is_pay_later.name}{literal}
|
||||
var is_pay_later = $(pay_later_sel).prop("checked");
|
||||
{/literal}{else}
|
||||
var is_pay_later = false;
|
||||
{/if}{literal}
|
||||
$(".credit_card_info-group").toggle(!is_pay_later);
|
||||
$(".pay-later-instructions").toggle(is_pay_later);
|
||||
$("div.billingNameInfo-section .description").html(is_pay_later ? "Enter the billing address at which you can be invoiced." : "Enter the name as shown on your credit or debit card, and the billing address for this card.");
|
||||
}
|
||||
{/literal}{if $form.is_pay_later.name}{literal}
|
||||
$(pay_later_sel).change(function() {
|
||||
refresh();
|
||||
});
|
||||
{/literal}{/if}{literal}
|
||||
$("input#source").prop('disabled', true);
|
||||
$(".payment_type-section :radio").change(function() {
|
||||
var sel = $(this).attr("id");
|
||||
$(".check_number-section").toggle(
|
||||
$(this).is(":checked") &&
|
||||
$("label[for="+sel+"]").html() == "{/literal}{ts escape='js'}Check{/ts}{literal}"
|
||||
);
|
||||
});
|
||||
refresh();
|
||||
});
|
||||
{/literal}
|
||||
</script>
|
||||
|
||||
<div id="crm-submit-buttons" class="crm-submit-buttons">
|
||||
{include file="CRM/common/formButtons.tpl" location="bottom"}
|
||||
</div>
|
||||
|
||||
{include file="CRM/Event/Cart/Form/viewCartLink.tpl"}
|
|
@ -0,0 +1,167 @@
|
|||
{include file="CRM/common/TrackingFields.tpl"}
|
||||
|
||||
<div class="crm-block crm-event-thankyou-form-block">
|
||||
<p>
|
||||
{ts}This is your receipt of payment made for the following event registration.{/ts}
|
||||
</p>
|
||||
<p>
|
||||
{ts 1=$transaction_id 2=$transaction_date|date_format:"%D %I:%M %p %Z"}Your order number is <strong>#%1</strong>. Please print this confirmation for your records. You will receieve a confirmation email with the information below. Information about the workshops will be sent separately to each participant. Here's a summary of your transaction placed on %2:{/ts}
|
||||
</p>
|
||||
{if $pay_later_receipt && $is_pay_later}
|
||||
<p>
|
||||
{$pay_later_receipt}
|
||||
</p>
|
||||
{/if}
|
||||
{if $payment_required}
|
||||
<div class="crm-group billing_name_address-group">
|
||||
<div class="header-dark">
|
||||
{ts}Billing Name and Address{/ts}
|
||||
</div>
|
||||
<div class="crm-section no-label billing_name-section">
|
||||
<div class="content">{$billing_name}</div>
|
||||
<div class="clear"></div>
|
||||
</div>
|
||||
<div class="crm-section no-label billing_address-section">
|
||||
<div class="content">
|
||||
{$billing_street_address}<br/>
|
||||
{$billing_city}, {$billing_state} {$billing_postal_code}
|
||||
</div>
|
||||
<div class="clear"></div>
|
||||
</div>
|
||||
</div>
|
||||
{if $credit_card_type}
|
||||
<div class="crm-group credit_card-group">
|
||||
<div class="header-dark">
|
||||
{ts}Credit Card Information{/ts}
|
||||
</div>
|
||||
<div class="crm-section no-label credit_card_details-section">
|
||||
<div class="content">{$credit_card_type}</div>
|
||||
<div class="content">{$credit_card_number}</div>
|
||||
<div class="content">{ts}Expires{/ts}: {$credit_card_exp_date.M}/{$credit_card_exp_date.Y}
|
||||
<div class="clear"></div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
{/if}
|
||||
{/if}
|
||||
<table>
|
||||
<thead>
|
||||
<tr style="border-bottom: 1px solid #ccc">
|
||||
<th class="event-title">
|
||||
{ts}Event{/ts}
|
||||
</th>
|
||||
<th class="participants-column">
|
||||
{ts}Participants{/ts}
|
||||
</th>
|
||||
<th class="cost">
|
||||
{ts}Price{/ts}
|
||||
</th>
|
||||
<th class="amount">
|
||||
{ts}Total{/ts}
|
||||
</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
{foreach from=$line_items item=line_item}
|
||||
<tr class="event-line-item {$line_item.class}">
|
||||
<td class="event-info">
|
||||
<div class="event-title"><strong>{$line_item.event->title}</strong></div>
|
||||
{if $line_item.event->is_show_location}
|
||||
<div class="event-location">
|
||||
{if $line_item.location.address.1.name}
|
||||
{$line_item.location.address.1.name}
|
||||
{/if}
|
||||
{if $line_item.location.address.1.street_address}
|
||||
{$line_item.location.address.1.street_address}
|
||||
{/if}
|
||||
{if $line_item.location.address.1.supplemental_address_1}
|
||||
{$line_item.location.address.1.supplemental_address_1}
|
||||
{/if}
|
||||
{if $line_item.location.address.1.supplemental_address_2}
|
||||
{$line_item.location.address.1.supplemental_address_2}
|
||||
{/if}
|
||||
{if $line_item.location.address.1.supplemental_address_3}
|
||||
{$line_item.location.address.1.supplemental_address_3}
|
||||
{/if}
|
||||
{if $line_item.location.address.1.city}
|
||||
{$line_item.location.address.1.city}, {$line_item.location.address.1.state_province} {$line_item.location.address.1.postal_code}
|
||||
{/if}
|
||||
</div>
|
||||
{/if}{*End of isShowLocation condition*}
|
||||
<div class="event-data">
|
||||
{$line_item.event->start_date|date_format:"%D %I:%M %p"} -
|
||||
{$line_item.event->end_date|date_format:"%I:%M %p"}
|
||||
</div>
|
||||
</td>
|
||||
<td class="participants-column">
|
||||
{$line_item.num_participants}<br />
|
||||
{if $line_item.num_participants > 0}
|
||||
<div class="participants" style="padding-left: 10px;">
|
||||
{foreach from=$line_item.participants item=participant}
|
||||
{$participant.display_name}<br />
|
||||
{/foreach}
|
||||
</div>
|
||||
{/if}
|
||||
{if $line_item.num_waiting_participants > 0}
|
||||
{ts}Waitlisted:{/ts}<br/>
|
||||
<div class="participants" style="padding-left: 10px;">
|
||||
{foreach from=$line_item.waiting_participants item=participant}
|
||||
{$participant.display_name}<br />
|
||||
{/foreach}
|
||||
</div>
|
||||
{/if}
|
||||
</td>
|
||||
<td class="cost">
|
||||
{$line_item.cost|crmMoney:$currency|string_format:"%10s"}
|
||||
</td>
|
||||
<td class="amount">
|
||||
{$line_item.amount|crmMoney:$currency|string_format:"%10s"}
|
||||
</td>
|
||||
</tr>
|
||||
{/foreach}
|
||||
</tbody>
|
||||
<tfoot>
|
||||
{if $discounts}
|
||||
<tr>
|
||||
<td>
|
||||
</td>
|
||||
<td>
|
||||
</td>
|
||||
<td>
|
||||
{ts}Subtotal{/ts}:
|
||||
</td>
|
||||
<td>
|
||||
{$sub_total|crmMoney:$currency|string_format:"%10s"}
|
||||
</td>
|
||||
</tr>
|
||||
{foreach from=$discounts key=myId item=i}
|
||||
<tr>
|
||||
<td>
|
||||
{$i.title}
|
||||
</td>
|
||||
<td>
|
||||
</td>
|
||||
<td>
|
||||
</td>
|
||||
<td>
|
||||
-{$i.amount|crmMoney:$currency|string_format:"%10s"}
|
||||
</td>
|
||||
</tr>
|
||||
{/foreach}
|
||||
{/if}
|
||||
<tr>
|
||||
<td>
|
||||
</td>
|
||||
<td>
|
||||
</td>
|
||||
<td class="total">
|
||||
<strong>{ts}Total{/ts}:</strong>
|
||||
</td>
|
||||
<td class="total">
|
||||
<strong> {$total|crmMoney:$currency|string_format:"%10s"}</strong>
|
||||
</td>
|
||||
</tr>
|
||||
</tfoot>
|
||||
</table>
|
||||
<p>{ts}If you have questions about the status of your registration or purchase please contact us.{/ts}</p>
|
||||
</div>
|
|
@ -0,0 +1,4 @@
|
|||
{capture assign=cartURL}{crmURL p='civicrm/event/view_cart' q="reset=1"}{/capture}
|
||||
<div>
|
||||
{ts 1=$cartURL}<a href='%1'>Return to Cart</a>{/ts}
|
||||
</div>
|
|
@ -0,0 +1,3 @@
|
|||
<div>
|
||||
Foo!
|
||||
</div>
|
|
@ -0,0 +1,29 @@
|
|||
<table>
|
||||
<thead>
|
||||
<tr>
|
||||
<th>
|
||||
</th>
|
||||
<th>
|
||||
</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
{foreach from=$events_in_carts item=event_in_cart}
|
||||
{if !$event_in_cart.main_conference_event_id}
|
||||
<tr>
|
||||
<td>
|
||||
<a href="{crmURL p='civicrm/event/info' q="reset=1&id=`$event_in_cart.event.id`"}" title="{ts}View event info page{/ts}" class="bold">{$event_in_cart.event.title}</a>
|
||||
</td>
|
||||
<td>
|
||||
<a title="Remove From Cart" class="action-item" href="{crmURL p='civicrm/event/remove_from_cart' q="reset=1&id=`$event_in_cart.event.id`"}">{ts}Remove{/ts}</a>
|
||||
</td>
|
||||
</tr>
|
||||
{/if}
|
||||
{/foreach}
|
||||
</tbody>
|
||||
</table>
|
||||
{if $events_count > 0}
|
||||
<a href="{crmURL p='civicrm/event/cart_checkout' }" title="Check Out" class="button crm-check-out-button"><span>{ts}Check Out{/ts}</span></a>
|
||||
<br /><br />
|
||||
{/if}
|
||||
<a href="{crmURL p="civicrm/event/ical" q="reset=1&page=1&html=1"}">« Back to Event List</a>
|
258
sites/all/modules/civicrm/templates/CRM/Event/Form/EventFees.tpl
Normal file
258
sites/all/modules/civicrm/templates/CRM/Event/Form/EventFees.tpl
Normal file
|
@ -0,0 +1,258 @@
|
|||
{*
|
||||
+--------------------------------------------------------------------+
|
||||
| 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 |
|
||||
+--------------------------------------------------------------------+
|
||||
*}
|
||||
{assign var=isRecordPayment value=1 }
|
||||
{if $paid} {* We retrieve this tpl when event is selected - keep it empty if event is not paid *}
|
||||
<table class="form-layout">
|
||||
{if $priceSet}
|
||||
{if $discount and $hasPayment}
|
||||
<tr class="crm-event-eventfees-form-block-discount"><td class="label"> {ts}Discount Set{/ts}</td><td class="view-value">{$discount}</td></tr>
|
||||
{elseif $form.discount_id.label}
|
||||
<tr class="crm-event-eventfees-form-block-discount_id"><td class="label"> {$form.discount_id.label}</td><td>{$form.discount_id.html}</td></tr>
|
||||
{/if}
|
||||
{if $action eq 2 and $hasPayment} {* Updating *}
|
||||
{if $lineItem}
|
||||
<tr class="crm-event-eventfees-form-block-line_items">
|
||||
<td class="label">{ts}Selections{/ts}</td>
|
||||
<td>{include file="CRM/Price/Page/LineItem.tpl" context="Event"}</td>
|
||||
</tr>
|
||||
{else}
|
||||
<tr class="crm-event-eventfees-form-block-event_level">
|
||||
<td class="label">{ts}Event Level{/ts}</td>
|
||||
<td>{$fee_level} {if $fee_amount}- {$fee_amount|crmMoney:$fee_currency}{/if}</td>
|
||||
</tr>
|
||||
{/if}
|
||||
<tr>
|
||||
<td></td>
|
||||
<td>
|
||||
<a class="action-item crm-hover-button" href='{crmURL p="civicrm/event/participant/feeselection" q="reset=1&id=`$participantId`&cid=`$contactId`&action=update"}'><i class="crm-i fa-pencil"></i> {ts}Change Selections{/ts}</a>
|
||||
</td>
|
||||
</tr>
|
||||
{else} {* New participant *}
|
||||
{if $priceSet.fields}
|
||||
<fieldset id="priceset" class="crm-group priceset-group">
|
||||
<tr class="crm-event-eventfees-form-block-price_set_amount">
|
||||
<td class="label" style="padding-top: 10px;">{$form.amount.label}</td>
|
||||
<td class="view-value"><table class="form-layout">{include file="CRM/Price/Form/PriceSet.tpl" extends="Event"}</td>
|
||||
</fieldset>
|
||||
{else}
|
||||
{assign var=isRecordPayment value=0 }
|
||||
<div class='messages status'>{ts}No active price fields found for this event!{/ts}</div>
|
||||
{/if}
|
||||
</table>
|
||||
{/if}
|
||||
</td>
|
||||
</tr>
|
||||
{/if}
|
||||
|
||||
{if $accessContribution and ! $participantMode and ($action neq 2 or !$rows.0.contribution_id or $onlinePendingContributionId) and $isRecordPayment and ! $registeredByParticipantId }
|
||||
<tr class="crm-event-eventfees-form-block-record_contribution">
|
||||
<td class="label">{$form.record_contribution.label}</td>
|
||||
<td>{$form.record_contribution.html}<br />
|
||||
<span class="description">{ts}Check this box to enter payment information. You will also be able to generate a customized receipt.{/ts}</span>
|
||||
</td>
|
||||
</tr>
|
||||
<tr id="payment_information" class="crm-event-eventfees-form-block-payment_information">
|
||||
<td class ='html-adjust' colspan=2>
|
||||
<fieldset><legend>{ts}Payment Information{/ts}</legend>
|
||||
<table id="recordContribution" class="form-layout" style="width:auto;">
|
||||
<tr class="crm-event-eventfees-form-block-financial_type_id">
|
||||
<td class="label">{$form.financial_type_id.label}<span class="crm-marker"> *</span></td>
|
||||
<td>{$form.financial_type_id.html}<br /><span class="description">{ts}Select the appropriate financial type for this payment.{/ts}</span></td>
|
||||
</tr>
|
||||
<tr class="crm-event-eventfees-form-block-total_amount"><td class="label">{$form.total_amount.label}</td><td>{$form.total_amount.html|crmMoney:$currency}</td></tr>
|
||||
<tr>
|
||||
<td class="label" >{$form.receive_date.label}</td>
|
||||
<td>{include file="CRM/common/jcalendar.tpl" elementName=receive_date}</td>
|
||||
</tr>
|
||||
<tr class="crm-event-eventfees-form-block-payment_instrument_id"><td class="label">{$form.payment_instrument_id.label}<span class="crm-marker"> *</span></td><td>{$form.payment_instrument_id.html} {help id="payment_instrument_id" file="CRM/Contribute/Page/Tab.hlp"}</td></tr>
|
||||
{if $showTransactionId }
|
||||
<tr class="crm-event-eventfees-form-block-trxn_id"><td class="label">{$form.trxn_id.label}</td><td>{$form.trxn_id.html}</td></tr>
|
||||
{/if}
|
||||
<tr class="crm-event-eventfees-form-block-contribution_status_id"><td class="label">{$form.contribution_status_id.label}</td><td>{$form.contribution_status_id.html}</td></tr>
|
||||
</table>
|
||||
</fieldset>
|
||||
</td>
|
||||
</tr>
|
||||
{/if}
|
||||
</table>
|
||||
|
||||
{/if}
|
||||
|
||||
{if $action neq 2}
|
||||
{include file='CRM/Core/BillingBlockWrapper.tpl'}
|
||||
{/if}
|
||||
|
||||
{if ($email OR $batchEmail) and $outBound_option != 2}
|
||||
<fieldset id="send_confirmation_receipt"><legend>{if $paid}{ts}Registration Confirmation and Receipt{/ts}{else}{ts}Registration Confirmation{/ts}{/if}</legend>
|
||||
<table class="form-layout" style="width:auto;">
|
||||
<tr class="crm-event-eventfees-form-block-send_receipt">
|
||||
<td class="label">{if $paid}{ts}Send Confirmation and Receipt{/ts}{else}{ts}Send Confirmation{/ts}{/if}</td>
|
||||
<td>{$form.send_receipt.html}<br>
|
||||
{if $paid}
|
||||
<span class="description">{ts 1=$email}Automatically email a confirmation and receipt to %1?{/ts}</span></td>
|
||||
{else}
|
||||
<span class="description">{ts 1=$email}Automatically email a confirmation to %1?{/ts}</span></td>
|
||||
{/if}
|
||||
</tr>
|
||||
<tr id="from-email" class="crm-event-eventfees-form-block-from_email_address">
|
||||
<td class="label">{$form.from_email_address.label}</td>
|
||||
<td>{$form.from_email_address.html} {help id ="id-from_email" file="CRM/Contact/Form/Task/Email.hlp"}</td>
|
||||
</tr>
|
||||
<tr id='notice' class="crm-event-eventfees-form-block-receipt_text">
|
||||
<td class="label">{$form.receipt_text.label}</td>
|
||||
<td><span class="description">
|
||||
{ts}Enter a message you want included at the beginning of the confirmation email. EXAMPLE: 'Thanks for registering for this event.'{/ts}
|
||||
</span><br />
|
||||
{$form.receipt_text.html|crmAddClass:huge}
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</fieldset>
|
||||
{elseif $context eq 'standalone' and $outBound_option != 2 }
|
||||
<fieldset id="email-receipt" style="display:none;"><legend>{if $paid}{ts}Registration Confirmation and Receipt{/ts}{else}{ts}Registration Confirmation{/ts}{/if}</legend>
|
||||
<table class="form-layout" style="width:auto;">
|
||||
<tr class="crm-event-eventfees-form-block-send_receipt">
|
||||
<td class="label">{if $paid}{ts}Send Confirmation and Receipt{/ts}{else}{ts}Send Confirmation{/ts}{/if}</td>
|
||||
<td>{$form.send_receipt.html}<br>
|
||||
{if $paid}
|
||||
<span class="description">{ts 1='<span id="email-address"></span>'}Automatically email a confirmation and receipt to %1?{/ts}</span>
|
||||
{else}
|
||||
<span class="description">{ts 1='<span id="email-address"></span>'}Automatically email a confirmation to %1?{/ts}</span>
|
||||
{/if}
|
||||
</td>
|
||||
</tr>
|
||||
<tr id="from-email" class="crm-event-eventfees-form-block-from_email_address">
|
||||
<td class="label">{$form.from_email_address.label}</td>
|
||||
<td>{$form.from_email_address.html} {help id ="id-from_email" file="CRM/Contact/Form/Task/Email.hlp"}</td>
|
||||
</tr>
|
||||
<tr id='notice' class="crm-event-eventfees-form-block-receipt_text">
|
||||
<td class="label">{$form.receipt_text.label}</td>
|
||||
<td><span class="description">
|
||||
{ts}Enter a message you want included at the beginning of the confirmation email. EXAMPLE: 'Thanks for registering for this event.'{/ts}
|
||||
</span><br />
|
||||
{$form.receipt_text.html|crmAddClass:huge}</td>
|
||||
</tr>
|
||||
</table>
|
||||
</fieldset>
|
||||
{/if}
|
||||
|
||||
{if ($email and $outBound_option != 2) OR $context eq 'standalone' } {* Send receipt field only present if contact has a valid email address. *}
|
||||
{include file="CRM/common/showHideByFieldValue.tpl"
|
||||
trigger_field_id ="send_receipt"
|
||||
trigger_value =""
|
||||
target_element_id ="notice"
|
||||
target_element_type ="table-row"
|
||||
field_type ="radio"
|
||||
invert = 0
|
||||
}
|
||||
{include file="CRM/common/showHideByFieldValue.tpl"
|
||||
trigger_field_id ="send_receipt"
|
||||
trigger_value =""
|
||||
target_element_id ="from-email"
|
||||
target_element_type ="table-row"
|
||||
field_type ="radio"
|
||||
invert = 0
|
||||
}
|
||||
{/if}
|
||||
|
||||
{if $context eq 'standalone' and $outBound_option != 2 }
|
||||
<script type="text/javascript">
|
||||
{literal}
|
||||
CRM.$(function($) {
|
||||
var $form = $("form.{/literal}{$form.formClass}{literal}");
|
||||
$("#contact_id", $form).change(checkEmail);
|
||||
checkEmail();
|
||||
|
||||
function checkEmail( ) {
|
||||
var data = $("#contact_id", $form).select2('data');
|
||||
if (data && data.extra && data.extra.email && data.extra.email.length) {
|
||||
$("#email-receipt", $form).show();
|
||||
if ($("#send_receipt", $form).is(':checked')) {
|
||||
$("#notice", $form).show();
|
||||
}
|
||||
$("#email-address", $form).html(data.extra.email);
|
||||
}
|
||||
else {
|
||||
$("#email-receipt, #notice", $form).hide();
|
||||
}
|
||||
}
|
||||
});
|
||||
{/literal}
|
||||
</script>
|
||||
{/if}
|
||||
|
||||
{if $onlinePendingContributionId}
|
||||
<script type="text/javascript">
|
||||
{literal}
|
||||
function confirmStatus( pStatusId, cStatusId ) {
|
||||
if ( (pStatusId == cj("#status_id").val() ) && (cStatusId == cj("#contribution_status_id").val()) ) {
|
||||
var allow = confirm( '{/literal}{ts escape='js'}The Payment Status for this participant is Completed. The Participant Status is set to Pending (pay later). Click Cancel if you want to review or modify these values before saving this record{/ts}{literal}.' );
|
||||
if ( !allow ) return false;
|
||||
}
|
||||
}
|
||||
|
||||
function checkCancelled( statusId, pStatusId, cStatusId ) {
|
||||
//selected participant status is 'cancelled'
|
||||
if ( statusId == pStatusId ) {
|
||||
cj("#contribution_status_id").val( cStatusId );
|
||||
|
||||
//unset value for send receipt check box.
|
||||
cj("#send_receipt").prop("checked", false );
|
||||
cj("#send_confirmation_receipt").hide( );
|
||||
|
||||
// set receive data to null.
|
||||
clearDateTime( 'receive_date' );
|
||||
} else {
|
||||
cj("#send_confirmation_receipt").show( );
|
||||
}
|
||||
sendNotification();
|
||||
}
|
||||
|
||||
{/literal}
|
||||
</script>
|
||||
{/if}
|
||||
{if $showFeeBlock && $feeBlockPaid && ! $priceSet && $action neq 2}
|
||||
<script>
|
||||
{literal}
|
||||
fillTotalAmount( );
|
||||
|
||||
function fillTotalAmount( totalAmount ) {
|
||||
if ( !totalAmount ) {
|
||||
var amountVal = {/literal}{if $form.amount.value}{$form.amount.value}{else}0{/if}{literal};
|
||||
if ( amountVal > 0 ) {
|
||||
var eventFeeBlockValues = {/literal}{$eventFeeBlockValues}{literal};
|
||||
totalAmount = eval('eventFeeBlockValues.amount_id_'+ amountVal);
|
||||
} else {
|
||||
totalAmount = '';
|
||||
}
|
||||
}
|
||||
cj('#total_amount').val( totalAmount );
|
||||
}
|
||||
{/literal}
|
||||
</script>
|
||||
{/if}
|
||||
|
||||
{* ADD mode if *}
|
|
@ -0,0 +1,61 @@
|
|||
{*
|
||||
+--------------------------------------------------------------------+
|
||||
| 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="crm-block crm-form-block crm-event-conference-form-block">
|
||||
<div class="crm-submit-buttons">
|
||||
{include file="CRM/common/formButtons.tpl" location="top"}
|
||||
</div>
|
||||
|
||||
<table class="form-layout">
|
||||
<tr class="crm-event-conference-form-block-title">
|
||||
<td class="label">{$form.title.label}</td>
|
||||
<td>{$form.title.html}</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<div>
|
||||
<table id="parent_event_name_wrapper" class="form-layout">
|
||||
<tr class="crm-event-conference-form-block-parent_event_name">
|
||||
<td class="label">{$form.parent_event_id.label}</td>
|
||||
<td>
|
||||
{$form.parent_event_id.html|crmAddClass:huge}
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
|
||||
<div>
|
||||
<table id="conference_slot_id_wrapper" class="form-layout">
|
||||
<tr class="crm-event-conference-form-block-slot_label_id">
|
||||
<td class="label">{$form.slot_label_id.label}</td>
|
||||
<td>{if $action == 2}{include file='CRM/Core/I18n/Dialog.tpl' table='civicrm_event' field='slot_label_id' id=$id}{/if}{$form.slot_label_id.html|crmAddClass:big}
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
<div class="crm-submit-buttons">
|
||||
{include file="CRM/common/formButtons.tpl" location="bottom"}
|
||||
</div>
|
||||
</div>
|
|
@ -0,0 +1,110 @@
|
|||
{*
|
||||
+--------------------------------------------------------------------+
|
||||
| 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 $hasParent || $isRepeatingEntity || $scheduleReminderId}
|
||||
{capture assign='entity_type'}{$recurringEntityType|lower}{/capture}
|
||||
<script type="text/template" id="recurring-dialog-tpl">
|
||||
<div class="recurring-dialog">
|
||||
<h4>{ts}How should this change affect others in the series?{/ts}</h4>
|
||||
<div>
|
||||
<input type="radio" id="recur-only-this-entity" name="recur_mode" value="1">
|
||||
<label for="recur-only-this-entity">{ts 1=$entity_type}Only this %1{/ts}</label>
|
||||
<div class="description">{ts}All others in the series will remain unchanged.{/ts}</div>
|
||||
|
||||
<input type="radio" id="recur-this-and-all-following-entity" name="recur_mode" value="2">
|
||||
<label for="recur-this-and-all-following-entity">{ts 1=$entity_type}This %1 onwards{/ts}</label>
|
||||
<div class="description">{ts 1=$entity_type}Change applies to this %1 and all that come after it.{/ts}</div>
|
||||
|
||||
<input type="radio" id="recur-all-entity" name="recur_mode" value="3">
|
||||
<label for="recur-all-entity">{ts 1=$entity_type}Every %1{/ts}</label>
|
||||
<div class="description">{ts 1=$entity_type}Change applies to every %1 in the series.{/ts}</div>
|
||||
</div>
|
||||
<div class="status help"><i class="crm-i fa-info-circle"></i> {ts}Changes to date or time will <em>not</em> be applied to others in the series.{/ts}</div>
|
||||
</div>
|
||||
</script>
|
||||
{literal}
|
||||
<script type="text/javascript">
|
||||
CRM.$(function($) {
|
||||
var $form, formClass,
|
||||
/** Add your linked entity mapper here **/
|
||||
mapper = {
|
||||
'CRM_Event_Form_ManageEvent_EventInfo': '',
|
||||
'CRM_Event_Form_ManageEvent_Location': '',
|
||||
'CRM_Event_Form_ManageEvent_Fee': '',
|
||||
'CRM_Event_Form_ManageEvent_Registration': '',
|
||||
'CRM_Friend_Form_Event': 'civicrm_tell_friend',
|
||||
'CRM_PCP_Form_Event': 'civicrm_pcp_block',
|
||||
'CRM_Activity_Form_Activity': ''
|
||||
};
|
||||
|
||||
function cascadeChangesDialog() {
|
||||
CRM.confirm({
|
||||
title: "{/literal}{ts escape='js' 1=$entity_type}Update repeating %1{/ts}{literal}",
|
||||
message: $('#recurring-dialog-tpl').html()
|
||||
})
|
||||
.on('crmConfirm:yes', updateMode)
|
||||
.on('click change', 'input[name=recur_mode]', function() {
|
||||
$('button[data-op=yes]').prop('disabled', false);
|
||||
})
|
||||
.parent().find('button[data-op=yes]').prop('disabled', true)
|
||||
}
|
||||
|
||||
// Intercept form submissions and check if they will impact the recurring entity
|
||||
// This ought to attach the handler to the the dialog if we're in a popup, or the page wrapper if we're not
|
||||
$('#recurring-dialog-tpl').closest('.crm-container').on('click', '.crm-form-submit.validate', function(e) {
|
||||
$form = $(this).closest('form');
|
||||
var className = ($form.attr('class') || '').match(/CRM_\S*/);
|
||||
formClass = className && className[0];
|
||||
if (formClass && mapper.hasOwnProperty(formClass) &&
|
||||
// For activities, only show this if the changes were not made to the recurring settings
|
||||
(formClass !== 'CRM_Activity_Form_Activity' || !CRM.utils.initialValueChanged('.crm-core-form-recurringentity-block'))
|
||||
) {
|
||||
cascadeChangesDialog();
|
||||
e.preventDefault();
|
||||
}
|
||||
});
|
||||
|
||||
function updateMode() {
|
||||
var mode = $('input[name=recur_mode]:checked', this).val(),
|
||||
entityID = parseInt('{/literal}{$entityID}{literal}'),
|
||||
entityTable = '{/literal}{$entityTable}{literal}';
|
||||
if (entityID != "" && mode && mapper.hasOwnProperty(formClass) && entityTable !="") {
|
||||
$.getJSON(CRM.url("civicrm/ajax/recurringentity/update-mode",
|
||||
{mode: mode, entityId: entityID, entityTable: entityTable, linkedEntityTable: mapper[formClass]})
|
||||
).done(function (result) {
|
||||
if (result.status != "" && result.status == 'Done') {
|
||||
$form.submit();
|
||||
} else if (result.status != "" && result.status == 'Error') {
|
||||
if (confirm("{/literal}{ts escape='js' 1=$entity_type}Mode could not be updated, save only this %1?{/ts}{literal}")) {
|
||||
$form.submit();
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
});
|
||||
</script>
|
||||
{/literal}
|
||||
{/if}
|
|
@ -0,0 +1,45 @@
|
|||
{*
|
||||
+--------------------------------------------------------------------+
|
||||
| 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 confirmation of delete for event *}
|
||||
<div class="crm-block crm-form-block crm-event-manage-delete-form-block">
|
||||
<div class="crm-submit-buttons">
|
||||
{include file="CRM/common/formButtons.tpl" location="top"}
|
||||
</div>
|
||||
<div class="messages status no-popup">
|
||||
<div class="icon inform-icon"></div>
|
||||
<div>
|
||||
{if $isTemplate}
|
||||
{ts}Warning: Deleting this event template will also delete associated Event Registration Page and Event Fee configurations.{/ts} {ts}This action cannot be undone.{/ts} {ts}Do you want to continue?{/ts}
|
||||
{else}
|
||||
{ts}Warning: Deleting this event will also delete associated Event Registration Page and Event Fee configurations.{/ts} {ts}This action cannot be undone.{/ts} {ts}Do you want to continue?{/ts}
|
||||
{/if}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="crm-submit-buttons">
|
||||
{include file="CRM/common/formButtons.tpl" location="bottom"}
|
||||
</div>
|
||||
</div>
|
|
@ -0,0 +1,127 @@
|
|||
{*
|
||||
+--------------------------------------------------------------------+
|
||||
| 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-template-title-title"}
|
||||
{ts}Title{/ts}
|
||||
{/htxt}
|
||||
{htxt id="id-template-title"}
|
||||
{ts}This is the title that users will see when they are selecting an event template to clone for a new event. It is <em>not</em> the title of the event itself.{/ts}
|
||||
{/htxt}
|
||||
|
||||
{htxt id="id-select-template-title"}
|
||||
{ts}Template{/ts}
|
||||
{/htxt}
|
||||
{htxt id="id-select-template"}
|
||||
{if $params.isTemplate}
|
||||
{ts}You can select an existing Event Template as the basis for the new template you are creating, or you can create the template from scratch.{/ts}
|
||||
{else}
|
||||
{ts}You can select a pre-configured Event Template to streamline setting up your new event. The information and configuration settings from the selected template will be automatically copied to this new event. You can then add and modify as needed for this specific event instance. Event templates do NOT store the event date and time - so you will definitely need to set those on this page.{/ts}
|
||||
{/if}
|
||||
{/htxt}
|
||||
|
||||
{htxt id="id-participant-role-title"}
|
||||
{ts}Participant Role{/ts}
|
||||
{/htxt}
|
||||
{htxt id="id-participant-role"}
|
||||
<p>{ts}The Role you select here is automatically assigned to people when they register online for this event (usually the default 'Attendee' role).{/ts}</p>
|
||||
<p>{ts}You can also allow people to choose a Role by creating a Profile with the Participant Role field. Then include that Profile when you configure the Online Registration page for this event.{/ts}</p>
|
||||
{/htxt}
|
||||
|
||||
{htxt id="id-listing-title"}
|
||||
{ts}Participant Listing{/ts}
|
||||
{/htxt}
|
||||
{htxt id="id-listing"}
|
||||
{ts}To allow users to see a listing of participants, set this field to 'Name' (list names only), 'Name and Email', or 'Name, Status and Register Date'.{/ts}
|
||||
{if !$params.isTemplate}
|
||||
{ts}You will need to set Access Control permissions to include 'view event participants' for any Roles you want to access this listing.{/ts}
|
||||
{if $config->userSystem->is_drupal || $config->userFramework EQ 'WordPress'}
|
||||
{if $params.action eq 2 AND $params.entityId}
|
||||
{ts}Create links to the listing page by copying the following URL, and adding it to the Event Description below and / or as a menu item or links elsewhere on your site:{/ts}<br />
|
||||
<em>{crmURL a=1 p='civicrm/event/participant' q="reset=1&id=`$params.entityId`"}</em>
|
||||
{else} {* Creating new event *}
|
||||
{ts}After adding your event, create links to the listing page by copying the URL provided in the 'Participant Listing' section of the Configure Event page.{/ts}
|
||||
{/if}
|
||||
{elseif $config->userFramework EQ 'Joomla'}
|
||||
{ts 1=$params.entityId}Then create front-end links to the Participant Listing page using the Menu Manager. Select <strong>Participant Listing Page</strong> and enter <strong>%1</strong> for the Event ID.{/ts}
|
||||
{/if}
|
||||
{/if}
|
||||
{/htxt}
|
||||
|
||||
{htxt id="id-max_participants-title"}
|
||||
{ts}Maximum Participants{/ts}
|
||||
{/htxt}
|
||||
{htxt id="id-max_participants"}
|
||||
<p>{ts}Optionally set a maximum number of participants for this event.{/ts}</p>
|
||||
<p>{if $params.waitlist}
|
||||
{ts}You may allow users to join a waitlist when the event is full (by checking the box below).{/ts}
|
||||
{else}
|
||||
{ts}You may allow users to join a waitlist when the event is full. To enable this feature you must first enable the Participant Statuses used by the waitlist work-flow (click the pencil icon, or navigate to Administer » CiviEvent » Participant Statuses). Then reload this form and check 'Offer a Waitlist?'.{/ts}
|
||||
{/if}</p>
|
||||
<p>{ts}Otherwise, the registration link is hidden and the "Event Full Message"' is displayed when the maximum number of registrations is reached. Only participants with status types marked as 'counted' are included when checking if the event is full.{/ts}</p>
|
||||
{/htxt}
|
||||
|
||||
{htxt id="id-event_full_text-title"}
|
||||
{ts}Event-Full Message{/ts}
|
||||
{/htxt}
|
||||
{htxt id="id-event_full_text"}
|
||||
{ts}Text displayed on the Event Information page when the maximum number of registrations is reached (unless you are offering a waitlist). If online registration is enabled, this message will also be displayed if users attempt to register.{/ts}
|
||||
{/htxt}
|
||||
|
||||
{htxt id="id-has_waitlist-title"}
|
||||
{ts}Waitlist{/ts}
|
||||
{/htxt}
|
||||
{htxt id="id-has_waitlist"}
|
||||
{ts}Check this box to allow users to join a waitlist if the event is full. If a space becomes available, the first participant from the waitlist will move to 'Pending from waitlist' status, and will be sent an email with a link to complete their registration (including paying event fees - if any).{/ts}
|
||||
{/htxt}
|
||||
|
||||
{htxt id="id-help-waitlist_text-title"}
|
||||
{ts}Waitlist Text{/ts}
|
||||
{/htxt}
|
||||
{htxt id="id-help-waitlist_text"}
|
||||
{ts}This message is displayed on the event information and event registration pages when the event is full AND the waitlist feature is enabled.{/ts}
|
||||
{/htxt}
|
||||
|
||||
{htxt id="id-is_map-title"}
|
||||
{ts}Map{/ts}
|
||||
{/htxt}
|
||||
{htxt id="id-is_map"}
|
||||
{capture assign=mapURL}{crmURL p='civicrm/admin/setting/mapping' q="reset=1"}{/capture}
|
||||
{ts 1=$mapURL}Include map presenting event location on event information page? (A map provider must be configured under <a href='%1'>Administer > System Settings > Mapping and Geocoding</a>){/ts}
|
||||
{/htxt}
|
||||
|
||||
{htxt id="id-is_public-title"}
|
||||
{ts}Public Events{/ts}
|
||||
{/htxt}
|
||||
{htxt id="id-is_public"}
|
||||
<p>{ts}When enabled, this event will be included in iCalendar feeds and displayed on your site's "Upcoming Events" block.{/ts}</p>
|
||||
{/htxt}
|
||||
|
||||
{htxt id="id-is_share-title"}
|
||||
{ts}Social Sharing{/ts}
|
||||
{/htxt}
|
||||
{htxt id="id-is_share"}
|
||||
<p>{ts}When enabled, links allowing people to share this event with their social network will be displayed (e.g. Facebook "Like", Google+, and Twitter).{/ts}</p>
|
||||
<p>{ts}Social media links will be included on the Event Info page, Thank-you page, Tell-a-Friend page (if enabled), and in event confirmation emails.{/ts}</p>
|
||||
{/htxt}
|
|
@ -0,0 +1,183 @@
|
|||
{*
|
||||
+--------------------------------------------------------------------+
|
||||
| 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 |
|
||||
+--------------------------------------------------------------------+
|
||||
*}
|
||||
{* Step 1 of New Event Wizard, and Edit Event Info form. *}
|
||||
|
||||
<div class="crm-block crm-form-block crm-event-manage-eventinfo-form-block">
|
||||
{assign var=eventID value=$id}
|
||||
<div class="crm-submit-buttons">
|
||||
{include file="CRM/common/formButtons.tpl" location="top"}
|
||||
</div>
|
||||
<table class="form-layout-compressed">
|
||||
{if $form.template_id}
|
||||
<tr class="crm-event-manage-eventinfo-form-block-template_id">
|
||||
<td class="label">{$form.template_id.label} {help id="id-select-template" isTemplate=$isTemplate}</td>
|
||||
<td>{$form.template_id.html}</td>
|
||||
</tr>
|
||||
{/if}
|
||||
{if $form.template_title}
|
||||
<tr class="crm-event-manage-eventinfo-form-block-template_title">
|
||||
<td class="label">{$form.template_title.label} {help id="id-template-title"}{if $action == 2}{include file='CRM/Core/I18n/Dialog.tpl' table='civicrm_event' field='template_title' id=$eventID}{/if}</td>
|
||||
<td>{$form.template_title.html}</td>
|
||||
</tr>
|
||||
{/if}
|
||||
<tr class="crm-event-manage-eventinfo-form-block-event_type_id">
|
||||
<td class="label">{$form.event_type_id.label}</td>
|
||||
<td>{$form.event_type_id.html}</td>
|
||||
</tr>
|
||||
|
||||
{* CRM-7362 --add campaign *}
|
||||
{include file="CRM/Campaign/Form/addCampaignToComponent.tpl"
|
||||
campaignTrClass="crm-event-manage-eventinfo-form-block-campaign_id"}
|
||||
|
||||
<tr class="crm-event-manage-eventinfo-form-block-default_role_id">
|
||||
<td class="label">{$form.default_role_id.label} {help id="id-participant-role"}</td>
|
||||
<td>{$form.default_role_id.html}
|
||||
</td>
|
||||
</tr>
|
||||
<tr class="crm-event-manage-eventinfo-form-block-participant_listing_id">
|
||||
<td class="label">{$form.participant_listing_id.label} {help id="id-listing" isTemplate=$isTemplate action=$action entityId=$entityId}</td>
|
||||
<td>{$form.participant_listing_id.html}</td>
|
||||
</tr>
|
||||
<tr class="crm-event-manage-eventinfo-form-block-title">
|
||||
<td class="label">{$form.title.label} {if $action == 2}{include file='CRM/Core/I18n/Dialog.tpl' table='civicrm_event' field='title' id=$eventID}{/if}</td>
|
||||
<td>{$form.title.html}<br />
|
||||
<span class="description"> {ts}Please use only alphanumeric, spaces, hyphens and dashes for event names.{/ts}
|
||||
</span></td>
|
||||
</tr>
|
||||
<tr class="crm-event-manage-eventinfo-form-block-summary">
|
||||
<td class="label">{$form.summary.label} {if $action == 2}{include file='CRM/Core/I18n/Dialog.tpl' table='civicrm_event' field='summary' id=$eventID}{/if}</td>
|
||||
<td>{$form.summary.html}</td>
|
||||
</tr>
|
||||
<tr class="crm-event-manage-eventinfo-form-block-description">
|
||||
<td class="label">{$form.description.label} {if $action == 2}{include file='CRM/Core/I18n/Dialog.tpl' table='civicrm_event' field='description' id=$eventID}{/if}</td>
|
||||
<td>{$form.description.html}</td>
|
||||
</tr>
|
||||
{if !$isTemplate}
|
||||
<tr class="crm-event-manage-eventinfo-form-block-start_date">
|
||||
<td class="label">{$form.start_date.label}</td>
|
||||
<td>{include file="CRM/common/jcalendar.tpl" elementName=start_date}</td>
|
||||
</tr>
|
||||
<tr class="crm-event-manage-eventinfo-form-block-end_date">
|
||||
<td class="label">{$form.end_date.label}</td>
|
||||
<td>{include file="CRM/common/jcalendar.tpl" elementName=end_date}</td>
|
||||
</tr>
|
||||
{/if}
|
||||
<tr class="crm-event-manage-eventinfo-form-block-max_participants">
|
||||
<td class="label">{$form.max_participants.label} {help id="id-max_participants" waitlist=$waitlist}</td>
|
||||
<td>
|
||||
{$form.max_participants.html|crmAddClass:four}
|
||||
{if call_user_func(array('CRM_Core_Permission','check'), 'administer CiviCRM') }
|
||||
<a class="crm-popup crm-hover-button" target="_blank" title="{ts}Edit Participant Status Options{/ts}" href="{crmURL p='civicrm/admin/participant_status' q='reset=1'}"><i class="crm-i fa-wrench"></i></a>
|
||||
{/if}
|
||||
</td>
|
||||
</tr>
|
||||
<tr id="id-waitlist" class="crm-event-manage-eventinfo-form-block-has_waitlist">
|
||||
{if $waitlist}
|
||||
<td class="label">{$form.has_waitlist.label}</td>
|
||||
<td>{$form.has_waitlist.html} {help id="id-has_waitlist"}</td>
|
||||
{/if}
|
||||
</tr>
|
||||
<tr id="id-event_full" class="crm-event-manage-eventinfo-form-block-event_full_text">
|
||||
<td class="label">{$form.event_full_text.label} {if $action == 2}{include file='CRM/Core/I18n/Dialog.tpl' table='civicrm_event' field='event_full_text' id=$eventID}{/if}
|
||||
<br />{help id="id-event_full_text"} </td>
|
||||
<td>{$form.event_full_text.html}</td>
|
||||
</tr>
|
||||
<tr id="id-waitlist-text" class="crm-event-manage-eventinfo-form-block-waitlist_text">
|
||||
{if $form.waitlist_text}
|
||||
<td class="label">{$form.waitlist_text.label} {if $action == 2}{include file='CRM/Core/I18n/Dialog.tpl' table='civicrm_event' field='waitlist_text' id=$eventID}{/if}<br />{help id="id-help-waitlist_text"}</td>
|
||||
<td>{$form.waitlist_text.html}</td>
|
||||
{/if}
|
||||
</tr>
|
||||
<tr class="crm-event-manage-eventinfo-form-block-is_map">
|
||||
<td> </td>
|
||||
<td>{$form.is_map.html} {$form.is_map.label} {help id="id-is_map"}</td>
|
||||
</tr>
|
||||
<tr class="crm-event-manage-eventinfo-form-block-is_public">
|
||||
<td> </td>
|
||||
<td>{$form.is_public.html} {$form.is_public.label} {help id="id-is_public"}</td>
|
||||
</tr>
|
||||
<tr class="crm-event-manage-eventinfo-form-block-is_share">
|
||||
<td> </td>
|
||||
<td>{$form.is_share.html} {$form.is_share.label} {help id="id-is_share"}
|
||||
</tr>
|
||||
<tr class="crm-event-manage-eventinfo-form-block-is_active">
|
||||
<td> </td>
|
||||
<td>{$form.is_active.html} {$form.is_active.label}</td>
|
||||
</tr>
|
||||
|
||||
{if $eventID}
|
||||
<tr>
|
||||
<td> </td>
|
||||
<td class="description">
|
||||
{if $config->userSystem->is_drupal || $config->userFramework EQ 'WordPress'}
|
||||
{ts}When this Event is active, create links to the Event Information page by copying and pasting the following URL:{/ts}<br />
|
||||
<strong>{crmURL a=1 fe=1 p='civicrm/event/info' q="reset=1&id=`$eventID`"}</strong>
|
||||
{elseif $config->userFramework EQ 'Joomla'}
|
||||
{ts 1=$eventID}When this Event is active, create front-end links to the Event Information page using the Menu Manager. Select <strong>Event Info Page</strong> and enter <strong>%1</strong> for the Event ID.{/ts}
|
||||
{/if}
|
||||
</td>
|
||||
</tr>
|
||||
{/if}
|
||||
<tr>
|
||||
<td> </td>
|
||||
<td> </td>
|
||||
</tr>
|
||||
</table>
|
||||
<div id="customData"></div>
|
||||
{*include custom data js file*}
|
||||
{include file="CRM/common/customData.tpl"}
|
||||
{literal}
|
||||
<script type="text/javascript">
|
||||
CRM.$(function($) {
|
||||
{/literal}
|
||||
{if $customDataSubType}
|
||||
CRM.buildCustomData( '{$customDataType}', {$customDataSubType} );
|
||||
{else}
|
||||
CRM.buildCustomData( '{$customDataType}' );
|
||||
{/if}
|
||||
{literal}
|
||||
});
|
||||
</script>
|
||||
{/literal}
|
||||
<div class="crm-submit-buttons">
|
||||
{include file="CRM/common/formButtons.tpl" location="bottom"}
|
||||
</div>
|
||||
{include file="CRM/common/showHide.tpl" elemType="table-row"}
|
||||
|
||||
{include file="CRM/Form/validate.tpl"}
|
||||
</div>
|
||||
{literal}
|
||||
<script type="text/javascript">
|
||||
CRM.$(function($) {
|
||||
var $form = $('form.{/literal}{$form.formClass}{literal}');
|
||||
$('#template_id', $form).change(function() {
|
||||
$(this).closest('.crm-ajax-container, #crm-main-content-wrapper')
|
||||
.crmSnippet({url: CRM.url('civicrm/event/add', {action: 'add', reset: 1, template_id: $(this).val()})})
|
||||
.crmSnippet('refresh');
|
||||
})
|
||||
});
|
||||
</script>
|
||||
{/literal}
|
|
@ -0,0 +1,366 @@
|
|||
{*
|
||||
+--------------------------------------------------------------------+
|
||||
| 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 adding event *}
|
||||
{capture assign="adminPriceSets"}{crmURL p='civicrm/admin/price' q="reset=1"}{/capture}
|
||||
{if !$paymentProcessor}
|
||||
{capture assign=ppUrl}{crmURL p='civicrm/admin/paymentProcessor' q="reset=1"}{/capture}
|
||||
<div class="status message">
|
||||
{ts 1=$ppUrl}No Payment Processor has been configured / enabled for your site. If this is a <strong>paid event</strong> AND you want users to be able to <strong>register and pay online</strong>, you will need to <a href='%1'>configure a Payment Processor</a> first. Then return to this screen and assign the processor to this event.{/ts} {docURL page="user/contributions/payment-processors"}
|
||||
<p>{ts}NOTE: Alternatively, you can enable the <strong>Pay Later</strong> option below without setting up a payment processor. All users will then be asked to submit payment offline (e.g. mail in a check, call in a credit card, etc.).{/ts}</p>
|
||||
</div>
|
||||
{/if}
|
||||
<div class="crm-block crm-form-block crm-event-manage-fee-form-block">
|
||||
<div class="crm-submit-buttons">
|
||||
{include file="CRM/common/formButtons.tpl" location="top"}
|
||||
</div>
|
||||
|
||||
<table class="form-layout">
|
||||
<tr class="crm-event-manage-fee-form-block-title">
|
||||
<td class="label">{$form.title.label}</td>
|
||||
<td>{$form.title.html}</td>
|
||||
</tr>
|
||||
<tr class="crm-event-manage-fee-form-block-is_monetary">
|
||||
<td class="label">{$form.is_monetary.label}</td>
|
||||
<td>{$form.is_monetary.html}</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<div id="event-fees">
|
||||
<table id="currency" class="form-layout">
|
||||
<tr class='crm-event-manage-fee-form-block-currency'>
|
||||
<td class="label">{$form.currency.label}</td>
|
||||
<td>{$form.currency.html}<br />
|
||||
<span class="description">{ts}Select the currency to be used for event registration.{/ts}</span>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
{if $paymentProcessor}
|
||||
<table id="paymentProcessor" class="form-layout">
|
||||
<tr class="crm-event-manage-fee-form-block-payment_processor">
|
||||
<td class="label">{$form.payment_processor.label}</td>
|
||||
<td>{$form.payment_processor.html}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class=""> </td>
|
||||
<td class="description">
|
||||
{ts}If this is a paid event and you want users to be able to register and pay online, select a payment processor to use.{/ts}
|
||||
{ts}NOTE: Alternatively, you can enable the <strong>Pay Later</strong> feature below without setting up a payment processor. All users will then be asked to submit payment offline (e.g. mail in a check, call in a credit card, etc.).{/ts} {docURL page="user/contributions/payment-processors"}<td>
|
||||
</tr>
|
||||
</table>
|
||||
{/if}
|
||||
|
||||
<table id="payLater" class="form-layout">
|
||||
<tr class="crm-event-manage-fee-form-block-is_pay_later">
|
||||
<td class="extra-long-fourty label">{$form.is_pay_later.html}</td>
|
||||
<td>{$form.is_pay_later.label}<br />
|
||||
<span class="description">{ts}Check this box if you want to give users the option to submit payment offline (e.g. mail in a check, call in a credit card, etc.).{/ts}</span>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<table id="payLaterOptions" class="form-layout">
|
||||
<tr class="crm-event-manage-fee-form-block-pay_later_text">
|
||||
<td class="label">{$form.pay_later_text.label}<span class="crm-marker"> *</span> </td>
|
||||
<td>{if $action == 2}{include file='CRM/Core/I18n/Dialog.tpl' table='civicrm_event' field='pay_later_text' id=$id}{/if}{$form.pay_later_text.html|crmAddClass:big}
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td> </td>
|
||||
<td class="description">{ts}Text displayed next to the checkbox for the 'pay later' option on the contribution form. You may include HTML formatting tags.{/ts}</td>
|
||||
</tr>
|
||||
<tr class="crm-event-manage-fee-form-block-pay_later_receipt">
|
||||
<td class="label">{$form.pay_later_receipt.label}<span class="crm-marker"> *</span> </td>
|
||||
<td>{if $action == 2}{include file='CRM/Core/I18n/Dialog.tpl' table='civicrm_event' field='pay_later_receipt' id=$id}{/if}{$form.pay_later_receipt.html|crmAddClass:big}
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td> </td>
|
||||
<td class="description">{ts}Instructions added to Confirmation and Thank-you pages when the user selects the 'pay later' option (e.g. 'Mail your check to ... within 3 business days.').{/ts}
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="extra-long-fourty label">{$form.is_billing_required.html}</td>
|
||||
<td>
|
||||
{$form.is_billing_required.label}<br />
|
||||
<span class="description">{ts}Check this box to require users who select the pay later option to provide billing name and address.{/ts}</span>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<table id="contributionType" class="form-layout">
|
||||
<tr class="crm-event-manage-fee-form-block-fee_label">
|
||||
<td class="label">{$form.fee_label.label}<span class="crm-marker"> *</span>
|
||||
</td>
|
||||
<td>{if $action == 2}{include file='CRM/Core/I18n/Dialog.tpl' table='civicrm_event' field='fee_label' id=$id}{/if}{$form.fee_label.html}
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td> </td>
|
||||
<td class="description">{ts}This label is displayed with the list of event fees. When using a Price Set, this label is the title for the section containing the price fields.{/ts}
|
||||
</td>
|
||||
</tr>
|
||||
<tr class="crm-event-manage-fee-form-block-financial_type_id">
|
||||
<td class="label">{$form.financial_type_id.label}<span class="crm-marker"> *</span></td>
|
||||
<td>{$form.financial_type_id.html}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td> </td>
|
||||
<td class="description">{ts}This financial type will be assigned to payments made by participants when they register online. If using a price set below note that the contribution record will have this financial type, however line items will be processed using the actual financial type selected for the price set item.{/ts}
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<table id="priceSet" class="form-layout">
|
||||
<tr class="crm-event-manage-fee-form-block-price_set_id">
|
||||
<td class="label">{$form.price_set_id.label}</td>
|
||||
<td>{if $price eq false}
|
||||
<div class="status message">{ts 1=$adminPriceSets}No Price Set has been configured / enabled for your site. Price sets allow you to meet the complex demands of your event registration structure.(e.g. "Pay $15 more for lunch."). Click <a href='%1'>here</a> if you want to configure price sets for your site.{/ts}</div>
|
||||
{else}
|
||||
{$form.price_set_id.html}
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td> </td>
|
||||
<td class="description">{ts 1=$adminPriceSets}Select a pre-configured Price Set to offer multiple individually priced options for event registrants. Otherwise, select "-none-" and enter one or more fee levels in the table below. Create or edit Price Sets <a href='%1'>here</a>.{/ts}
|
||||
{/if}
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<div id="map-field" >
|
||||
<fieldset id="map-field"><legend>{ts}Regular Fees{/ts}</legend>
|
||||
{ts}Use the table below to enter descriptive labels and amounts for up to ten event fee levels. These will be presented as a list of radio button options. Both the label and dollar amount will be displayed. You can also configure one or more sets of discounted fees by checking "Discounts by Signup Date" below.{/ts}<br />
|
||||
{if $isQuick}{ts}Click <a id='quickconfig' href='#'>here</a> if you want to configure the Regular Fees below as part of a Price Set, with the added flexibility and complexity that entails.{/ts}{/if}
|
||||
<table id="map-field-table">
|
||||
<tr class="columnheader"><td scope="column">{ts}Fee Label{/ts}</td><td scope="column">{ts}Amount{/ts}</td><td scope="column">{ts}Default?{/ts}<br />{$form.default.0.html}</td></tr>
|
||||
{section name=loop start=1 loop=11}
|
||||
{assign var=idx value=$smarty.section.loop.index}
|
||||
<tr><td class="even-row crm-event-manage-fee-form-block-label_{$idx}">{$form.label.$idx.html}</td><td class="crm-event-manage-fee-form-block-value_{$idx}">{$form.value.$idx.html|crmMoney}</td><td class="even-row crm-event-manage-fee-form-block-default_{$idx}">{$form.default.$idx.html}</td></tr>
|
||||
{/section}
|
||||
</table>
|
||||
</fieldset>
|
||||
|
||||
<div id="isDiscount">
|
||||
<table class="form-layout">
|
||||
<tr class="crm-event-manage-fee-form-block-is_discount">
|
||||
<td class="extra-long-fourty label">{$form.is_discount.html}</td>
|
||||
<td>{$form.is_discount.label}<br /><span class="description">{ts}Check this box if you want to offer discounted fees based on registration date (e.g. 'early-registration discounts').{/ts}</span>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
<div class="spacer"></div>
|
||||
<div>
|
||||
<fieldset id="discount">
|
||||
<table>
|
||||
<tr class="columnheader">
|
||||
<td> </th>
|
||||
<td>{ts}Discount Set{/ts}</td>
|
||||
<td>{ts}Start Date{/ts}</td>
|
||||
<td>{ts}End Date{/ts}</td>
|
||||
</tr>
|
||||
|
||||
{section name=rowLoop start=1 loop=6}
|
||||
{assign var=index value=$smarty.section.rowLoop.index}
|
||||
<tr id="discount_{$index}" class=" crm-event-manage-fee-form-block-discount_{$index} {if $index GT 1 AND empty( $form.discount_name[$index].value) } hiddenElement {/if} form-item {cycle values="odd-row,even-row"}">
|
||||
<td>{if $index GT 1} <a onclick="showHideDiscountRow('discount_{$index}', false, {$index}); return false;" name="discount_{$index}" href="#" class="form-link"><img src="{$config->resourceBase}i/TreeMinus.gif" class="action-icon" alt="{ts}hide field or section{/ts}"/></a>{/if}
|
||||
</td>
|
||||
<td class="crm-event-manage-fee-form-block-discount_name"> {$form.discount_name.$index.html}</td>
|
||||
<td class="crm-event-manage-fee-form-block-discount_start_date"> {include file="CRM/common/jcalendar.tpl" elementName='discount_start_date' elementIndex=$index} </td>
|
||||
<td class="crm-event-manage-fee-form-block-discount_end_date"> {include file="CRM/common/jcalendar.tpl" elementName='discount_end_date' elementIndex=$index} </td>
|
||||
</tr>
|
||||
{/section}
|
||||
</table>
|
||||
<div id="discountLink" class="add-remove-link">
|
||||
<a onclick="showHideDiscountRow( 'discount', true);return false;" id="discountLink" href="#" class="form-link"><img src="{$config->resourceBase}i/TreePlus.gif" class="action-icon" alt="{ts}show field or section{/ts}"/>{ts}another discount set{/ts}</a>
|
||||
</div>
|
||||
{$form._qf_Fee_submit.html}
|
||||
|
||||
{if $discountSection}
|
||||
<fieldset id="map-field"><legend>{ts}Discounted Fees{/ts}</legend>
|
||||
<p>{ts}Use the table below to enter descriptive labels and amounts for up to ten discounted event fees for each discount set. <strong>Don't forget to click 'Save' when you are finished.</strong>{/ts}</p>
|
||||
<table id="map-field-table">
|
||||
<tr class="columnheader">
|
||||
<td scope="column">{ts}Fee Label{/ts}</td>
|
||||
{section name=dloop start=1 loop=6}
|
||||
{assign var=i value=$smarty.section.dloop.index}
|
||||
{if $form.discount_name.$i.value}
|
||||
<td scope="column">{$form.discount_name.$i.value}</td>
|
||||
{/if}
|
||||
{/section}
|
||||
<td scope="column">{ts}Default?{/ts}</td>
|
||||
</tr>
|
||||
|
||||
{section name=loop start=1 loop=11}
|
||||
{assign var=idx value=$smarty.section.loop.index}
|
||||
<tr><td class="even-row">{$form.discounted_label.$idx.html}</td>
|
||||
{section name=loop1 start=1 loop=6}
|
||||
{assign var=idy value=$smarty.section.loop1.index}
|
||||
{if $form.discount_name.$idy.value}
|
||||
<td>{$form.discounted_value.$idx.$idy.html|crmMoney}</td>
|
||||
{/if}
|
||||
{/section}
|
||||
<td class="even-row">{$form.discounted_default.$idx.html}</td>
|
||||
</tr>
|
||||
{/section}
|
||||
</table>
|
||||
</fieldset>
|
||||
{if $discountSection eq 2}
|
||||
<script type="text/javascript">
|
||||
{literal}
|
||||
CRM.$(function($) {
|
||||
$('#discounted_label_1').focus( );
|
||||
});
|
||||
{/literal}
|
||||
</script>
|
||||
{/if}
|
||||
{/if}
|
||||
</fieldset>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="crm-submit-buttons">
|
||||
{include file="CRM/common/formButtons.tpl" location="bottom"}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{include file="CRM/common/deferredFinancialType.tpl" context='Event'}
|
||||
{include file="CRM/common/showHide.tpl"}
|
||||
<script type="text/javascript">
|
||||
{if $price}
|
||||
{literal}
|
||||
// Re-show Fee Level grid if Price Set select has been set to none.
|
||||
if (cj('#price_set_id').val() == '') {
|
||||
cj('#map-field').show();
|
||||
}
|
||||
{/literal}
|
||||
{/if}
|
||||
{literal}
|
||||
|
||||
if ( document.getElementsByName('is_monetary')[0].checked ) {
|
||||
cj('#event-fees').show();
|
||||
}
|
||||
|
||||
function warnDiscountDel( ) {
|
||||
if ( ! document.getElementsByName('is_discount')[0].checked ) {
|
||||
CRM.alert('{/literal}{ts escape="js"}If you uncheck "Discounts by Signup Date" and Save this form, any existing discount sets will be deleted.{/ts} {ts escape="js"}This action cannot be undone.{/ts} {ts escape="js"}If this is NOT what you want to do, you can check "Discounts by Signup Date" again.{/ts}', '{ts escape="js}Warning{/ts}{literal}', 'alert', {expires: 0});
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Function used to show /hide discount and set defaults
|
||||
*/
|
||||
function showHideDiscountRow( rowName, show, index ) {
|
||||
if ( show ) {
|
||||
// show first hidden element and set date default
|
||||
var counter = 0;
|
||||
cj('tr[id^=' + rowName + ']').each( function( i ) {
|
||||
counter++;
|
||||
if ( cj(this).css('display') == 'none' ) {
|
||||
cj(this).show( );
|
||||
|
||||
// set default
|
||||
var currentRowId = cj(this).attr('id');
|
||||
var temp = currentRowId.split('_');
|
||||
var currentElementID = temp[1];
|
||||
var lastElementID = currentElementID - 1 ;
|
||||
|
||||
var lastEndDate = cj( '#discount_end_date_' + lastElementID ).datepicker( 'getDate' );
|
||||
if ( lastEndDate ) {
|
||||
var discountDate = new Date( Date.parse( lastEndDate ) );
|
||||
discountDate.setDate( discountDate.getDate() + 1 );
|
||||
var newDate = discountDate.toDateString();
|
||||
newDate = new Date( Date.parse( newDate ) );
|
||||
cj( '#discount_start_date_' + currentElementID ).datepicker('setDate', newDate );
|
||||
}
|
||||
|
||||
if ( counter == 5 ) {
|
||||
cj('#discountLink').hide( );
|
||||
}
|
||||
return false;
|
||||
}
|
||||
});
|
||||
} else {
|
||||
// hide tr and clear dates
|
||||
cj( '#discount_end_date_' + index ).val('');
|
||||
cj( '#discount_name_' + index ).val('');
|
||||
cj( '#discount_start_date_' + index ).val('');
|
||||
cj( '#' + rowName ).hide( );
|
||||
cj('#discountLink').show( );
|
||||
}
|
||||
}
|
||||
|
||||
{/literal}
|
||||
</script>
|
||||
|
||||
|
||||
{include file="CRM/common/showHideByFieldValue.tpl"
|
||||
trigger_field_id ="is_pay_later"
|
||||
trigger_value =""
|
||||
target_element_id ="payLaterOptions"
|
||||
target_element_type ="block"
|
||||
field_type ="radio"
|
||||
invert = 0
|
||||
}
|
||||
{if $price }
|
||||
{include file="CRM/common/showHideByFieldValue.tpl"
|
||||
trigger_field_id ="price_set_id"
|
||||
trigger_value =""
|
||||
target_element_id ="map-field"
|
||||
target_element_type ="block"
|
||||
field_type ="select"
|
||||
invert = 0
|
||||
}
|
||||
{/if}
|
||||
{include file="CRM/common/showHideByFieldValue.tpl"
|
||||
trigger_field_id ="is_discount"
|
||||
trigger_value =""
|
||||
target_element_id ="discount"
|
||||
target_element_type ="block"
|
||||
field_type ="radio"
|
||||
invert = 0
|
||||
}
|
||||
|
||||
{if $isQuick}
|
||||
{literal}
|
||||
<script type="text/javascript">
|
||||
CRM.$(function($) {
|
||||
$("#quickconfig").click(function(e) {
|
||||
e.preventDefault();
|
||||
CRM.confirm({
|
||||
width: 400,
|
||||
message: {/literal}"{ts escape='js'}Once you switch to using a Price Set, you won't be able to switch back to your existing settings below except by re-entering them. Are you sure you want to switch to a Price Set?{/ts}"{literal}
|
||||
}).on('crmConfirm:yes', function() {
|
||||
{/literal}
|
||||
var dataUrl = '{crmURL p="civicrm/ajax/rest" h=0 q="className=CRM_Core_Page_AJAX&fnName=setIsQuickConfig&context=civicrm_event&id=$eventId" }';
|
||||
{literal}
|
||||
$.getJSON(dataUrl).done(function(result) {window.location = CRM.url("civicrm/admin/price/field", {reset: 1, action: 'browse', sid: result});});
|
||||
});
|
||||
});
|
||||
});
|
||||
</script>
|
||||
{/literal}
|
||||
{/if}
|
|
@ -0,0 +1,206 @@
|
|||
{*
|
||||
+--------------------------------------------------------------------+
|
||||
| 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 used to build location block *}
|
||||
{if !$addBlock}
|
||||
<div class="help">
|
||||
{ts}Use this form to configure the location and optional contact information for the event. This information will be displayed on the Event Information page. It will also be included in online registration pages and confirmation emails if these features are enabled.{/ts}
|
||||
</div>
|
||||
{/if}
|
||||
|
||||
{if $addBlock}
|
||||
{include file="CRM/Contact/Form/Edit/$blockName.tpl"}
|
||||
{else}
|
||||
<div class="crm-block crm-form-block crm-event-manage-location-form-block">
|
||||
<div class="crm-submit-buttons">
|
||||
{include file="CRM/common/formButtons.tpl" location="top"}
|
||||
</div>
|
||||
{if $locEvents}
|
||||
<table class="form-layout-compressed">
|
||||
<tr id="optionType" class="crm-event-manage-location-form-block-location_option">
|
||||
<td class="labels">
|
||||
{$form.location_option.label}
|
||||
</td>
|
||||
{foreach from=$form.location_option key=key item =item}
|
||||
{if $key|is_numeric}
|
||||
<td class="value"><strong>{$item.html}</strong></td>
|
||||
{/if}
|
||||
{/foreach}
|
||||
</tr>
|
||||
<tr id="existingLoc" class="crm-event-manage-location-form-block-loc_event_id">
|
||||
<td class="labels">
|
||||
{$form.loc_event_id.label}
|
||||
</td>
|
||||
<td class="value" colspan="2">
|
||||
{$form.loc_event_id.html|crmAddClass:huge}
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td id="locUsedMsg" colspan="3">
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
</table>
|
||||
{/if}
|
||||
|
||||
|
||||
|
||||
<div id="newLocation">
|
||||
<h3>Address</h3>
|
||||
{* Display the address block *}
|
||||
{include file="CRM/Contact/Form/Edit/Address.tpl"}
|
||||
<table class="form-layout-compressed">
|
||||
{* Display the email block(s) *}
|
||||
{include file="CRM/Contact/Form/Edit/Email.tpl"}
|
||||
|
||||
{* Display the phone block(s) *}
|
||||
{include file="CRM/Contact/Form/Edit/Phone.tpl"}
|
||||
</table>
|
||||
<table class="form-layout-compressed">
|
||||
<tr class="crm-event-is_show_location">
|
||||
<td colspan="2">{$form.is_show_location.label}</td>
|
||||
<td colspan="2">
|
||||
{$form.is_show_location.html}<br />
|
||||
<span class="description">{ts}Uncheck this box if you want to HIDE the event Address on Event Information and Registration pages as well as on email confirmations.{/ts}
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
<div class="crm-submit-buttons">
|
||||
{include file="CRM/common/formButtons.tpl" location="bottom"}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{* Include Javascript to hide and display the appropriate blocks as directed by the php code *}
|
||||
{*include file="CRM/common/showHide.tpl"*}
|
||||
{if $locEvents}
|
||||
{* include common additional blocks tpl *}
|
||||
{include file="CRM/common/additionalBlocks.tpl"}
|
||||
|
||||
<script type="text/javascript">
|
||||
{literal}
|
||||
CRM.$(function($) {
|
||||
//FIX ME: by default load 2 blocks and hide add and delete links
|
||||
//we should make additional block function more flexible to set max block limit
|
||||
buildBlocks('Email');
|
||||
buildBlocks('Phone');
|
||||
|
||||
var $form = $('form.{/literal}{$form.formClass}{literal}'),
|
||||
locBlockId = {/literal}"{$form.loc_event_id.value.0}"{literal};
|
||||
|
||||
displayMessage({/literal}{$locUsed}{literal});
|
||||
|
||||
// build blocks only if it is not built
|
||||
function buildBlocks(element) {
|
||||
if (!$('[id='+ element +'_Block_2]').length) {
|
||||
buildAdditionalBlocks(element, 'CRM_Event_Form_ManageEvent_Location');
|
||||
}
|
||||
}
|
||||
|
||||
hideAddDeleteLinks('Email');
|
||||
hideAddDeleteLinks('Phone');
|
||||
function hideAddDeleteLinks(element) {
|
||||
$('#add'+ element, $form).hide();
|
||||
$('[id='+ element +'_Block_2] a:last', $form).hide();
|
||||
}
|
||||
|
||||
$('#loc_event_id', $form).change(function() {
|
||||
$.ajax({
|
||||
url: CRM.url('civicrm/ajax/locBlock', 'reset=1'),
|
||||
data: {'lbid': $(this).val()},
|
||||
dataType: 'json',
|
||||
success: function(data) {
|
||||
var selectLocBlockId = $('#loc_event_id').val();
|
||||
// Only change state when options are loaded
|
||||
if (data.address_1_state_province_id) {
|
||||
var defaultState = data.address_1_state_province_id;
|
||||
$('#address_1_state_province_id', $form).one('crmOptionsUpdated', function() {
|
||||
$(this).val(defaultState).change();
|
||||
});
|
||||
delete data.address_1_state_province_id;
|
||||
}
|
||||
for(i in data) {
|
||||
if ( i == 'count_loc_used' ) {
|
||||
if ( ((selectLocBlockId == locBlockId) && data.count_loc_used > 1) ||
|
||||
((selectLocBlockId != locBlockId) && data.count_loc_used > 0) ) {
|
||||
displayMessage(data.count_loc_used);
|
||||
} else {
|
||||
displayMessage(0);
|
||||
}
|
||||
} else {
|
||||
$('#'+i, $form).val(data[i]).change();
|
||||
}
|
||||
}
|
||||
}
|
||||
});
|
||||
return false;
|
||||
});
|
||||
|
||||
function showLocFields(clear) {
|
||||
var createNew = document.getElementsByName("location_option")[0].checked;
|
||||
if (createNew) {
|
||||
$('#existingLoc', $form).hide();
|
||||
//clear all location fields values.
|
||||
if (clear !== false) {
|
||||
$(":input[id *= 'address_1_'], :input[id *= 'email_1_'], :input[id *= 'phone_1_']", $form).val("").change();
|
||||
{/literal}{if $config->defaultContactCountry}
|
||||
{if $config->defaultContactStateProvince}
|
||||
// Set default state once options are loaded
|
||||
var defaultState = {$config->defaultContactStateProvince}
|
||||
{literal}
|
||||
$('#address_1_state_province_id', $form).one('crmOptionsUpdated', function() {
|
||||
$(this).val(defaultState).change();
|
||||
});
|
||||
{/literal}
|
||||
{/if}
|
||||
// Set default country
|
||||
$('#address_1_country_id', $form).val({$config->defaultContactCountry}).change();
|
||||
{/if}{literal}
|
||||
}
|
||||
displayMessage(0);
|
||||
} else {
|
||||
$('#existingLoc', $form).show();
|
||||
if (clear !== false) {
|
||||
$('#loc_event_id', $form).change();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
$('input[name=location_option]').click(showLocFields);
|
||||
showLocFields(false);
|
||||
|
||||
function displayMessage(count) {
|
||||
if (count) {
|
||||
var msg = {/literal}'{ts escape="js" 1="%1"}This location is used by %1 other events. Modifying location information will change values for all events.{/ts}'{literal};
|
||||
$('#locUsedMsg', $form).text(ts(msg, {1: count})).addClass('status');
|
||||
} else {
|
||||
$('#locUsedMsg', $form).text(' ').removeClass('status');
|
||||
}
|
||||
}
|
||||
});
|
||||
{/literal}
|
||||
</script>
|
||||
{/if}
|
||||
|
||||
{/if} {* add block if end*}
|
|
@ -0,0 +1,119 @@
|
|||
{*
|
||||
+--------------------------------------------------------------------+
|
||||
| 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-reg-title"}
|
||||
{ts}Event Registration{/ts}
|
||||
{/htxt}
|
||||
{htxt id="id-event-reg"}
|
||||
{capture assign=ppUrl}{crmURL p='civicrm/admin/paymentProcessor' q="reset=1"}{/capture}
|
||||
{ts 1=$ppUrl}If you want to provide an Online Registration page for this event, check the first box below and then complete the fields on this form. You can offer online registration for both Paid and Free events. Paid events require that you have configured a <a href="%1">payment processor</a> for your site.{/ts}
|
||||
{ts}You may also configure events to require administrative approval prior to participants completing the registration process. To enable this feature you must first enable the Participant Statuses used by the approval work-flow (Administer » CiviEvent » Participant Statuses). Then reload this form and check 'Require participant approval?'.{/ts}
|
||||
{/htxt}
|
||||
|
||||
{htxt id="event-profile-title"}
|
||||
{ts}Profile{/ts}
|
||||
{/htxt}
|
||||
{htxt id="event-profile"}
|
||||
<p>{ts}If you want collect additional information during event registration, you will need to configure one or more CiviCRM Profiles - which are collections of standard or custom fields. For event registration, you often want to collect an email address and / or participants' first and last names. You may also need to collect additional information specific to a person's <strong>participation</strong> in an Event. Examples include meal and/or volunteer preferences.{/ts}</p>
|
||||
<p>{ts}If you haven't already configured custom fields and a profile for this, you can save this screen without selecting a Profile, complete the steps below and then return to <strong>Manage Events</strong> and select your new profile.{/ts}
|
||||
<ol>
|
||||
<li>{ts}Create a custom field group which is 'Used for' <strong>Participants</strong>.{/ts}</li>
|
||||
<li>{ts}Add your field(s) this custom field group.{/ts}</li>
|
||||
<li>{ts}Create a profile (e.g. 'Participant Information').{/ts}</li>
|
||||
<li>{ts}Add your custom field(s) to this profile as profile fields.{/ts}</li>
|
||||
<li>{ts}Return to this screen (<strong>Administer CiviCRM » CiviEvent » Manage Events » Configure » Online Registration</strong>) and select your profile.{/ts}</li>
|
||||
</ol>
|
||||
|
||||
{capture assign=docLinkCustom}{docURL page="user/organising-your-data/custom-fields" text="custom fields"}{/capture}
|
||||
{capture assign=docLinkProfile}{docURL page="user/the-user-interface/profiles" text="profiles"}{/capture}
|
||||
{ts 1=$docLinkCustom 2=$docLinkProfile}Refer to the online documentation for more details on creating %1 and %2.{/ts}
|
||||
</p>
|
||||
{/htxt}
|
||||
|
||||
{htxt id="id-link_text-title"}
|
||||
{ts}Registration Link{/ts}
|
||||
{/htxt}
|
||||
{htxt id="id-link_text"}
|
||||
{ts}Display text for link from Event Information to Event Registration pages (e.g. 'Register Now!').{/ts}
|
||||
{/htxt}
|
||||
|
||||
{htxt id="id-allow_multiple-title"}
|
||||
{ts}Multiple Participants{/ts}
|
||||
{/htxt}
|
||||
{htxt id="id-allow_multiple"}
|
||||
<p>{ts}Check this box to allow users to register themselves AND additional participants for an event. When this feature is enabled, users have the option to specify the number of additional participants they are registering for. If this is a paid event, they can select a different event fees for each participant - and will be charged the total of those fees. If a profile is included - they will complete the profile information for each participant.{/ts}</p>
|
||||
<p>{ts}You can use different profile for the person who is registering than for "Additional Participants". For example, you may want to require an email address from the person entering the registration while not requiring (or even requesting) emails for additional participants (i.e. their "guests").{/ts}</p>
|
||||
{/htxt}
|
||||
|
||||
{htxt id="id-max_additional-title"}
|
||||
{ts}Maximum Additional Participants{/ts}
|
||||
{/htxt}
|
||||
{htxt id="id-max_additional"}
|
||||
<p>{ts}Limit the number of additional participants that can be registered in a single booking.{/ts}</p>
|
||||
<p>{ts}Eg: if you choose '2' then the lead booker can bring 2 guests; there would be a limit of 3 participants in total per booking.{/ts}</p>
|
||||
{/htxt}
|
||||
|
||||
{htxt id="id-allow_same_email-title"}
|
||||
{ts}Allow Shared Email{/ts}
|
||||
{/htxt}
|
||||
{htxt id="id-allow_same_email"}
|
||||
<p>{ts}Check this box to allow a user to register multiple participants using the same email address. Alternatively, if you want additional participants to be registered <strong>without requiring an email address to be entered for each person</strong> - check the "Register multiple participants" option, AND include a profile in this registration form which <strong>includes First Name and Last Name fields</strong>.{/ts}</p>
|
||||
{/htxt}
|
||||
|
||||
{htxt id="id-dedupe_rule_group_id-title"}
|
||||
{ts}Duplicate Matching Rule{/ts}
|
||||
{/htxt}
|
||||
{htxt id="id-dedupe_rule_group_id"}
|
||||
<p>{ts}By default, your event will use the Unsupervised duplicate matching rule to match participants in anonymous registrations with existing individuals. You may select another rule to use for this event instead. Make sure that your included profile(s) contain the fields needed by your matching rule.{/ts}</p>
|
||||
{/htxt}
|
||||
|
||||
{htxt id="id-requires_approval-title"}
|
||||
{ts}Require Approval{/ts}
|
||||
{/htxt}
|
||||
{htxt id="id-requires_approval"}
|
||||
{ts}Check this box to require administrative approval for all the participants who self-register, prior to being able to complete the registration process. Participants will be placed in 'Awaiting Approval' status. You can review and approve participants from 'Find Participants' - select the 'Participant status - change' task. Approved participants will move to 'Pending from approval' status, and will be sent an email with a link to complete their registration (including paying event fees - if any). {/ts}
|
||||
{/htxt}
|
||||
|
||||
{htxt id="id-expiration_time-title"}
|
||||
{ts}Time Limit{/ts}
|
||||
{/htxt}
|
||||
{htxt id="id-expiration_time"}
|
||||
{ts}Time limit <strong>in hours</strong> for confirming/finishing registration by participants with any of the pending statuses. Enter 0 (or leave empty) to disable this feature.{/ts}
|
||||
{/htxt}
|
||||
|
||||
{htxt id="id-allow_selfcancelxfer-title"}
|
||||
{ts}Allow Self-service Cancellation or Transfer?{/ts}
|
||||
{/htxt}
|
||||
{htxt id="id-allow_selfcancelxfer"}
|
||||
<p>{ts}Check this box if you want to allow registered participants to either cancel their registration OR transfer it to another participant. If this feature is enabled, event confirmation emails will include a link to a Cancel or Transfer form.{/ts}</p>
|
||||
<p>{ts}<strong>Automated refunds for cancellations are NOT currently supported.</strong> Participants who have paid for an event will be notified that cancellations are not refundable.{/ts}</p>
|
||||
{/htxt}
|
||||
|
||||
{htxt id="id-selfcancelxfer_time-title"}
|
||||
{ts}Cancellation or Transfer Time Limit{/ts}
|
||||
{/htxt}
|
||||
{htxt id="id-selfcancelxfer_time"}
|
||||
{ts}Number of hours prior to event start date to allow self-service cancellation or transfer. Enter 0 (or leave empty) to allow cancellation or transfer up until the event has started.{/ts}
|
||||
{/htxt}
|
|
@ -0,0 +1,519 @@
|
|||
{*
|
||||
+--------------------------------------------------------------------+
|
||||
| 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 $addProfileBottomAdd OR $addProfileBottom}
|
||||
<td scope="row" class="label"
|
||||
width="20%">{if $addProfileBottomAdd }{$form.additional_custom_post_id_multiple[$profileBottomNumAdd].label}
|
||||
{else}{$form.custom_post_id_multiple[$profileBottomNum].label}{/if}</td>
|
||||
<td>{if $addProfileBottomAdd }{$form.additional_custom_post_id_multiple[$profileBottomNumAdd].html}{else}{$form.custom_post_id_multiple[$profileBottomNum].html}{/if}
|
||||
<span class='profile_bottom_link_remove'><a href="#" class="crm-hover-button crm-button-rem-profile" data-addtlPartc="{$addProfileBottomAdd}"><i class="crm-i fa-trash"></i> {ts}remove profile{/ts}</a></span>
|
||||
<span class='profile_bottom_link'> <a href="#" class="crm-hover-button crm-button-add-profile"><i class="crm-i fa-plus-circle"></i> {ts}add another profile (bottom of page){/ts}</a></span>
|
||||
{if $addProfileBottomAdd }
|
||||
<div
|
||||
class="description">{ts}Change this if you want to use a different profile for additional participants.{/ts}</div>
|
||||
{else}
|
||||
<div
|
||||
class="description">{ts}Include additional fields on this registration form by selecting and configuring a CiviCRM Profile to be included at the bottom of the page.{/ts}</div>
|
||||
{/if}
|
||||
<br/><span class="profile-links"></span>
|
||||
</td>
|
||||
{else}
|
||||
{assign var=eventID value=$id}
|
||||
<div class="help">
|
||||
{ts}If you want to provide an Online Registration page for this event, check the first box below and then complete the fields on this form.{/ts}
|
||||
{help id="id-event-reg"}
|
||||
</div>
|
||||
<div class="crm-block crm-form-block crm-event-manage-registration-form-block">
|
||||
<div class="crm-submit-buttons">
|
||||
{include file="CRM/common/formButtons.tpl" location="top"}
|
||||
</div>
|
||||
|
||||
<div id="register">
|
||||
<table class="form-layout">
|
||||
<tr class="crm-event-manage-registration-form-block-is_online_registration">
|
||||
<td class="label">{$form.is_online_registration.label}</td>
|
||||
<td>{$form.is_online_registration.html}
|
||||
<span class="description">{ts}Online registration enabled?{/ts}</span>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
<div class="spacer"></div>
|
||||
<div id="registration_blocks">
|
||||
<table class="form-layout-compressed">
|
||||
|
||||
<tr class="crm-event-manage-registration-form-block-registration_link_text">
|
||||
<td scope="row" class="label"
|
||||
width="20%">{$form.registration_link_text.label} {if $action == 2}{include file='CRM/Core/I18n/Dialog.tpl' table='civicrm_event' field='registration_link_text' id=$eventID}{/if}</td>
|
||||
<td>{$form.registration_link_text.html} {help id="id-link_text"}</td>
|
||||
</tr>
|
||||
{if !$isTemplate}
|
||||
<tr class="crm-event-manage-registration-form-block-registration_start_date">
|
||||
<td scope="row" class="label" width="20%">{$form.registration_start_date.label}</td>
|
||||
<td>{include file="CRM/common/jcalendar.tpl" elementName=registration_start_date}</td>
|
||||
</tr>
|
||||
<tr class="crm-event-manage-registration-form-block-registration_end_date">
|
||||
<td scope="row" class="label" width="20%">{$form.registration_end_date.label}</td>
|
||||
<td>{include file="CRM/common/jcalendar.tpl" elementName=registration_end_date}</td>
|
||||
</tr>
|
||||
{/if}
|
||||
<tr class="crm-event-manage-registration-form-block-is_multiple_registrations">
|
||||
<td scope="row" class="label" width="20%">{$form.is_multiple_registrations.label}</td>
|
||||
<td>{$form.is_multiple_registrations.html} {help id="id-allow_multiple"}</td>
|
||||
</tr>
|
||||
<tr class="crm-event-manage-registration-form-block-maximum_additional_participants" id="id-max-additional-participants">
|
||||
<td scope="row" class="label" width="20%">{$form.max_additional_participants.label}</td>
|
||||
<td>{$form.max_additional_participants.html} {help id="id-max_additional"}</td>
|
||||
</tr>
|
||||
<tr class="crm-event-manage-registration-form-block-allow_same_participant_emails">
|
||||
<td scope="row" class="label" width="20%">{$form.allow_same_participant_emails.label}</td>
|
||||
<td>{$form.allow_same_participant_emails.html} {help id="id-allow_same_email"}</td>
|
||||
</tr>
|
||||
<tr class="crm-event-manage-registration-form-block-dedupe_rule_group_id">
|
||||
<td scope="row" class="label" width="20%">{$form.dedupe_rule_group_id.label}</td>
|
||||
<td>{$form.dedupe_rule_group_id.html} {help id="id-dedupe_rule_group_id"}</td>
|
||||
</tr>
|
||||
<tr class="crm-event-manage-registration-form-block-requires_approval">
|
||||
{if $form.requires_approval}
|
||||
<td scope="row" class="label" width="20%">{$form.requires_approval.label}</td>
|
||||
<td>{$form.requires_approval.html} {help id="id-requires_approval"}</td>
|
||||
{/if}
|
||||
</tr>
|
||||
<tr id="id-approval-text" class="crm-event-manage-registration-form-block-approval_req_text">
|
||||
{if $form.approval_req_text}
|
||||
<td scope="row" class="label"
|
||||
width="20%">{$form.approval_req_text.label} {if $action == 2}{include file='CRM/Core/I18n/Dialog.tpl' table='civicrm_event' field='approval_req_text' id=$eventID}{/if}</td>
|
||||
<td>{$form.approval_req_text.html}</td>
|
||||
{/if}
|
||||
</tr>
|
||||
<tr class="crm-event-manage-registration-form-block-expiration_time">
|
||||
<td scope="row" class="label" width="20%">{$form.expiration_time.label}</td>
|
||||
<td>{$form.expiration_time.html|crmAddClass:four} {help id="id-expiration_time"}</td>
|
||||
</tr>
|
||||
<tr class="crm-event-manage-registration-form-block-selfcancelxfer">
|
||||
<td scope="row" class="label" width="20%">{$form.allow_selfcancelxfer.label}</td>
|
||||
<td>{$form.allow_selfcancelxfer.html} {help id="id-allow_selfcancelxfer"}</td>
|
||||
</tr>
|
||||
<tr class="crm-event-manage-registration-form-block-selfcancelxfer_time">
|
||||
<td scope="row" class="label" width="20%">{$form.selfcancelxfer_time.label}</td>
|
||||
<td>{$form.selfcancelxfer_time.html|crmAddClass:four} {help id="id-selfcancelxfer_time"}</td>
|
||||
</tr>
|
||||
</table>
|
||||
<div class="spacer"></div>
|
||||
|
||||
{*Registration Block*}
|
||||
<fieldset id="registration" class="crm-collapsible {if $defaultsEmpty}collapsed{/if}">
|
||||
<legend class="collapsible-title">{ts}Registration Screen{/ts}</legend>
|
||||
<div id="registration_screen">
|
||||
<table class="form-layout-compressed">
|
||||
<tr class="crm-event-manage-registration-form-block-intro_text">
|
||||
<td scope="row" class="label"
|
||||
width="20%">{$form.intro_text.label} {if $action == 2}{include file='CRM/Core/I18n/Dialog.tpl' table='civicrm_event' field='intro_text' id=$eventID}{/if}</td>
|
||||
<td>{$form.intro_text.html}
|
||||
<div
|
||||
class="description">{ts}Introductory message / instructions for online event registration page (may include HTML formatting tags).{/ts}</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr class="crm-event-manage-registration-form-block-footer_text">
|
||||
<td scope="row" class="label"
|
||||
width="20%">{$form.footer_text.label} {if $action == 2}{include file='CRM/Core/I18n/Dialog.tpl' table='civicrm_event' field='footer_text' id=$eventID}{/if}</td>
|
||||
<td>{$form.footer_text.html}
|
||||
<div class="description">{ts}Optional footer text for registration screen.{/ts}</div>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
<table class="form-layout-compressed">
|
||||
<tr class="crm-event-manage-registration-form-block-custom_pre_id">
|
||||
<td scope="row" class="label" width="20%">{$form.custom_pre_id.label}</td>
|
||||
<td>{$form.custom_pre_id.html}
|
||||
<div
|
||||
class="description">{ts}Include additional fields on this registration form by selecting and configuring a CiviCRM Profile to be included at the top of the page (immediately after the introductory message).{/ts}{help id="event-profile"}</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr id="profile_post" class="crm-event-manage-registration-form-block-custom_post_id">
|
||||
<td scope="row" class="label" width="20%">{$form.custom_post_id.label}</td>
|
||||
<td>{$form.custom_post_id.html}
|
||||
<div class="description">{ts}Include additional fields on this registration form by selecting and configuring a CiviCRM Profile to be included at the bottom of the page.{/ts}</div>
|
||||
<span class='profile_bottom_link_main {if $profilePostMultiple}hiddenElement{/if}'><a href="#" class="crm-hover-button crm-button-add-profile"><i class="crm-i fa-plus-circle"></i> {ts}add another profile (bottom of page){/ts}</a></span>
|
||||
<br/>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
{if $profilePostMultiple}
|
||||
{foreach from=$profilePostMultiple item=profilePostId key=profilePostNum name=profilePostIdName}
|
||||
<tr id="custom_post_id_multiple_{$profilePostNum}_wrapper"
|
||||
class='crm-event-manage-registration-form-block-custom_post_multiple'>
|
||||
<td scope="row" class="label" width="20%">{$form.custom_post_id_multiple.$profilePostNum.label}</td>
|
||||
<td>{$form.custom_post_id_multiple.$profilePostNum.html}
|
||||
|
||||
<span class='profile_bottom_link_remove'>
|
||||
<a href="#" class="crm-hover-button crm-button-rem-profile">
|
||||
<i class="crm-i fa-trash"></i> {ts}remove profile{/ts}
|
||||
</a>
|
||||
</span>
|
||||
|
||||
<span class='profile_bottom_link' {if !$smarty.foreach.profilePostIdName.last} style="display: none"{/if}>
|
||||
<a href="#" class="crm-hover-button crm-button-add-profile">
|
||||
<i class="crm-i fa-plus-circle"></i>
|
||||
{ts}add another profile (bottom of page){/ts}
|
||||
</a>
|
||||
</span>
|
||||
<br/><span class="profile-links"></span>
|
||||
</td>
|
||||
</tr>
|
||||
{/foreach}
|
||||
{/if}
|
||||
</table>
|
||||
<table class="form-layout-compressed">
|
||||
<tr id="additional_profile_pre" class="crm-event-manage-registration-form-block-additional_custom_pre_id">
|
||||
<td scope="row" class="label" width="20%">{$form.additional_custom_pre_id.label}</td>
|
||||
<td>{$form.additional_custom_pre_id.html}
|
||||
<div
|
||||
class="description">{ts}Change this if you want to use a different profile for additional participants.{/ts}</div>
|
||||
<br/><span class="profile-links"></span>
|
||||
</td>
|
||||
</tr>
|
||||
<tr id="additional_profile_post" class="crm-event-manage-registration-form-block-additional_custom_post_id">
|
||||
<td scope="row" class="label" width="20%">{$form.additional_custom_post_id.label}</td>
|
||||
<td>{$form.additional_custom_post_id.html}
|
||||
<div
|
||||
class="description">{ts}Change this if you want to use a different profile for additional participants.{/ts}
|
||||
</div>
|
||||
<span class='profile_bottom_add_link_main{if $profilePostMultipleAdd} hiddenElement{/if}'><a href="#" class="crm-hover-button crm-button-add-profile"><i class="crm-i fa-plus-circle"></i> {ts}add another profile (bottom of page){/ts}</a></span>
|
||||
<br/><span class="profile-links"></span>
|
||||
</td>
|
||||
</tr>
|
||||
{if $profilePostMultipleAdd}
|
||||
{foreach from=$profilePostMultipleAdd item=profilePostIdA key=profilePostNumA name=profilePostIdAName}
|
||||
<tr id='additional_custom_post_id_multiple_{$profilePostNumA}_wrapper'
|
||||
class='crm-event-manage-registration-form-block-additional_custom_post_multiple'>
|
||||
<td scope="row" class="label"
|
||||
width="20%">{$form.additional_custom_post_id_multiple.$profilePostNumA.label}</td>
|
||||
<td>{$form.additional_custom_post_id_multiple.$profilePostNumA.html}
|
||||
|
||||
<span class='profile_bottom_add_link_remove'>
|
||||
<a href="#" class="crm-hover-button crm-button-rem-profile">
|
||||
<i class="crm-i fa-trash"></i> {ts}remove profile{/ts}
|
||||
</a>
|
||||
</span>
|
||||
<span class='profile_bottom_add_link' {if !$smarty.foreach.profilePostIdAName.last} style="display: none"{/if}>
|
||||
<a href="#" class="crm-hover-button crm-button-add-profile">
|
||||
<i class="crm-i fa-plus-circle"></i>
|
||||
{ts}add another profile (bottom of page){/ts}
|
||||
</a>
|
||||
</span>
|
||||
<br/><span class="profile-links"></span>
|
||||
</td>
|
||||
</tr>
|
||||
{/foreach}
|
||||
{/if}
|
||||
</table>
|
||||
</div>
|
||||
</fieldset>
|
||||
|
||||
{*Confirmation Block*}
|
||||
<fieldset id="confirm" class="crm-collapsible {if $defaultsEmpty}collapsed{/if}">
|
||||
<legend class="collapsible-title">{ts}Confirmation Screen{/ts}</legend>
|
||||
{if !$is_monetary}
|
||||
<table class="form-layout-compressed">
|
||||
<tr class="crm-event-manage-registration-form-block-is_confirm_enabled">
|
||||
<td scope="row" class="label" width="20%">{$form.is_confirm_enabled.label}</td>
|
||||
<td>{$form.is_confirm_enabled.html}
|
||||
<div class="description">{ts}Optionally hide the confirmation screen for free events.{/ts}</div>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
{/if}
|
||||
|
||||
<div id="confirm_screen_settings">
|
||||
<table class="form-layout-compressed">
|
||||
<tr class="crm-event-manage-registration-form-block-confirm_title">
|
||||
<td scope="row" class="label" width="20%">{$form.confirm_title.label} <span
|
||||
class="crm-marker">*</span> {if $action == 2}{include file='CRM/Core/I18n/Dialog.tpl' table='civicrm_event' field='confirm_title' id=$eventID}{/if}
|
||||
</td>
|
||||
<td>{$form.confirm_title.html}<br/>
|
||||
<span
|
||||
class="description">{ts}Page title for screen where user reviews and confirms their registration information.{/ts}</span>
|
||||
</td>
|
||||
</tr>
|
||||
<tr class="crm-event-manage-registration-form-block-confirm_text">
|
||||
<td scope="row" class="label"
|
||||
width="20%">{$form.confirm_text.label} {if $action == 2}{include file='CRM/Core/I18n/Dialog.tpl' table='civicrm_event' field='confirm_text' id=$eventID}{/if}</td>
|
||||
<td>{$form.confirm_text.html}
|
||||
<div class="description">{ts}Optional instructions / message for Confirmation screen.{/ts}</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr class="crm-event-manage-registration-form-block-confirm_footer_text">
|
||||
<td scope="row" class="label"
|
||||
width="20%">{$form.confirm_footer_text.label} {if $action == 2}{include file='CRM/Core/I18n/Dialog.tpl' table='civicrm_event' field='confirm_footer_text' id=$eventID}{/if}</td>
|
||||
<td>{$form.confirm_footer_text.html}
|
||||
<div class="description">{ts}Optional page footer text for Confirmation screen.{/ts}</div>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
</fieldset>
|
||||
|
||||
{*ThankYou Block*}
|
||||
<fieldset id="thankyou" class="crm-collapsible {if $defaultsEmpty}collapsed{/if}">
|
||||
<legend class="collapsible-title">{ts}Thank-you Screen{/ts}</legend>
|
||||
<table class="form-layout-compressed">
|
||||
<tr class="crm-event-manage-registration-form-block-confirm_thankyou_title">
|
||||
<td scope="row" class="label" width="20%">{$form.thankyou_title.label} <span
|
||||
class="crm-marker">*</span> {if $action == 2}{include file='CRM/Core/I18n/Dialog.tpl' table='civicrm_event' field='thankyou_title' id=$eventID}{/if}
|
||||
</td>
|
||||
<td>{$form.thankyou_title.html}
|
||||
<div class="description">{ts}Page title for registration Thank-you screen.{/ts}</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr class="crm-event-manage-registration-form-block-confirm_thankyou_text">
|
||||
<td scope="row" class="label"
|
||||
width="20%">{$form.thankyou_text.label} {if $action == 2}{include file='CRM/Core/I18n/Dialog.tpl' table='civicrm_event' field='thankyou_text' id=$eventID}{/if}</td>
|
||||
<td>{$form.thankyou_text.html}
|
||||
<div
|
||||
class="description">{ts}Optional message for Thank-you screen (may include HTML formatting).{/ts}</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr class="crm-event-manage-registration-form-block-confirm_thankyou_footer_text">
|
||||
<td scope="row" class="label"
|
||||
width="20%">{$form.thankyou_footer_text.label} {if $action == 2}{include file='CRM/Core/I18n/Dialog.tpl' table='civicrm_event' field='thankyou_footer_text' id=$eventID}{/if}</td>
|
||||
<td>{$form.thankyou_footer_text.html}
|
||||
<div
|
||||
class="description">{ts}Optional footer text for Thank-you screen (often used to include links to other pages/activities on your site).{/ts}</div>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</fieldset>
|
||||
|
||||
{* Confirmation Email Block *}
|
||||
<fieldset id="mail" class="crm-collapsible {if $defaultsEmpty}collapsed{/if}">
|
||||
<legend class="collapsible-title">{ts}Confirmation Email{/ts}</legend>
|
||||
<div>
|
||||
<table class="form-layout-compressed">
|
||||
<tr class="crm-event-manage-registration-form-block-is_email_confirm">
|
||||
<td scope="row" class="label" width="20%">{$form.is_email_confirm.label}</td>
|
||||
<td>{$form.is_email_confirm.html}<br/>
|
||||
<span
|
||||
class="description">{ts}Do you want a registration confirmation email sent automatically to the user? This email includes event date(s), location and contact information. For paid events, this email is also a receipt for their payment.{/ts}</span>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
<div id="confirmEmail">
|
||||
<table class="form-layout-compressed">
|
||||
<tr class="crm-event-manage-registration-form-block-confirm_email_text">
|
||||
<td scope="row" class="label"
|
||||
width="20%">{$form.confirm_email_text.label} {if $action == 2}{include file='CRM/Core/I18n/Dialog.tpl' table='civicrm_event' field='confirm_email_text' id=$eventID}{/if}</td>
|
||||
<td>{$form.confirm_email_text.html}<br/>
|
||||
<span
|
||||
class="description">{ts}Additional message or instructions to include in confirmation email.{/ts}</span>
|
||||
</td>
|
||||
</tr>
|
||||
<tr class="crm-event-manage-registration-form-block-confirm_from_name">
|
||||
<td scope="row" class="label" width="20%">{$form.confirm_from_name.label} <span
|
||||
class="crm-marker">*</span> {if $action == 2}{include file='CRM/Core/I18n/Dialog.tpl' table='civicrm_event' field='confirm_from_name' id=$eventID}{/if}
|
||||
</td>
|
||||
<td>{$form.confirm_from_name.html}<br/>
|
||||
<span class="description">{ts}FROM name for email.{/ts}</span>
|
||||
</td>
|
||||
</tr>
|
||||
<tr class="crm-event-manage-registration-form-block-confirm_from_email">
|
||||
<td scope="row" class="label" width="20%">{$form.confirm_from_email.label} <span class="crm-marker">*</span></td>
|
||||
<td>{$form.confirm_from_email.html}<br/>
|
||||
<span
|
||||
class="description">{ts}FROM email address (this must be a valid email account with your SMTP email service provider).{/ts}</span>
|
||||
</td>
|
||||
</tr>
|
||||
<tr class="crm-event-manage-registration-form-block-cc_confirm">
|
||||
<td scope="row" class="label" width="20%">{$form.cc_confirm.label}</td>
|
||||
<td>{$form.cc_confirm.html}<br/>
|
||||
<span
|
||||
class="description">{ts}You can notify event organizers of each online registration by specifying one or more email addresses to receive a carbon copy (cc). Multiple email addresses should be separated by a comma (e.g. jane@example.org, paula@example.org).{/ts}</span>
|
||||
</td>
|
||||
</tr>
|
||||
<tr class="crm-event-manage-registration-form-block-bcc_confirm">
|
||||
<td scope="row" class="label" width="20%">{$form.bcc_confirm.label}</td>
|
||||
<td>{$form.bcc_confirm.html}<br/>
|
||||
<span
|
||||
class="description">{ts}You may specify one or more email addresses to receive a blind carbon copy (bcc) of the confirmation email. Multiple email addresses should be separated by a comma (e.g. jane@example.org, paula@example.org).{/ts}</span>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</fieldset>
|
||||
</div> {*end of div registration_blocks*}
|
||||
</div>
|
||||
<div class="crm-submit-buttons">
|
||||
{include file="CRM/common/formButtons.tpl" location="bottom"}
|
||||
</div>
|
||||
{include file="CRM/common/showHide.tpl"}
|
||||
{include file="CRM/common/showHideByFieldValue.tpl"
|
||||
trigger_field_id ="is_online_registration"
|
||||
trigger_value =""
|
||||
target_element_id ="registration_blocks"
|
||||
target_element_type ="block"
|
||||
field_type ="radio"
|
||||
invert = 0
|
||||
}
|
||||
{if !$is_monetary}
|
||||
{include file="CRM/common/showHideByFieldValue.tpl"
|
||||
trigger_field_id ="is_confirm_enabled"
|
||||
trigger_value =""
|
||||
target_element_id ="confirm_screen_settings"
|
||||
target_element_type ="block"
|
||||
field_type ="radio"
|
||||
invert = 0
|
||||
}
|
||||
{/if}
|
||||
{include file="CRM/common/showHideByFieldValue.tpl"
|
||||
trigger_field_id ="is_email_confirm"
|
||||
trigger_value =""
|
||||
target_element_id ="confirmEmail"
|
||||
target_element_type ="block"
|
||||
field_type ="radio"
|
||||
invert = 0
|
||||
}
|
||||
{if $form.requires_approval}
|
||||
{include file="CRM/common/showHideByFieldValue.tpl"
|
||||
trigger_field_id ="requires_approval"
|
||||
trigger_value =""
|
||||
target_element_id ="id-approval-text"
|
||||
target_element_type ="table-row"
|
||||
field_type ="radio"
|
||||
invert = 0
|
||||
}
|
||||
{/if}
|
||||
|
||||
{*include profile link function*}
|
||||
{include file="CRM/common/buildProfileLink.tpl"}
|
||||
|
||||
<script type="text/javascript">
|
||||
{literal} (function($, _) { // Generic Closure
|
||||
|
||||
$(".crm-submit-buttons input").click( function() {
|
||||
$(".dedupenotify .ui-notify-close").click();
|
||||
});
|
||||
|
||||
var profileBottomCount = Number({/literal}{$profilePostMultiple|@count}{literal});
|
||||
var profileBottomCountAdd = Number({/literal}{$profilePostMultipleAdd|@count}{literal});
|
||||
|
||||
function addBottomProfile( e ) {
|
||||
var urlPath;
|
||||
e.preventDefault();
|
||||
|
||||
var addtlPartc = $(this).data('addtlPartc');
|
||||
|
||||
if ($(this).closest("td").children("input").attr("name").indexOf("additional_custom_post") > -1 || addtlPartc) {
|
||||
profileBottomCountAdd++
|
||||
urlPath = CRM.url('civicrm/event/manage/registration', { addProfileBottomAdd: 1, addProfileNumAdd: profileBottomCountAdd, snippet: 4 } ) ;
|
||||
} else {
|
||||
profileBottomCount++;
|
||||
urlPath = CRM.url('civicrm/event/manage/registration', { addProfileBottom: 1 , addProfileNum : profileBottomCount, snippet: 4 } ) ;
|
||||
}
|
||||
|
||||
$(this).closest('tbody').append('<tr class="additional_profile"></tr>');
|
||||
var $el = $(this).closest('tbody').find('tr:last');
|
||||
$el.load(urlPath, function() { $(this).trigger('crmLoad') });
|
||||
$(this).closest(".profile_bottom_link_main, .profile_bottom_link, .profile_bottom_add_link_main").hide();
|
||||
$el.find(".profile_bottom_link_main, .profile_bottom_link, .profile_bottom_add_link_main").show();
|
||||
}
|
||||
|
||||
function removeBottomProfile( e ) {
|
||||
e.preventDefault();
|
||||
|
||||
$(e.target).closest('tr').hide().find('.crm-profile-selector').val('');
|
||||
$(e.target).closest('tbody').find('tr:visible:last .profile_bottom_link_main,tr:visible:last .profile_bottom_add_link, tr:visible:last .profile_bottom_link, tr:visible:last .profile_bottom_add_link_main').show();
|
||||
}
|
||||
|
||||
var
|
||||
strSameAs = '{/literal}{ts escape='js'}- same as for main contact -{/ts}{literal}',
|
||||
strSelect = '{/literal}{ts escape='js'}- select -{/ts}{literal}';
|
||||
|
||||
$('#crm-container').on('crmLoad', function() {
|
||||
var $container = $("[id^='additional_profile_'],.additional_profile").not('.processed').addClass('processed');
|
||||
$container.find(".crm-profile-selector-select select").each( function() {
|
||||
var $select = $(this);
|
||||
var selected = $select.find(':selected').val(); //cache the default
|
||||
$select.find('option[value=""]').remove();
|
||||
$select.prepend('<option value="">'+strSameAs+'</option>');
|
||||
if ($select.closest('tr').is(':not([id*="_pre"])')) {
|
||||
$select.prepend('<option value="">'+strSelect+'</option>');
|
||||
}
|
||||
$select.find('option[value="'+selected+'"]').attr('selected', 'selected'); //restore default
|
||||
});
|
||||
});
|
||||
|
||||
$(function($) {
|
||||
|
||||
var allow_multiple = $("#is_multiple_registrations");
|
||||
if ( !allow_multiple.prop('checked') ) {
|
||||
$('#additional_profile_pre,#additional_profile_post,#id-max-additional-participants').hide();
|
||||
}
|
||||
allow_multiple.change( function( ) {
|
||||
if ( !$(this).prop('checked') ) {
|
||||
$("#additional_custom_pre_id,#additional_custom_post_id").val('');
|
||||
$(".crm-event-manage-registration-form-block-additional_custom_post_multiple").hide();
|
||||
$('#additional_profile_pre,#additional_profile_post,#id-max-additional-participants').hide();
|
||||
} else {
|
||||
$(".crm-event-manage-registration-form-block-additional_custom_post_multiple").show();
|
||||
$('#additional_profile_pre,#additional_profile_post,#id-max-additional-participants').show();
|
||||
}
|
||||
});
|
||||
|
||||
var allow_selfCancel = $("#allow_selfcancelxfer");
|
||||
if ( !allow_selfCancel.prop('checked') ) {
|
||||
$('#selfcancelxfer_time').hide();
|
||||
$('.crm-event-manage-registration-form-block-selfcancelxfer_time').hide();
|
||||
}
|
||||
allow_selfCancel.change( function( ) {
|
||||
if ( !$(this).prop('checked') ) {
|
||||
$("#selfcancelxfer_time").val('');
|
||||
$('#selfcancelxfer_time').hide();
|
||||
$('.crm-event-manage-registration-form-block-selfcancelxfer_time').hide();
|
||||
} else {
|
||||
$('#selfcancelxfer_time').show();
|
||||
$('.crm-event-manage-registration-form-block-selfcancelxfer_time').show();
|
||||
}
|
||||
|
||||
});
|
||||
|
||||
$('#registration_blocks').on('click', '.crm-button-add-profile', addBottomProfile);
|
||||
$('#registration_blocks').on('click', '.crm-button-rem-profile', removeBottomProfile);
|
||||
|
||||
$('#crm-container').on('crmLoad', function(e) {
|
||||
$('tr[id^="additional_profile"] input[id^="additional_custom_"]').change(function(e) {
|
||||
var $input = $(e.target);
|
||||
if ( $input.val() == '') {
|
||||
var $selected = $input.closest('tr').find('.crm-profile-selector-select :selected');
|
||||
if ($selected.text() == strSelect) { $input.val('none'); }
|
||||
}
|
||||
});
|
||||
});
|
||||
|
||||
}); // END onReady
|
||||
}(CRM.$, CRM._)); //Generic Closure
|
||||
{/literal}
|
||||
</script>
|
||||
{/if}
|
|
@ -0,0 +1,78 @@
|
|||
{*
|
||||
+--------------------------------------------------------------------+
|
||||
| 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="crm-block crm-form-block crm-event-manage-repeat-form-block">
|
||||
{include file="CRM/Core/Form/RecurringEntity.tpl" recurringFormIsEmbedded=false}
|
||||
{if $rows}
|
||||
<div class="crm-block crm-manage-events crm-accordion-wrapper">
|
||||
<div class="crm-accordion-header">{ts}Connected Repeating Events{/ts}</div>
|
||||
<div class="crm-accordion-body">
|
||||
{strip}
|
||||
{include file="CRM/common/jsortable.tpl"}
|
||||
<table id="options" class="display">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>{ts}Event{/ts}</th>
|
||||
<th>{ts}Public?{/ts}</th>
|
||||
<th>{ts}Starts{/ts}</th>
|
||||
<th>{ts}Ends{/ts}</th>
|
||||
<th>{ts}Active?{/ts}</th>
|
||||
<th>{ts}Event Link{/ts}</th>
|
||||
<th class="hiddenElement"></th>
|
||||
<th class="hiddenElement"></th>
|
||||
</tr>
|
||||
</thead>
|
||||
{foreach from=$rows key=keys item=row}
|
||||
{if $keys neq 'tab'}
|
||||
{if $currentEventId eq $row.id}
|
||||
{assign var="highlight" value=" status bold"}
|
||||
{else}
|
||||
{assign var="highlight" value=""}
|
||||
{/if}
|
||||
<tr class="row_{$row.id}{if NOT $row.is_active} disabled{/if}">
|
||||
<td class="crm-event_{$row.id}{$highlight}">
|
||||
<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> ({ts}ID:{/ts} {$row.id})
|
||||
</td>
|
||||
<td class="crm-event-is_public{$highlight}">{if $row.is_public eq 1} {ts}Yes{/ts} {else} {ts}No{/ts} {/if}</td>
|
||||
<td class="crm-event-start_date{$highlight}" 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{$highlight}" data-order="{$row.end_date|crmDate:'%Y-%m-%d'}">{$row.end_date|crmDate:"%b %d, %Y %l:%M %P"}</td>
|
||||
<td class="crm-event_status{$highlight}" id="row_{$row.id}_status">
|
||||
{if $row.is_active eq 1}{ts}Yes{/ts} {else} {ts}No{/ts} {/if}
|
||||
</td>
|
||||
<td class="{$highlight}">
|
||||
<a class="action-item no-popup crm-hover-button" href="{crmURL p="civicrm/event/manage/settings" q="reset=1&action=update&id=`$row.id`"}">{ts}Settings{/ts}</a>
|
||||
</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>
|
||||
{/strip}
|
||||
</div>
|
||||
</div>
|
||||
{/if}
|
||||
</div>
|
|
@ -0,0 +1,87 @@
|
|||
{*
|
||||
+--------------------------------------------------------------------+
|
||||
| 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-configure-events-title"}
|
||||
{ts}Event Configuration{/ts}
|
||||
{/htxt}
|
||||
{htxt id="id-configure-events"}
|
||||
<table>
|
||||
<tr>
|
||||
<td><a href="{crmURL p='civicrm/event/manage/settings' q="reset=1&action=update&id=`$params.eventId`"}" id="idEventInformationandSettings">» {ts}Info & Settings{/ts}</a></td>
|
||||
<td>{ts}Set event title, type (conference, performance etc.), description, start and end dates, maximum number of participants, and activate the event. Enable the public participant listing feature.{/ts}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><a href="{crmURL p='civicrm/event/manage/location' q="reset=1&action=update&id=`$params.eventId`"}" id="idLocation">» {ts}Location{/ts}</a></td>
|
||||
<td>{ts}Set event location and event contact information (email and phone).{/ts}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><a href="{crmURL p='civicrm/event/manage/fee' q="reset=1&action=update&id=`$params.eventId`"}" id="idFee">» {ts}Fees{/ts}</a></td>
|
||||
<td>{ts}Determine if the event is free or paid. For paid events, set the payment processor, fee level(s) and discounts. Give online registrants the option to 'pay later' (e.g. mail in a check, call in a credit card, etc.).{/ts}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><a href="{crmURL p='civicrm/event/manage/registration' q="reset=1&action=update&id=`$params.eventId`"}" id="idRegistration">» {ts}Online Registration{/ts}</a></td>
|
||||
<td>{ts}Determine whether an online registration page is available. If so, configure registration, confirmation and thank you page elements and confirmation email details.{/ts}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><a href="{crmURL p='civicrm/event/manage/friend' q="reset=1&action=update&id=`$params.eventId`"}" id="idFriend">» {ts}Tell a Friend{/ts}</a></td>
|
||||
<td>{ts}Make it easy for participants to spread the word about this event to friends and colleagues.{/ts}</td>
|
||||
</tr>
|
||||
|
||||
{if !$params.isTemplate}
|
||||
<tr>
|
||||
{if $params.participantListingURL}
|
||||
<td><a href="{$params.participantListingURL}" id="idParticipantListing">» {ts}Participant Listing{/ts}</a></td>
|
||||
{if $config->userSystem->is_drupal}
|
||||
<td>{ts 1=$params.participantListingURL}The following URL will display a list of registered participants for this event to users whose role includes "view event participants" permission: <a href="%1">%1</a>{/ts}</td>
|
||||
{else}
|
||||
<td>{ts 1=$params.participantListingURL}The following URL will display a list of registered participants for this event: <a href="%1">%1</a>{/ts}</td>
|
||||
{/if}
|
||||
{else}
|
||||
<td>» {ts}Participant Listing{/ts}</td>
|
||||
<td>{ts}Participant Listing is not enabled for this event. You can enable it from{/ts} <a href="{crmURL p='civicrm/event/manage/settings' q="reset=1&action=update&id=`$params.eventId`"}">{ts}Event Information and Settings{/ts}</a>.
|
||||
{/if}
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td><a href="{crmURL p='civicrm/event/info' q="reset=1&id=`$params.eventId`" fe=1}" id="idDisplayEvent">» {ts}Event Info{/ts}</a></td>
|
||||
<td>{ts}View the Event Information page as it will be displayed to site visitors.{/ts}</td>
|
||||
</tr>
|
||||
|
||||
{if $params.isOnlineRegistration}
|
||||
<tr>
|
||||
<td><a href="{crmURL p='civicrm/event/register' q="reset=1&action=preview&id=`$params.eventId`" a=1 fe=1}" id="idTest-drive">» {ts}Registration{/ts}</a><br />({ts}test-drive{/ts})</td>
|
||||
<td>{ts}Test-drive the entire online registration process - including custom fields, confirmation, thank-you page, and receipting. Fee payment transactions will be directed to your payment processor's test server. <strong>No live financial transactions will be submitted. However, a contact record will be created or updated and participant and contribution records will be saved to the database. Use obvious test contact names so you can review and delete these records as needed.</strong>{/ts}</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td><a href="{crmURL a=1 fe=1 p='civicrm/event/register' q="reset=1&id=`$params.eventId`"}" id="idLive">» {ts}Registration{/ts}</a><br />({ts}live{/ts})</td>
|
||||
<td>{ts}Review your customized <strong>LIVE</strong> online event registration page here. Use the following URL in links and buttons on any website to send visitors to this live page{/ts}:<br />
|
||||
<strong>{crmURL a=1 fe=1 p='civicrm/event/register' q="reset=1&id=`$params.eventId`"}</strong>
|
||||
</td>
|
||||
</tr>
|
||||
{/if}
|
||||
{/if}
|
||||
</table>
|
||||
{/htxt}
|
|
@ -0,0 +1,109 @@
|
|||
{*
|
||||
+--------------------------------------------------------------------+
|
||||
| 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 |
|
||||
+--------------------------------------------------------------------+
|
||||
*}
|
||||
{* Don't show action buttons for event templates *}
|
||||
{if ! $isTemplate}
|
||||
<div class="crm-actions-ribbon crm-event-manage-tab-actions-ribbon">
|
||||
<ul id="actions">
|
||||
<li><div id="crm-event-links-wrapper">
|
||||
{crmButton id="crm-event-links-link" href="#" icon="bars"}{ts}Event Links{/ts}{/crmButton}
|
||||
<div class="ac_results" id="crm-event-links-list">
|
||||
<div class="crm-event-links-list-inner">
|
||||
<ul>
|
||||
<li><a class="crm-event-participant" href="{crmURL p='civicrm/participant/add' q="reset=1&action=add&context=standalone&eid=`$id`"}">{ts}Register Participant{/ts}</a></li>
|
||||
<li><a class="crm-event-info" href="{crmURL p='civicrm/event/info' q="reset=1&id=`$id`" fe='true'}" target="_blank">{ts}Event Info{/ts}</a></li>
|
||||
{if $isOnlineRegistration}
|
||||
<li><a class="crm-event-test" href="{crmURL p='civicrm/event/register' q="reset=1&action=preview&id=`$id`"}">{ts}Online Registration (Test-drive){/ts}</a></li>
|
||||
<li><a class="crm-event-live" href="{crmURL p='civicrm/event/register' q="reset=1&id=`$id`" fe='true'}" target="_blank">{ts}Online Registration (Live){/ts}</a></li>
|
||||
{/if}
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
</div></li>
|
||||
|
||||
<li><div id="crm-participant-wrapper">
|
||||
{crmButton id="crm-participant-link" href="#" icon="bars"}{ts}Find Participants{/ts}{/crmButton}
|
||||
<div class="ac_results" id="crm-participant-list">
|
||||
<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=`$id`&status=true"}">{$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=`$id`&status=false"}">{$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>
|
||||
|
||||
<li><div>
|
||||
{help id="id-configure-events" isTemplate=$isTemplate participantListingURL=$participantListingURL isOnlineRegistration=$isOnlineRegistration eventId=$id}
|
||||
</div></li>
|
||||
</ul>
|
||||
<div class="clear"></div>
|
||||
</div>
|
||||
{/if}
|
||||
|
||||
{include file="CRM/common/TabHeader.tpl"}
|
||||
|
||||
{literal}
|
||||
<script>
|
||||
CRM.$(function($) {
|
||||
$('body').click(function() {
|
||||
$('#crm-event-links-list, #crm-participant-list').hide();
|
||||
});
|
||||
|
||||
$('#crm-event-links-link').click(function(event) {
|
||||
$('#crm-event-links-list').toggle();
|
||||
$('#crm-participant-list').hide();
|
||||
event.stopPropagation();
|
||||
return false;
|
||||
});
|
||||
|
||||
$('#crm-participant-link').click(function(event) {
|
||||
$('#crm-participant-list').toggle();
|
||||
$('#crm-event-links-list').hide();
|
||||
event.stopPropagation();
|
||||
return false;
|
||||
});
|
||||
|
||||
// Update title dynamically
|
||||
$('h1').each(function() {
|
||||
var title = {/literal}{$title|json_encode}{literal};
|
||||
$(this).html($(this).html().replace(title, '<span id="crm-event-name-page-title">' + title + '</span>'));
|
||||
});
|
||||
$('#crm-main-content-wrapper').on('keyup change', 'input#title', function() {
|
||||
$('#crm-event-name-page-title').text($(this).val());
|
||||
});
|
||||
|
||||
});
|
||||
</script>
|
||||
{/literal}
|
||||
{include file="CRM/Event/Form/ManageEvent/ConfirmRepeatMode.tpl" entityID=$id entityTable="civicrm_event"}
|
|
@ -0,0 +1,469 @@
|
|||
{*
|
||||
+--------------------------------------------------------------------+
|
||||
| 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 adding/editing/deleting offline Event Registrations *}
|
||||
|
||||
{* Ajax callback for showing event fee snippet *}
|
||||
{if $showFeeBlock}
|
||||
{if $priceSet}
|
||||
<div id='validate_pricefield' class='messages crm-error hiddenElement'></div>
|
||||
{literal}
|
||||
<script type="text/javascript">
|
||||
|
||||
var fieldOptionsFull = [];
|
||||
{/literal}
|
||||
{foreach from=$priceSet.fields item=fldElement key=fldId}
|
||||
{if $fldElement.options}
|
||||
{foreach from=$fldElement.options item=fldOptions key=opId}
|
||||
{if $fldOptions.is_full}
|
||||
{literal}
|
||||
fieldOptionsFull[{/literal}{$fldId}{literal}] = [];
|
||||
fieldOptionsFull[{/literal}{$fldId}{literal}][{/literal}{$opId}{literal}] = 1;
|
||||
{/literal}
|
||||
{/if}
|
||||
{/foreach}
|
||||
{/if}
|
||||
{/foreach}
|
||||
{literal}
|
||||
|
||||
if ( fieldOptionsFull.length > 0 ) {
|
||||
CRM.$(function($) {
|
||||
$("input,#priceset select,#priceset").each(function () {
|
||||
if ( $(this).attr('price') ) {
|
||||
switch( $(this).attr('type') ) {
|
||||
case 'checkbox':
|
||||
case 'radio':
|
||||
$(this).click( function() {
|
||||
validatePriceField(this);
|
||||
});
|
||||
break;
|
||||
|
||||
case 'select-one':
|
||||
$(this).change( function() {
|
||||
validatePriceField(this);
|
||||
});
|
||||
break;
|
||||
case 'text':
|
||||
$(this).bind( 'keyup', function() { validatePriceField(this) });
|
||||
break;
|
||||
}
|
||||
}
|
||||
});
|
||||
});
|
||||
|
||||
function validatePriceField( obj ) {
|
||||
var namePart = cj(obj).attr('name').split('_');
|
||||
var fldVal = cj(obj).val();
|
||||
if ( cj(obj).attr('type') == 'checkbox') {
|
||||
var eleIdpart = namePart[1].split('[');
|
||||
var eleId = eleIdpart[0];
|
||||
}
|
||||
else {
|
||||
var eleId = namePart[1];
|
||||
}
|
||||
var showError = false;
|
||||
|
||||
switch( cj(obj).attr('type') ) {
|
||||
case 'text':
|
||||
if ( fieldOptionsFull[eleId] && fldVal ) {
|
||||
showError = true;
|
||||
cj(obj).parent( ).parent( ).children('.label').addClass('crm-error');
|
||||
}
|
||||
else {
|
||||
cj(obj).parent( ).parent( ).children('.label').removeClass('crm-error');
|
||||
cj('#validate_pricefield').hide( ).html('');
|
||||
}
|
||||
break;
|
||||
|
||||
case 'checkbox':
|
||||
var checkBoxValue = eleIdpart[1].split(']');
|
||||
if ( cj(obj).prop("checked") == true &&
|
||||
fieldOptionsFull[eleId] &&
|
||||
fieldOptionsFull[eleId][checkBoxValue[0]]) {
|
||||
showError = true;
|
||||
cj(obj).parent( ).addClass('crm-error');
|
||||
}
|
||||
else {
|
||||
cj(obj).parent( ).removeClass('crm-error');
|
||||
}
|
||||
break;
|
||||
|
||||
default:
|
||||
if ( fieldOptionsFull[eleId] &&
|
||||
fieldOptionsFull[eleId][fldVal] ) {
|
||||
showError = true;
|
||||
cj(obj).parent( ).addClass('crm-error');
|
||||
}
|
||||
else {
|
||||
cj(obj).parent( ).removeClass('crm-error');
|
||||
}
|
||||
}
|
||||
|
||||
if ( showError ) {
|
||||
cj('#validate_pricefield').show().html('<i class="crm-i fa-exclamation-triangle crm-i-red"></i>{/literal} {ts escape='js'}This Option is already full for this event.{/ts}{literal}');
|
||||
}
|
||||
else {
|
||||
cj('#validate_pricefield').hide( ).html('');
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// change the status to default 'partially paid' for partial payments
|
||||
var feeAmount, userModifiedAmount;
|
||||
var partiallyPaidStatusId = {/literal}{$partiallyPaidStatusId}{literal};
|
||||
|
||||
cj('#total_amount')
|
||||
.focus(
|
||||
function() {
|
||||
feeAmount = cj(this).val();
|
||||
feeAmount = Number(feeAmount.replace(/[^0-9\.]+/g,""));
|
||||
}
|
||||
)
|
||||
.change(
|
||||
function() {
|
||||
userModifiedAmount = cj(this).val();
|
||||
userModifiedAmount = Number(userModifiedAmount.replace(/[^0-9\.]+/g,""));
|
||||
if (userModifiedAmount < feeAmount) {
|
||||
cj('#status_id').val(partiallyPaidStatusId).change();
|
||||
}
|
||||
}
|
||||
);
|
||||
|
||||
cj('form[name=Participant]').on("click", '.validate',
|
||||
function(e) {
|
||||
if (CRM.$('#total_amount').length == 0) {
|
||||
var $balance = CRM.$('#payment-info-balance');
|
||||
if ($balance.length > 0 && parseFloat($balance.attr('data-balance')) == 0) {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
var userSubmittedStatus = cj('#status_id').val();
|
||||
var statusLabel = cj('#status_id option:selected').text();
|
||||
if (userModifiedAmount < feeAmount && userSubmittedStatus != partiallyPaidStatusId) {
|
||||
var msg = "{/literal}{ts escape="js" 1="%1"}Payment amount is less than the amount owed. Expected participant status is 'Partially paid'. Are you sure you want to set the participant status to %1? Click OK to continue, Cancel to change your entries.{/ts}{literal}";
|
||||
var result = confirm(ts(msg, {1: statusLabel}));
|
||||
if (result == false) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
}
|
||||
);
|
||||
</script>
|
||||
{/literal}
|
||||
{/if}
|
||||
|
||||
{include file="CRM/Event/Form/EventFees.tpl"}
|
||||
|
||||
{* Main event form template *}
|
||||
{else}
|
||||
{if $participantMode == 'test' }
|
||||
{assign var=registerMode value="TEST"}
|
||||
{elseif $participantMode == 'live'}
|
||||
{assign var=registerMode value="LIVE"}
|
||||
{/if}
|
||||
<div class="crm-block crm-form-block crm-participant-form-block">
|
||||
<div class="view-content">
|
||||
{if $participantMode}
|
||||
<div class="help">
|
||||
{ts 1=$displayName 2=$registerMode}Use this form to submit an event registration on behalf of %1. <strong>A %2 transaction will be submitted</strong> using the selected payment processor.{/ts}
|
||||
</div>
|
||||
{/if}
|
||||
<div id="eventFullMsg" class="messages status no-popup" style="display:none;"></div>
|
||||
|
||||
|
||||
{if $action eq 1 AND $paid}
|
||||
<div class="help">
|
||||
{ts}If you are accepting offline payment from this participant, check <strong>Record Payment</strong>. You will be able to fill in the payment information, and optionally send a receipt.{/ts}
|
||||
</div>
|
||||
{/if}
|
||||
|
||||
{if $action eq 8} {* If action is Delete *}
|
||||
<div class="crm-participant-form-block-delete messages status no-popup">
|
||||
<div class="crm-content">
|
||||
<div class="icon inform-icon"></div>
|
||||
{ts}WARNING: Deleting this registration will result in the loss of related payment records (if any).{/ts} {ts}Do you want to continue?{/ts}
|
||||
</div>
|
||||
{if $additionalParticipant}
|
||||
<div class="crm-content">
|
||||
{ts 1=$additionalParticipant} There are %1 more Participant(s) registered by this participant.{/ts}
|
||||
</div>
|
||||
{/if}
|
||||
</div>
|
||||
{if $additionalParticipant}
|
||||
{$form.delete_participant.html}
|
||||
{/if}
|
||||
{else} {* If action is other than Delete *}
|
||||
<div class="crm-submit-buttons">{include file="CRM/common/formButtons.tpl" location="top"}</div>
|
||||
<table class="form-layout-compressed">
|
||||
{if $single and $context neq 'standalone'}
|
||||
<tr class="crm-participant-form-block-displayName">
|
||||
<td class="label font-size12pt"><label>{ts}Participant{/ts}</label></td>
|
||||
<td class="font-size12pt view-value">{$displayName} </td>
|
||||
</tr>
|
||||
{else}
|
||||
<tr class="crm-participant-form-contact-id">
|
||||
<td class="label">{$form.contact_id.label}</td>
|
||||
<td>{$form.contact_id.html}</td>
|
||||
</tr>
|
||||
{/if}
|
||||
{if $action EQ 2}
|
||||
{if $additionalParticipants} {* Display others registered by this participant *}
|
||||
<tr class="crm-participant-form-block-additionalParticipants">
|
||||
<td class="label"><label>{ts}Also Registered by this Participant{/ts}</label></td>
|
||||
<td>
|
||||
{foreach from=$additionalParticipants key=apName item=apURL}
|
||||
<a href="{$apURL}" title="{ts}view additional participant{/ts}">{$apName}</a><br />
|
||||
{/foreach}
|
||||
</td>
|
||||
</tr>
|
||||
{/if}
|
||||
{if $registered_by_contact_id}
|
||||
<tr class="crm-participant-form-block-registered-by">
|
||||
<td class="label"><label>{ts}Registered By{/ts}</label></td>
|
||||
<td class="view-value">
|
||||
<a href="{crmURL p='civicrm/contact/view/participant' q="reset=1&id=$participant_registered_by_id&cid=$registered_by_contact_id&action=view"}"
|
||||
title="{ts}view primary participant{/ts}">{$registered_by_display_name}</a>
|
||||
</td>
|
||||
</tr>
|
||||
{/if}
|
||||
{/if}
|
||||
<tr class="crm-participant-form-block-event_id">
|
||||
<td class="label">{$form.event_id.label}</td>
|
||||
<td class="view-value">
|
||||
{$form.event_id.html}
|
||||
{if $is_test}
|
||||
{ts}(test){/ts}
|
||||
{/if}
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
{* CRM-7362 --add campaign *}
|
||||
{include file="CRM/Campaign/Form/addCampaignToComponent.tpl" campaignTrClass="crm-participant-form-block-campaign_id"}
|
||||
|
||||
<tr class="crm-participant-form-block-role_id">
|
||||
<td class="label">{$form.role_id.label}</td>
|
||||
<td>{$form.role_id.html}</td>
|
||||
</tr>
|
||||
<tr class="crm-participant-form-block-register_date">
|
||||
<td class="label">{$form.register_date.label}</td>
|
||||
<td>
|
||||
{if $hideCalendar neq true}
|
||||
{include file="CRM/common/jcalendar.tpl" elementName=register_date}
|
||||
{else}
|
||||
{$form.register_date.value|crmDate}
|
||||
{/if}
|
||||
</td>
|
||||
</tr>
|
||||
<tr class="crm-participant-form-block-status_id">
|
||||
<td class="label">{$form.status_id.label}</td>
|
||||
<td>{$form.status_id.html}{if $event_is_test} {ts}(test){/ts}{/if}
|
||||
<div id="notify">{$form.is_notify.html}{$form.is_notify.label}</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr class="crm-participant-form-block-source">
|
||||
<td class="label">{$form.source.label}</td><td>{$form.source.html|crmAddClass:huge}<br />
|
||||
<span class="description">{ts}Source for this registration (if applicable).{/ts}</span></td>
|
||||
</tr>
|
||||
{if $participantMode}
|
||||
<tr class="crm-participant-form-block-payment_processor_id">
|
||||
<td class="label nowrap">{$form.payment_processor_id.label}</td>
|
||||
<td>{$form.payment_processor_id.html}</td>
|
||||
</tr>
|
||||
{/if}
|
||||
</table>
|
||||
{if $participantId and $hasPayment}
|
||||
<table class='form-layout'>
|
||||
<tr>
|
||||
<td class='label'>{ts}Fees{/ts}</td>
|
||||
{* this is where the payment info is shown using CRM/Contribute/Page/PaymentInfo.tpl tpl*}
|
||||
<td id='payment-info'></td>
|
||||
</tr>
|
||||
</table>
|
||||
{/if}
|
||||
{* Fee block (EventFees.tpl) is injected here when an event is selected. *}
|
||||
<div class="crm-event-form-fee-block"></div>
|
||||
<fieldset>
|
||||
<table class="form-layout">
|
||||
<tr class="crm-participant-form-block-note">
|
||||
<td class="label">{$form.note.label}</td><td>{$form.note.html}</td>
|
||||
</tr>
|
||||
</table>
|
||||
</fieldset>
|
||||
|
||||
<div class="crm-participant-form-block-customData">
|
||||
<div id="customData" class="crm-customData-block"></div> {* Participant Custom data *}
|
||||
<div id="customData{$eventNameCustomDataTypeID}" class="crm-customData-block"></div> {* Event Custom Data *}
|
||||
<div id="customData{$roleCustomDataTypeID}" class="crm-customData-block"></div> {* Role Custom Data *}
|
||||
<div id="customData{$eventTypeCustomDataTypeID}" class="crm-customData-block"></div> {* Role Custom Data *}
|
||||
</div>
|
||||
{/if}
|
||||
|
||||
{if $accessContribution and $action eq 2 and $rows.0.contribution_id}
|
||||
{include file="CRM/Contribute/Form/Selector.tpl" context="Search"}
|
||||
{/if}
|
||||
|
||||
<div class="crm-submit-buttons">{include file="CRM/common/formButtons.tpl" location="bottom"}</div>
|
||||
</div>
|
||||
</div>
|
||||
{* JS block for ADD or UPDATE actions only *}
|
||||
{if $action eq 1 or $action eq 2}
|
||||
{if $participantId and $hasPayment}
|
||||
{include file="CRM/Contribute/Page/PaymentInfo.tpl" show='payments'}
|
||||
{/if}
|
||||
|
||||
{*include custom data js file*}
|
||||
{include file="CRM/common/customData.tpl"}
|
||||
|
||||
<script type="text/javascript">
|
||||
{literal}
|
||||
CRM.$(function($) {
|
||||
|
||||
var $form = $('form.{/literal}{$form.formClass}{literal}');
|
||||
|
||||
// Handle event selection
|
||||
$('#event_id', $form).change(function() {
|
||||
var eventId = $(this).val();
|
||||
if (!eventId) {
|
||||
return;
|
||||
}
|
||||
var info = $(this).select2('data').extra;
|
||||
|
||||
// Set role from default
|
||||
$('select[name^=role_id]', $form).select2('val', [info.default_role_id], true);
|
||||
|
||||
// Set campaign default
|
||||
$('#campaign_id', $form).select2('val', info.campaign_id);
|
||||
|
||||
// Event and event-type custom data
|
||||
CRM.buildCustomData('Participant', eventId, {/literal}{$eventNameCustomDataTypeID}{literal}, null, null, null, true);
|
||||
CRM.buildCustomData('Participant', info.event_type_id, {/literal}{$eventTypeCustomDataTypeID}{literal}, null, null, null, true);
|
||||
|
||||
buildFeeBlock();
|
||||
});
|
||||
|
||||
// Handle participant role selection
|
||||
$('select[name^=role_id]', $form).change(buildRoleCustomData);
|
||||
if ($('select[name^=role_id]', $form).val()) {
|
||||
buildRoleCustomData();
|
||||
}
|
||||
|
||||
buildFeeBlock();
|
||||
|
||||
//build discount block
|
||||
if ($('#discount_id', $form).val()) {
|
||||
buildFeeBlock($('#discount_id', $form).val());
|
||||
}
|
||||
$($form).on('change', '#discount_id', function() {
|
||||
buildFeeBlock($(this).val());
|
||||
});
|
||||
|
||||
function buildRoleCustomData() {
|
||||
var roleId = $('select[name^=role_id]', $form).val() || [];
|
||||
CRM.buildCustomData('Participant', roleId.join(), {/literal}{$roleCustomDataTypeID}{literal});
|
||||
}
|
||||
|
||||
//build fee block
|
||||
function buildFeeBlock(discountId) {
|
||||
var dataUrl = {/literal}"{crmURL p=$urlPath h=0 q="snippet=4&qfKey=$qfKey"}";
|
||||
|
||||
{if $urlPathVar}
|
||||
dataUrl += '&' + '{$urlPathVar}';
|
||||
{/if}
|
||||
|
||||
{literal}
|
||||
var eventId = $('[name=event_id], #event_id', $form).val();
|
||||
|
||||
if (eventId) {
|
||||
dataUrl += '&eventId=' + eventId;
|
||||
}
|
||||
else {
|
||||
$('#eventFullMsg', $form).hide( );
|
||||
$('.crm-event-form-fee-block', $form).html('');
|
||||
return;
|
||||
}
|
||||
|
||||
var participantId = "{/literal}{$participantId}{literal}";
|
||||
|
||||
if (participantId) {
|
||||
dataUrl += '&participantId=' + participantId;
|
||||
}
|
||||
|
||||
if (discountId) {
|
||||
dataUrl += '&discountId=' + discountId;
|
||||
}
|
||||
|
||||
$.ajax({
|
||||
url: dataUrl,
|
||||
success: function ( html ) {
|
||||
$(".crm-event-form-fee-block", $form).html( html ).trigger('crmLoad');
|
||||
//show event real full as well as waiting list message.
|
||||
if ( $("#hidden_eventFullMsg", $form).val( ) ) {
|
||||
$( "#eventFullMsg", $form).show( ).html( $("#hidden_eventFullMsg", $form).val( ) );
|
||||
}
|
||||
else {
|
||||
$( "#eventFullMsg", $form ).hide( );
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
{/literal}
|
||||
CRM.buildCustomData( '{$customDataType}', null, null );
|
||||
{if $eventID}
|
||||
CRM.buildCustomData( '{$customDataType}', {$eventID}, {$eventNameCustomDataTypeID} );
|
||||
{/if}
|
||||
{if $eventTypeID}
|
||||
CRM.buildCustomData( '{$customDataType}', {$eventTypeID}, {$eventTypeCustomDataTypeID} );
|
||||
{/if}
|
||||
{literal}
|
||||
|
||||
});
|
||||
</script>
|
||||
{/literal}
|
||||
|
||||
{/if}
|
||||
|
||||
|
||||
<script type="text/javascript">
|
||||
{literal}
|
||||
|
||||
sendNotification();
|
||||
function sendNotification() {
|
||||
var notificationStatusIds = {/literal}"{$notificationStatusIds}"{literal};
|
||||
notificationStatusIds = notificationStatusIds.split(',');
|
||||
if (cj.inArray(cj('select#status_id option:selected').val(), notificationStatusIds) > -1) {
|
||||
cj("#notify").show();
|
||||
cj("#is_notify").prop('checked', true);
|
||||
}
|
||||
else {
|
||||
cj("#notify").hide();
|
||||
cj("#is_notify").prop('checked', false);
|
||||
}
|
||||
}
|
||||
|
||||
{/literal}
|
||||
</script>
|
||||
|
||||
{/if} {* end of main event block*}
|
|
@ -0,0 +1,235 @@
|
|||
{*
|
||||
+--------------------------------------------------------------------+
|
||||
| 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 to change selections of fees for a participant *}
|
||||
{literal}
|
||||
<script type='text/javascript'>
|
||||
function display(totalfee) {
|
||||
{/literal}{if $optionFullTotalAmount}
|
||||
totalfee += {$optionFullTotalAmount};{/if}
|
||||
{literal};
|
||||
// totalfee is monetary, round it to 2 decimal points so it can
|
||||
// go as a float - CRM-13491
|
||||
totalfee = Math.round(totalfee*100)/100;
|
||||
// note : some variables used used here are global variables defined inside Calculate.tpl
|
||||
var totalEventFee = formatMoney( totalfee, 2, seperator, thousandMarker);
|
||||
cj('#pricevalue').html("<b>"+symbol+"</b> "+totalEventFee);
|
||||
scriptfee = totalfee;
|
||||
scriptarray = price;
|
||||
cj('#total_amount').val(totalfee);
|
||||
( totalfee < 0 ) ? cj('table#pricelabel').addClass('disabled') : cj('table#pricelabel').removeClass('disabled');
|
||||
|
||||
// populate the balance amount div
|
||||
// change the status selections according to updated selections
|
||||
populatebalanceFee(totalfee, false);
|
||||
}
|
||||
|
||||
function populatebalanceFee(updatedAmt, onlyStatusUpdate) {
|
||||
// updatedAmt is: selected line total
|
||||
|
||||
// assign statuses
|
||||
var partiallyPaid = {/literal}{$partiallyPaid}{literal};
|
||||
var pendingRefund = {/literal}{$pendingRefund}{literal};
|
||||
var participantStatus = {/literal}{$participantStatus}{literal};
|
||||
|
||||
// fee actually paid
|
||||
var feePaid = {/literal}{$feePaid}{literal};
|
||||
|
||||
var updatedTotalLineTotal = updatedAmt;
|
||||
|
||||
{/literal}{if $totalLineTotal}{literal}
|
||||
// line total of current participant stored in DB
|
||||
var linetotal = {/literal}{$lineItemTotal}{literal};
|
||||
|
||||
// line total of all the participants
|
||||
var totalLineTotal = {/literal}{$totalLineTotal}{literal};
|
||||
updatedTotalLineTotal = totalLineTotal + (updatedAmt - linetotal);
|
||||
{/literal}{/if}{literal}
|
||||
|
||||
// calculate the balance amount using total paid and updated amount
|
||||
var balanceAmt = updatedTotalLineTotal - feePaid;
|
||||
|
||||
// change the status selections according to updated selections
|
||||
if (balanceAmt > 0 && feePaid != 0) {
|
||||
cj('#status_id').val(partiallyPaid);
|
||||
}
|
||||
else if(balanceAmt < 0) {
|
||||
cj('#status_id').val(pendingRefund);
|
||||
}
|
||||
else {
|
||||
cj('#status_id').val(participantStatus);
|
||||
}
|
||||
|
||||
if (!onlyStatusUpdate) {
|
||||
balanceAmt = formatMoney(balanceAmt, 2, seperator, thousandMarker);
|
||||
cj('#balance-fee').text(symbol+" "+balanceAmt);
|
||||
}
|
||||
}
|
||||
|
||||
CRM.$(function($) {
|
||||
var updatedFeeUnFormatted = $('#pricevalue').text();
|
||||
var updatedAmt = parseFloat(updatedFeeUnFormatted.replace(/[^0-9-.]/g, ''));
|
||||
|
||||
populatebalanceFee(updatedAmt, true);
|
||||
});
|
||||
|
||||
{/literal}
|
||||
</script>
|
||||
<h3>Change Registration Selections</h3>
|
||||
|
||||
<div class="crm-block crm-form-block crm-payment-form-block">
|
||||
<div class="crm-submit-buttons">{include file="CRM/common/formButtons.tpl" location="bottom"}</div>
|
||||
{if !$email}
|
||||
<div class="messages status no-popup">
|
||||
<i class="crm-i fa-info-circle"></i> {ts}You will not be able to send an automatic email receipt for this payment because there is no email address recorded for this contact. If you want a receipt to be sent when this payment is recorded, click Cancel and then click Edit from the Summary tab to add an email address before recording the payment.{/ts}
|
||||
</div>
|
||||
{/if}
|
||||
<table class="form-layout">
|
||||
<tr>
|
||||
<td class="font-size12pt label"><strong>{ts}Participant{/ts}</strong></td><td class="font-size12pt"><strong>{$displayName}</strong></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class='label'>{ts}Event{/ts}</td><td>{$eventName}</td>
|
||||
</tr>
|
||||
<tr class="crm-participant-form-block-status_id">
|
||||
<td class="label">{$form.status_id.label}</td>
|
||||
<td>{$form.status_id.html}</td>
|
||||
</tr>
|
||||
{if $lineItem}
|
||||
<tr class="crm-event-eventfees-form-block-line_items">
|
||||
<td class="label">{ts}Current Selections{/ts}</td>
|
||||
<td>{include file="CRM/Price/Page/LineItem.tpl" context="Event"}</td>
|
||||
</tr>
|
||||
{/if}
|
||||
</table>
|
||||
|
||||
{if $priceSet.fields}
|
||||
<fieldset id="priceset" class="crm-group priceset-group">
|
||||
<table class='form-layout'>
|
||||
<tr class="crm-event-eventfees-form-block-price_set_amount">
|
||||
<td class="label" style="padding-top: 10px;">{$form.amount.label}</td>
|
||||
<td class="view-value"><table class="form-layout">{include file="CRM/Price/Form/PriceSet.tpl" extends="Event" noCalcValueDisplay=0 context="participant"}</table></td>
|
||||
</tr>
|
||||
{if $paymentInfo}
|
||||
<tr><td></td><td>
|
||||
<div class='crm-section'>
|
||||
<div class='label'>{ts}Updated Fee(s){/ts}</div><div id="pricevalue" class='content updated-fee'></div>
|
||||
<div class='label'>{ts}Total Paid{/ts}</div>
|
||||
<div class='content'>
|
||||
{$paymentInfo.paid|crmMoney}<br/>
|
||||
<a class="crm-hover-button action-item crm-popup medium-popup" href='{crmURL p="civicrm/payment" q="view=transaction&action=browse&cid=`$contactId`&id=`$paymentInfo.id`&component=`$paymentInfo.component`&context=transaction"}'><i class="crm-i fa-list-alt"></i> {ts}view payments{/ts}</a>
|
||||
</div>
|
||||
<div class='label'><strong>{ts}Balance Owed{/ts}</strong></div><div class='content'><strong id='balance-fee'></strong></div>
|
||||
</div>
|
||||
{include file='CRM/Price/Form/Calculate.tpl' currencySymbol=$currencySymbol noCalcValueDisplay=1 displayOveride='true'}
|
||||
{/if}
|
||||
</table>
|
||||
</fieldset>
|
||||
{/if}
|
||||
{if $email}
|
||||
<fieldset id="email-receipt"><legend>{ts}Participant Confirmation{/ts}</legend>
|
||||
<table class="form-layout" style="width:auto;">
|
||||
<tr class="crm-event-eventfees-form-block-send_receipt">
|
||||
<td class="label">{ts}Send Confirmation{/ts}</td>
|
||||
<td>{$form.send_receipt.html}<br>
|
||||
<span class="description">{ts 1=$email}Automatically email a confirmation to %1?{/ts}</span>
|
||||
</td>
|
||||
</tr>
|
||||
<tr id="from-email" class="crm-event-eventfees-form-block-from_email_address">
|
||||
<td class="label">{$form.from_email_address.label}</td>
|
||||
<td>{$form.from_email_address.html} {help id ="id-from_email" file="CRM/Contact/Form/Task/Email.hlp"}</td>
|
||||
</tr>
|
||||
<tr id='notice' class="crm-event-eventfees-form-block-receipt_text">
|
||||
<td class="label">{$form.receipt_text.label}</td>
|
||||
<td><span class="description">
|
||||
{ts}Enter a message you want included at the beginning of the confirmation email. EXAMPLE: 'We have made the changes you requested to your registration.'{/ts}
|
||||
</span><br />
|
||||
{$form.receipt_text.html|crmAddClass:huge}
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</fieldset>
|
||||
{/if}
|
||||
<fieldset>
|
||||
<table class="form-layout">
|
||||
<tr class="crm-participant-form-block-note">
|
||||
<td class="label">{$form.note.label}</td><td>{$form.note.html}</td>
|
||||
</tr>
|
||||
</table>
|
||||
</fieldset>
|
||||
<div class="crm-submit-buttons">{include file="CRM/common/formButtons.tpl" location="bottom"}</div>
|
||||
</div>
|
||||
{if $email}
|
||||
{include file="CRM/common/showHideByFieldValue.tpl"
|
||||
trigger_field_id ="send_receipt"
|
||||
trigger_value =""
|
||||
target_element_id ="notice"
|
||||
target_element_type ="table-row"
|
||||
field_type ="radio"
|
||||
invert = 0
|
||||
}
|
||||
{include file="CRM/common/showHideByFieldValue.tpl"
|
||||
trigger_field_id ="send_receipt"
|
||||
trigger_value =""
|
||||
target_element_id ="from-email"
|
||||
target_element_type ="table-row"
|
||||
field_type ="radio"
|
||||
invert = 0
|
||||
}
|
||||
{/if}
|
||||
{literal}
|
||||
<script type='text/javascript'>
|
||||
CRM.$(function($) {
|
||||
var $form = $('form.{/literal}{$form.formClass}{literal}');
|
||||
cj('.total_amount-section').remove();
|
||||
|
||||
cj($form).submit(function(e) {
|
||||
var partiallyPaid = {/literal}{$partiallyPaid}{literal};
|
||||
var pendingRefund = {/literal}{$pendingRefund}{literal};
|
||||
var statusId = cj('#status_id').val();
|
||||
var statusLabel = cj('#status_id option:selected').text();
|
||||
var balanceFee = cj('#balance-fee').text();
|
||||
|
||||
// fee actually paid
|
||||
var feePaid = {/literal}{$feePaid}{literal};
|
||||
|
||||
balanceFee = parseFloat(balanceFee.replace(/[^0-9-.]/g, ''));
|
||||
|
||||
if ((balanceFee > 0 && feePaid != 0) && statusId != partiallyPaid) {
|
||||
var result = confirm('Balance is owing for the updated selections. Expected participant status is \'Partially paid\'. Are you sure you want to set the participant status to ' + statusLabel + ' ? Click OK to continue, Cancel to change your entries.');
|
||||
if (result == false) {
|
||||
e.preventDefault();
|
||||
}
|
||||
}
|
||||
else if ((balanceFee < 0 && feePaid != 0) && statusId != pendingRefund) {
|
||||
var result = confirm('Balance is overpaid for the updated selections. Expected participant status is \'Pending refund\'. Are you sure you want to set the participant status to ' + statusLabel + ' ? Click OK to continue, Cancel to change your entries');
|
||||
if (result == false) {
|
||||
e.preventDefault();
|
||||
}
|
||||
}
|
||||
});
|
||||
});
|
||||
</script>
|
||||
{/literal}
|
|
@ -0,0 +1,159 @@
|
|||
{*
|
||||
+--------------------------------------------------------------------+
|
||||
| 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 |
|
||||
+--------------------------------------------------------------------+
|
||||
*}
|
||||
{* View existing event registration record. *}
|
||||
<div class="crm-block crm-content-block crm-event-participant-view-form-block">
|
||||
<div class="action-link">
|
||||
<div class="crm-submit-buttons">
|
||||
{if call_user_func(array('CRM_Core_Permission','check'), 'edit event participants')}
|
||||
{assign var='urlParams' value="reset=1&id=$id&cid=$contact_id&action=update&context=$context&selectedChild=event"}
|
||||
{if ( $context eq 'fulltext' || $context eq 'search' ) && $searchKey}
|
||||
{assign var='urlParams' value="reset=1&id=$id&cid=$contact_id&action=update&context=$context&selectedChild=event&key=$searchKey"}
|
||||
{/if}
|
||||
<a class="button" href="{crmURL p='civicrm/contact/view/participant' q=$urlParams}" accesskey="e"><span><i class="crm-i fa-pencil"></i> {ts}Edit{/ts}</span></a>
|
||||
{/if}
|
||||
{if call_user_func(array('CRM_Core_Permission','check'), 'delete in CiviEvent')}
|
||||
{assign var='urlParams' value="reset=1&id=$id&cid=$contact_id&action=delete&context=$context&selectedChild=event"}
|
||||
{if ( $context eq 'fulltext' || $context eq 'search' ) && $searchKey}
|
||||
{assign var='urlParams' value="reset=1&id=$id&cid=$contact_id&action=delete&context=$context&selectedChild=event&key=$searchKey"}
|
||||
{/if}
|
||||
<a class="button" href="{crmURL p='civicrm/contact/view/participant' q=$urlParams}"><span><i class="crm-i fa-trash"></i> {ts}Delete{/ts}</span></a>
|
||||
{/if}
|
||||
{include file="CRM/common/formButtons.tpl" location="top"}
|
||||
</div>
|
||||
</div>
|
||||
<table class="crm-info-panel">
|
||||
<tr class="crm-event-participantview-form-block-displayName">
|
||||
<td class="label">{ts}Participant Name{/ts}</td>
|
||||
<td>
|
||||
<strong><a href="{crmURL p='civicrm/contact/view' q="reset=1&cid=$contact_id"}" title="{ts}View contact record{/ts}">{$displayName}</a></strong>
|
||||
<div>
|
||||
<a class="action-item crm-hover-button" href="{crmURL p='civicrm/event/badge' q="reset=1&context=view&id=$id&cid=$contact_id"}"><i class="crm-i fa-print"></i> {ts}Print Name Badge{/ts}</a>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
{if $participant_registered_by_id} {* Display primary participant *}
|
||||
<tr class="crm-event-participantview-form-block-registeredBy">
|
||||
<td class="label">{ts}Registered By{/ts}</td>
|
||||
<td><a href="{crmURL p='civicrm/contact/view/participant' q="reset=1&id=$participant_registered_by_id&cid=$registered_by_contact_id&action=view"}" title="{ts}view primary participant{/ts}">{$registered_by_display_name}</a></td>
|
||||
</tr>
|
||||
{/if}
|
||||
{if $additionalParticipants} {* Display others registered by this participant *}
|
||||
<tr class="crm-event-participantview-form-block-additionalParticipants">
|
||||
<td class="label">{ts}Also Registered by this Participant{/ts}</td>
|
||||
<td>
|
||||
{foreach from=$additionalParticipants key=apName item=apURL}
|
||||
<a href="{$apURL}" title="{ts}view additional participant{/ts}">{$apName}</a><br />
|
||||
{/foreach}
|
||||
</td>
|
||||
</tr>
|
||||
{/if}
|
||||
<tr class="crm-event-participantview-form-block-event">
|
||||
<td class="label">{ts}Event{/ts}</td><td>
|
||||
<a href="{crmURL p='civicrm/event/manage/settings' q="action=update&reset=1&id=$event_id"}" title="{ts}Configure this event{/ts}">{$event}</a>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
{if $campaign}
|
||||
<tr class="crm-event-participantview-form-block-campaign">
|
||||
<td class="label">{ts}Campaign{/ts}</td>
|
||||
<td>{$campaign}</td>
|
||||
</tr>
|
||||
{/if}
|
||||
|
||||
<tr class="crm-event-participantview-form-block-role">
|
||||
<td class="label">{ts}Participant Role{/ts}</td>
|
||||
<td>{$role}</td></tr>
|
||||
<tr class="crm-event-participantview-form-block-register_date">
|
||||
<td class="label">{ts}Registration Date and Time{/ts}</td>
|
||||
<td>{$register_date|crmDate} </td>
|
||||
</tr>
|
||||
<tr class="crm-event-participantview-form-block-status">
|
||||
<td class="label">{ts}Status{/ts}</td><td>{$status}
|
||||
{if $transferName}
|
||||
{ts}(Transferred to <a href="{crmURL p='civicrm/contact/view/participant' q="action=view&reset=1&id=$pid&cid=$transferId"}" title="{ts}View this Participant{/ts}">{$transferName}</a>){/ts}
|
||||
{/if}
|
||||
</td>
|
||||
</tr>
|
||||
{if $source}
|
||||
<tr class="crm-event-participantview-form-block-event_source">
|
||||
<td class="label">{ts}Event Source{/ts}</td><td>{$source} </td>
|
||||
</tr>
|
||||
{/if}
|
||||
{if $participantId and $hasPayment}
|
||||
<tr>
|
||||
<td class='label'>{ts}Fees{/ts}</td>
|
||||
<td id='payment-info'></td>
|
||||
</tr>
|
||||
{/if}
|
||||
{if $fee_level}
|
||||
<tr class="crm-event-participantview-form-block-fee_amount">
|
||||
{if $lineItem}
|
||||
<td class="label">{ts}Selections{/ts}</td>
|
||||
<td>{include file="CRM/Price/Page/LineItem.tpl" context="Event"}
|
||||
{if call_user_func(array('CRM_Core_Permission','check'), 'edit event participants')}
|
||||
{if $hasPayment or $parentHasPayment}
|
||||
<a class="action-item crm-hover-button" href='{crmURL p="civicrm/event/participant/feeselection" q="reset=1&id=`$participantId`&cid=`$contactId`&action=update"}'><i class="crm-i fa-pencil"></i> {ts}Change Selections{/ts}</a>
|
||||
{/if}
|
||||
{/if}
|
||||
</td>
|
||||
{else}
|
||||
<td class="label">{ts}Event Level{/ts}</td>
|
||||
<td>{$fee_level} {if $fee_amount}- {$fee_amount|crmMoney:$fee_currency}{/if}</td>
|
||||
{/if}
|
||||
</tr>
|
||||
{/if}
|
||||
{foreach from=$note item="rec"}
|
||||
{if $rec }
|
||||
<tr><td class="label">{ts}Note{/ts}</td><td>{$rec|nl2br}</td></tr>
|
||||
{/if}
|
||||
{/foreach}
|
||||
</table>
|
||||
{if $participantId and $hasPayment}
|
||||
{include file="CRM/Contribute/Page/PaymentInfo.tpl" show='payments'}
|
||||
{/if}
|
||||
{include file="CRM/Custom/Page/CustomDataView.tpl"}
|
||||
{if $accessContribution and $rows.0.contribution_id}
|
||||
{include file="CRM/Contribute/Form/Selector.tpl" context="Search"}
|
||||
{/if}
|
||||
<div class="crm-submit-buttons">
|
||||
{if call_user_func(array('CRM_Core_Permission','check'), 'edit event participants')}
|
||||
{assign var='urlParams' value="reset=1&id=$id&cid=$contact_id&action=update&context=$context&selectedChild=event"}
|
||||
{if ( $context eq 'fulltext' || $context eq 'search' ) && $searchKey}
|
||||
{assign var='urlParams' value="reset=1&id=$id&cid=$contact_id&action=update&context=$context&selectedChild=event&key=$searchKey"}
|
||||
{/if}
|
||||
|
||||
<a class="button" href="{crmURL p='civicrm/contact/view/participant' q=$urlParams}" accesskey="e"><span><i class="crm-i fa-pencil"></i> {ts}Edit{/ts}</span></a>
|
||||
{/if}
|
||||
{if call_user_func(array('CRM_Core_Permission','check'), 'delete in CiviEvent')}
|
||||
{assign var='urlParams' value="reset=1&id=$id&cid=$contact_id&action=delete&context=$context&selectedChild=event"}
|
||||
{if ( $context eq 'fulltext' || $context eq 'search' ) && $searchKey}
|
||||
{assign var='urlParams' value="reset=1&id=$id&cid=$contact_id&action=delete&context=$context&selectedChild=event&key=$searchKey"}
|
||||
{/if}
|
||||
<a class="button" href="{crmURL p='civicrm/contact/view/participant' q=$urlParams}"><span><i class="crm-i fa-trash"></i> {ts}Delete{/ts}</span></a>
|
||||
{/if}
|
||||
{include file="CRM/common/formButtons.tpl" location="bottom"}
|
||||
</div>
|
||||
</div>
|
|
@ -0,0 +1,121 @@
|
|||
{*
|
||||
+--------------------------------------------------------------------+
|
||||
| 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 $skipCount}
|
||||
<h3>Skipped Participant(s): {$skipCount}</h3>
|
||||
{/if}
|
||||
{if $action & 1024}
|
||||
{include file="CRM/Event/Form/Registration/PreviewHeader.tpl"}
|
||||
{/if}
|
||||
|
||||
{include file="CRM/common/TrackingFields.tpl"}
|
||||
|
||||
{*CRM-4320*}
|
||||
{if $statusMessage}
|
||||
<div class="messages status no-popup">
|
||||
<p>{$statusMessage}</p>
|
||||
</div>
|
||||
{/if}
|
||||
|
||||
<div class="crm-public-form-item crm-section custom_pre-section">
|
||||
{include file="CRM/UF/Form/Block.tpl" fields=$additionalCustomPre}
|
||||
</div>
|
||||
|
||||
{if $priceSet && $allowGroupOnWaitlist}
|
||||
{include file="CRM/Price/Form/ParticipantCount.tpl"}
|
||||
<div id="waiting-status" style="display:none;" class="messages status no-popup"></div>
|
||||
<div class="messages status no-popup" style="width:25%"><span id="event_participant_status"></span></div>
|
||||
{/if}
|
||||
|
||||
<div class="crm-event-id-{$event.id} crm-block crm-event-additionalparticipant-form-block">
|
||||
{if $priceSet}
|
||||
<fieldset id="priceset" class="crm-public-form-item crm-group priceset-group"><legend>{$event.fee_label}</legend>
|
||||
{include file="CRM/Price/Form/PriceSet.tpl" extends="Event"}
|
||||
</fieldset>
|
||||
{else}
|
||||
{if $paidEvent}
|
||||
<table class="form-layout-compressed">
|
||||
<tr class="crm-event-additionalparticipant-form-block-amount">
|
||||
<td class="label nowrap">{$event.fee_label} <span class="crm-marker">*</span></td>
|
||||
<td> </td>
|
||||
<td>{$form.amount.html}</td>
|
||||
</tr>
|
||||
</table>
|
||||
{/if}
|
||||
{/if}
|
||||
|
||||
<div class="crm-public-form-item crm-section custom_post-section">
|
||||
{include file="CRM/UF/Form/Block.tpl" fields=$additionalCustomPost}
|
||||
</div>
|
||||
|
||||
<div id="crm-submit-buttons">
|
||||
{include file="CRM/common/formButtons.tpl"}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{if $priceSet && $allowGroupOnWaitlist}
|
||||
{literal}
|
||||
<script type="text/javascript">
|
||||
|
||||
function allowGroupOnWaitlist( participantCount, currentCount )
|
||||
{
|
||||
var formId = {/literal}'{$formName}'{literal};
|
||||
var waitingMsg = {/literal}'{$waitingMsg}'{literal};
|
||||
var confirmedMsg = {/literal}'{$confirmedMsg}'{literal};
|
||||
var paymentBypassed = {/literal}'{$paymentBypassed}'{literal};
|
||||
|
||||
var availableRegistrations = {/literal}{$availableRegistrations}{literal};
|
||||
if ( !participantCount ) participantCount = {/literal}'{$currentParticipantCount}'{literal};
|
||||
var totalParticipants = parseInt(participantCount) + parseInt(currentCount);
|
||||
|
||||
var seatStatistics = '{/literal}{ts 1="' + totalParticipants + '"}Total Participants : %1{/ts}{literal}' + '<br />' + '{/literal}{ts 1="' + availableRegistrations + '"}Event Availability : %1{/ts}{literal}';
|
||||
cj("#event_participant_status").html( seatStatistics );
|
||||
|
||||
if ( !{/literal}'{$lastParticipant}'{literal} ) return;
|
||||
|
||||
if ( totalParticipants > availableRegistrations ) {
|
||||
|
||||
cj('#waiting-status').show( ).html(waitingMsg);
|
||||
|
||||
if ( paymentBypassed ) {
|
||||
cj('input[name=_qf_Participant_'+ formId +'_next]').parent( ).show( );
|
||||
cj('input[name=_qf_Participant_'+ formId +'_next_skip]').parent( ).show( );
|
||||
}
|
||||
} else {
|
||||
if ( paymentBypassed ) {
|
||||
confirmedMsg += '<br /> ' + paymentBypassed;
|
||||
}
|
||||
cj('#waiting-status').show( ).html(confirmedMsg);
|
||||
|
||||
if ( paymentBypassed ) {
|
||||
cj('input[name=_qf_Participant_'+ formId +'_next]').parent( ).hide( );
|
||||
cj('input[name=_qf_Participant_'+ formId +'_next_skip]').parent( ).hide( );
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
</script>
|
||||
{/literal}
|
||||
{/if}
|
|
@ -0,0 +1,206 @@
|
|||
{*
|
||||
+--------------------------------------------------------------------+
|
||||
| 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 & 1024}
|
||||
{include file="CRM/Event/Form/Registration/PreviewHeader.tpl"}
|
||||
{/if}
|
||||
|
||||
{include file="CRM/common/TrackingFields.tpl"}
|
||||
|
||||
<div class="crm-event-id-{$event.id} crm-block crm-event-confirm-form-block">
|
||||
{if $isOnWaitlist}
|
||||
<div class="help">
|
||||
{ts}Please verify the information below. <span class="bold">Then click 'Continue' to be added to the WAIT LIST for this event</span>. If space becomes available you will receive an email with a link to a web page where you can complete your registration.{/ts}
|
||||
</div>
|
||||
{elseif $isRequireApproval}
|
||||
<div class="help">
|
||||
{ts}Please verify the information below. Then click 'Continue' to submit your registration. <span class="bold">Once approved, you will receive an email with a link to a web page where you can complete the registration process.</span>{/ts}
|
||||
</div>
|
||||
{else}
|
||||
<div class="help">
|
||||
{ts}Please verify the information below. Click the <strong>Go Back</strong> button below if you need to make changes.{/ts}
|
||||
{if $contributeMode EQ 'notify' and !$is_pay_later and ! $isAmountzero }
|
||||
{if $paymentProcessor.payment_processor_type EQ 'Google_Checkout'}
|
||||
{ts 1=$paymentProcessor.name}Click the <strong>%1</strong> button to checkout to Google, where you will select your payment method and complete the registration.{/ts}
|
||||
{else}
|
||||
{ts 1=$paymentProcessor.name}Click the <strong>Continue</strong> button to checkout to %1, where you will select your payment method and complete the registration.{/ts}
|
||||
{/if }
|
||||
{else}
|
||||
{ts}Otherwise, click the <strong>Continue</strong> button below to complete your registration.{/ts}
|
||||
{/if}
|
||||
</div>
|
||||
{if $is_pay_later and !$isAmountzero}
|
||||
<div class="bold">{$pay_later_receipt}</div>
|
||||
{/if}
|
||||
{/if}
|
||||
|
||||
<div id="crm-submit-buttons" class="crm-submit-buttons">
|
||||
{include file="CRM/common/formButtons.tpl" location="top"}
|
||||
</div>
|
||||
|
||||
{if $event.confirm_text}
|
||||
<div id="intro_text" class="crm-section event_confirm_text-section">
|
||||
<p>{$event.confirm_text}</p>
|
||||
</div>
|
||||
{/if}
|
||||
|
||||
<div class="crm-group event_info-group">
|
||||
<div class="header-dark">
|
||||
{ts}Event Information{/ts}
|
||||
</div>
|
||||
<div class="display-block">
|
||||
{include file="CRM/Event/Form/Registration/EventInfoBlock.tpl"}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{if $pcpBlock}
|
||||
<div class="crm-group pcp_display-group">
|
||||
<div class="header-dark">
|
||||
{ts}Contribution Honor Roll{/ts}
|
||||
</div>
|
||||
<div class="display-block">
|
||||
{if $pcp_display_in_roll}
|
||||
{ts}List my contribution{/ts}
|
||||
{if $pcp_is_anonymous}
|
||||
<strong>{ts}anonymously{/ts}.</strong>
|
||||
{else}
|
||||
{ts}under the name{/ts}: <strong>{$pcp_roll_nickname}</strong><br/>
|
||||
{if $pcp_personal_note}
|
||||
{ts}With the personal note{/ts}: <strong>{$pcp_personal_note}</strong>
|
||||
{else}
|
||||
<strong>{ts}With no personal note{/ts}</strong>
|
||||
{/if}
|
||||
{/if}
|
||||
{else}
|
||||
{ts}Don't list my contribution in the honor roll.{/ts}
|
||||
{/if}
|
||||
<br />
|
||||
</div>
|
||||
</div>
|
||||
{/if}
|
||||
|
||||
{if $paidEvent && !$isRequireApproval && !$isOnWaitlist}
|
||||
<div class="crm-group event_fees-group">
|
||||
<div class="header-dark">
|
||||
{$event.fee_label}
|
||||
</div>
|
||||
{if $lineItem}
|
||||
{include file="CRM/Price/Page/LineItem.tpl" context="Event"}
|
||||
{elseif $amounts || $amount == 0}
|
||||
<div class="crm-section no-label amount-item-section">
|
||||
{foreach from= $amounts item=amount key=level}
|
||||
<div class="content">
|
||||
{$amount.amount|crmMoney} {$amount.label}
|
||||
</div>
|
||||
<div class="clear"></div>
|
||||
{/foreach}
|
||||
</div>
|
||||
{if $totalTaxAmount}
|
||||
<div class="crm-section no-label total-amount-section">
|
||||
<div class="content bold">{ts}Total {$taxTerm} Amount{/ts}: {$totalTaxAmount|crmMoney}</div>
|
||||
<div class="clear"></div>
|
||||
</div>
|
||||
{/if}
|
||||
{if $totalAmount}
|
||||
<div class="crm-section no-label total-amount-section">
|
||||
<div class="content bold">{ts}Total Amount{/ts}: {$totalAmount|crmMoney}</div>
|
||||
<div class="clear"></div>
|
||||
</div>
|
||||
{/if}
|
||||
{if $hookDiscount.message}
|
||||
<div class="crm-section hookDiscount-section">
|
||||
<em>({$hookDiscount.message})</em>
|
||||
</div>
|
||||
{/if}
|
||||
{/if}
|
||||
|
||||
</div>
|
||||
{/if}
|
||||
|
||||
{if $event.participant_role neq 'Attendee' and $defaultRole}
|
||||
<div class="crm-group participant_role-group">
|
||||
<div class="header-dark">
|
||||
{ts}Participant Role{/ts}
|
||||
</div>
|
||||
<div class="crm-section no-label participant_role-section">
|
||||
<div class="content">
|
||||
{$event.participant_role}
|
||||
</div>
|
||||
<div class="clear"></div>
|
||||
</div>
|
||||
</div>
|
||||
{/if}
|
||||
|
||||
{include file="CRM/Event/Form/Registration/DisplayProfile.tpl"}
|
||||
|
||||
{if $contributeMode ne 'notify' and (!$is_pay_later or $isBillingAddressRequiredForPayLater) and $paidEvent and !$isAmountzero and !$isOnWaitlist and !$isRequireApproval}
|
||||
<div class="crm-group billing_name_address-group">
|
||||
<div class="header-dark">
|
||||
{ts}Billing Name and Address{/ts}
|
||||
</div>
|
||||
<div class="crm-section no-label billing_name-section">
|
||||
<div class="content">{$billingName}</div>
|
||||
<div class="clear"></div>
|
||||
</div>
|
||||
<div class="crm-section no-label billing_address-section">
|
||||
<div class="content">{$address|nl2br}</div>
|
||||
<div class="clear"></div>
|
||||
</div>
|
||||
</div>
|
||||
{/if}
|
||||
|
||||
{if $contributeMode eq 'direct' and ! $is_pay_later and !$isAmountzero and !$isOnWaitlist and !$isRequireApproval}
|
||||
<div class="crm-group credit_card-group">
|
||||
<div class="header-dark">
|
||||
{ts}Credit Card Information{/ts}
|
||||
</div>
|
||||
<div class="crm-section no-label credit_card_details-section">
|
||||
<div class="content">{$credit_card_type}</div>
|
||||
<div class="content">{$credit_card_number}</div>
|
||||
<div class="content">{ts}Expires{/ts}: {$credit_card_exp_date|truncate:7:''|crmDate}</div>
|
||||
<div class="clear"></div>
|
||||
</div>
|
||||
</div>
|
||||
{/if}
|
||||
|
||||
{if $contributeMode NEQ 'notify'} {* In 'notify mode, contributor is taken to processor payment forms next *}
|
||||
<div class="messages status section continue_message-section">
|
||||
<p>
|
||||
{ts}Your registration will not be submitted until you click the <strong>Continue</strong> button. Please click the button one time only. If you need to change any details, click the Go Back button below to return to the previous screen.{/ts}
|
||||
</p>
|
||||
</div>
|
||||
{/if}
|
||||
|
||||
<div id="crm-submit-buttons" class="crm-submit-buttons">
|
||||
{include file="CRM/common/formButtons.tpl" location="bottom"}
|
||||
</div>
|
||||
|
||||
{if $event.confirm_footer_text}
|
||||
<div id="footer_text" class="crm-section event_confirm_footer-section">
|
||||
<p>{$event.confirm_footer_text}</p>
|
||||
</div>
|
||||
{/if}
|
||||
</div>
|
||||
{include file="CRM/common/showHide.tpl"}
|
|
@ -0,0 +1,99 @@
|
|||
{*
|
||||
+--------------------------------------------------------------------+
|
||||
| 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 primary Participant Profile Information*}
|
||||
{if $primaryParticipantProfile}
|
||||
<div class="crm-group participant_info-group">
|
||||
<div class="header-dark">{if $addParticipantProfile}{ts}Participant 1{/ts}{else}{ts}Participant Information{/ts}{/if}</div>
|
||||
{if $primaryParticipantProfile.CustomPre}
|
||||
<fieldset class="label-left no-border"><div class="bold crm-profile-view-title">{$primaryParticipantProfile.CustomPreGroupTitle}</div>
|
||||
{foreach from=$primaryParticipantProfile.CustomPre item=value key=field}
|
||||
<div class="crm-public-form-item crm-section {$field}-section">
|
||||
<div class="label">{$field}</div>
|
||||
<div class="content">{$value}</div>
|
||||
<div class="clear"></div>
|
||||
</div>
|
||||
{/foreach}
|
||||
</fieldset>
|
||||
{/if}
|
||||
{if $primaryParticipantProfile.CustomPost}
|
||||
{foreach from=$primaryParticipantProfile.CustomPost item=value key=field}
|
||||
<fieldset class="label-left no-border"><div class="bold crm-profile-view-title">{$primaryParticipantProfile.CustomPostGroupTitle.$field.groupTitle}</div>
|
||||
<div class="crm-profile-view">
|
||||
{foreach from=$primaryParticipantProfile.CustomPost.$field item=value key=field}
|
||||
<div class="crm-public-form-item crm-section {$field}-section">
|
||||
<div class="label">{$field}</div>
|
||||
<div class="content">{$value}</div>
|
||||
<div class="clear"></div>
|
||||
</div>
|
||||
{/foreach}
|
||||
</div>
|
||||
</fieldset>
|
||||
{/foreach}
|
||||
{/if}
|
||||
</div>
|
||||
<div class="spacer"></div>
|
||||
{/if}
|
||||
|
||||
{*display Additional Participant Profile Information*}
|
||||
{if $addParticipantProfile}
|
||||
{foreach from=$addParticipantProfile item=participant key=participantNo}
|
||||
<div class="crm-group participant_info-group">
|
||||
<div class="header-dark">
|
||||
{ts 1=$participantNo}Participant %1{/ts}
|
||||
</div>
|
||||
{if $participant.additionalCustomPre}
|
||||
<fieldset class="label-left no-border"><div class="bold crm-additional-profile-view-title">{$participant.additionalCustomPreGroupTitle}</div>
|
||||
<div class="crm-profile-view">
|
||||
{foreach from=$participant.additionalCustomPre item=value key=field}
|
||||
<div class="crm-public-form-item crm-section {$field}-section">
|
||||
<div class="label">{$field}</div>
|
||||
<div class="content">{$value}</div>
|
||||
<div class="clear"></div>
|
||||
</div>
|
||||
{/foreach}
|
||||
</div>
|
||||
</fieldset>
|
||||
{/if}
|
||||
|
||||
{if $participant.additionalCustomPost}
|
||||
{foreach from=$participant.additionalCustomPost item=value key=field}
|
||||
<fieldset class="label-left no-border"><div class="bold crm-additional-profile-view-title">{$participant.additionalCustomPostGroupTitle.$field.groupTitle}</div>
|
||||
<div class="crm-profile-view">
|
||||
{foreach from=$participant.additionalCustomPost.$field item=value key=field}
|
||||
<div class="crm-public-form-item crm-section {$field}-section">
|
||||
<div class="label">{$field}</div>
|
||||
<div class="content">{$value}</div>
|
||||
<div class="clear"></div>
|
||||
</div>
|
||||
{/foreach}
|
||||
</div>
|
||||
</fieldset>
|
||||
{/foreach}
|
||||
{/if}
|
||||
</div>
|
||||
<div class="spacer"></div>
|
||||
{/foreach}
|
||||
{/if}
|
|
@ -0,0 +1,87 @@
|
|||
{*
|
||||
+--------------------------------------------------------------------+
|
||||
| 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 |
|
||||
+--------------------------------------------------------------------+
|
||||
*}
|
||||
{* Block displays key event info for Registration Confirm and Thankyou pages *}
|
||||
<table class="form-layout">
|
||||
<tr>
|
||||
<td colspan="2">
|
||||
{if $context EQ 'ThankYou'} {* Provide link back to event info page from Thank-you page *}
|
||||
<a href="{crmURL p='civicrm/event/info' q="reset=1&id=`$event.id`"}"title="{ts}View complete event information.{/ts}"><strong>{$event.event_title}</strong></a>
|
||||
{else}
|
||||
<strong>{$event.event_title}</strong>
|
||||
{/if}
|
||||
</td>
|
||||
</tr>
|
||||
<tr><td><label>{ts}When{/ts}</label></td>
|
||||
<td width="90%">
|
||||
{$event.event_start_date|crmDate}
|
||||
{if $event.event_end_date}
|
||||
{ts}through{/ts}
|
||||
{* 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"}
|
||||
{$event.event_end_date|crmDate:0:1}
|
||||
{else}
|
||||
{$event.event_end_date|crmDate}
|
||||
{/if}
|
||||
{/if}
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
{if $isShowLocation}
|
||||
{if $location.address.1}
|
||||
<tr><td><label>{ts}Location{/ts}</label></td>
|
||||
<td>
|
||||
{$location.address.1.display|nl2br}
|
||||
{if ( $event.is_map &&
|
||||
$config->mapProvider &&
|
||||
( ( !empty($location.address.1.geo_code_1) && is_numeric($location.address.1.geo_code_1) ) ||
|
||||
( !empty($location.address.1.city) AND !empty($location.address.1.state_province) ) ) ) }
|
||||
<br/><a href="{crmURL p='civicrm/contact/map/event' q="reset=1&eid=`$event.id`"}" title="{ts}Map this Address{/ts}" target="_blank">{ts}Map this Location{/ts}</a>
|
||||
{/if}
|
||||
</td>
|
||||
</tr>
|
||||
{/if}
|
||||
{/if}{*End of isShowLocation condition*}
|
||||
|
||||
{if $location.phone.1.phone || $location.email.1.email}
|
||||
<tr><td><label>{ts}Contact{/ts}</label></td>
|
||||
<td>
|
||||
{* loop on any phones and emails for this event *}
|
||||
{foreach from=$location.phone item=phone}
|
||||
{if $phone.phone}
|
||||
{if $phone.phone_type}{$phone.phone_type_display}{else}{ts}Phone{/ts}{/if}: {$phone.phone} {if $phone.phone_ext} {ts}ext.{/ts} {$phone.phone_ext}{/if}
|
||||
<br />
|
||||
{/if}
|
||||
{/foreach}
|
||||
|
||||
{foreach from=$location.email item=email}
|
||||
{if $email.email}
|
||||
{ts}Email:{/ts} <a href="mailto:{$email.email}">{$email.email}</a>
|
||||
{/if}
|
||||
{/foreach}
|
||||
</td>
|
||||
</tr>
|
||||
{/if}
|
||||
</table>
|
|
@ -0,0 +1,34 @@
|
|||
{*
|
||||
+--------------------------------------------------------------------+
|
||||
| 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="crm-block crm-event-participant_confirm-form-block">
|
||||
<div class="messages status no-popup">
|
||||
{$statusMsg}
|
||||
</div>
|
||||
|
||||
<div id="crm-submit-buttons">
|
||||
{include file="CRM/common/formButtons.tpl" location="bottom"}
|
||||
</div>
|
||||
</div>
|
|
@ -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 |
|
||||
+--------------------------------------------------------------------+
|
||||
*}
|
||||
{* Displays Test-drive mode header for Event Registration pages. *}
|
||||
<div class="messages status section test_drive-section">
|
||||
<i class="crm-i fa-cogs"></i>
|
||||
<strong>{ts}Test-drive Your Event Registration Page{/ts}</strong>
|
||||
{ts}This page is currently running in <strong>test-drive mode</strong>. If this is a paid event, transactions will be sent to your payment processor's test server. <strong>No live financial transactions will be submitted. However, a contact record will be created or updated and test event registration and contribution records will be saved to the database. Use obvious test contact names so you can review and delete these records as needed. </strong> Refer to your payment processor's documentation for information on values to use for test credit card number, security code, postal code, etc.{/ts}
|
||||
</div>
|
|
@ -0,0 +1,265 @@
|
|||
{*
|
||||
+--------------------------------------------------------------------+
|
||||
| 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 |
|
||||
+--------------------------------------------------------------------+
|
||||
*}
|
||||
{* Callback snippet: Load payment processor *}
|
||||
{if $action & 1024}
|
||||
{include file="CRM/Event/Form/Registration/PreviewHeader.tpl"}
|
||||
{/if}
|
||||
|
||||
{include file="CRM/common/TrackingFields.tpl"}
|
||||
|
||||
<div class="crm-event-id-{$event.id} crm-block crm-event-register-form-block">
|
||||
|
||||
{* moved to tpl since need to show only for primary participant page *}
|
||||
{if $requireApprovalMsg || $waitlistMsg}
|
||||
<div id="id-waitlist-approval-msg" class="messages status no-popup">
|
||||
{if $requireApprovalMsg}
|
||||
<div id="id-req-approval-msg">{$requireApprovalMsg}</div>
|
||||
{/if}
|
||||
{if $waitlistMsg}
|
||||
<div id="id-waitlist-msg">{$waitlistMsg}</div>
|
||||
{/if}
|
||||
</div>
|
||||
{/if}
|
||||
|
||||
{if $contact_id}
|
||||
<div class="messages status no-popup crm-not-you-message" id="crm-event-register-different">
|
||||
{ts 1=$display_name}Welcome %1{/ts}. (<a
|
||||
href="{crmURL p='civicrm/event/register' q="cid=0&reset=1&id=`$event.id`"}"
|
||||
title="{ts}Click here to register a different person for this event.{/ts}">{ts 1=$display_name}Not %1, or want to register a different person{/ts}</a>?)
|
||||
</div>
|
||||
{/if}
|
||||
{if $event.intro_text}
|
||||
<div id="intro_text" class="crm-public-form-item crm-section intro_text-section">
|
||||
<p>{$event.intro_text}</p>
|
||||
</div>
|
||||
{/if}
|
||||
|
||||
{include file="CRM/common/cidzero.tpl"}
|
||||
{if $pcpSupporterText}
|
||||
<div class="crm-public-form-item crm-section pcpSupporterText-section">
|
||||
<div class="content">{$pcpSupporterText}</div>
|
||||
</div>
|
||||
{/if}
|
||||
|
||||
{if $form.additional_participants.html}
|
||||
<div class="crm-public-form-item crm-section additional_participants-section" id="noOfparticipants">
|
||||
<div class="label">{$form.additional_participants.label} <span class="crm-marker" title="{ts}This field is required.{/ts}">*</span></div>
|
||||
<div class="content">
|
||||
{$form.additional_participants.html}{if $contact_id || $contact_id == NULL}{ts}(including yourself){/ts}{/if}
|
||||
<br/>
|
||||
<span
|
||||
class="description">{ts}Fill in your registration information on this page. If you are registering additional people, you will be able to enter their registration information after you complete this page and click "Continue".{/ts}</span>
|
||||
</div>
|
||||
<div class="clear"></div>
|
||||
</div>
|
||||
{/if}
|
||||
|
||||
<div class="crm-public-form-item crm-section cms_user-section">
|
||||
{* User account registration option. Displays if enabled for one of the profiles on this page. *}
|
||||
{include file="CRM/common/CMSUser.tpl"}
|
||||
</div>
|
||||
|
||||
<div class="crm-public-form-item crm-section custom_pre-section">
|
||||
{* Display "Top of page" profile immediately after the introductory text *}
|
||||
{include file="CRM/UF/Form/Block.tpl" fields=$customPre}
|
||||
</div>
|
||||
|
||||
{if $priceSet}
|
||||
{if ! $quickConfig}<fieldset id="priceset" class="crm-public-form-item crm-group priceset-group">
|
||||
<legend>{$event.fee_label}</legend>{/if}
|
||||
{include file="CRM/Price/Form/PriceSet.tpl" extends="Event"}
|
||||
{include file="CRM/Price/Form/ParticipantCount.tpl"}
|
||||
{if ! $quickConfig}</fieldset>{/if}
|
||||
{/if}
|
||||
{if $pcp && $is_honor_roll }
|
||||
<fieldset class="crm-public-form-item crm-group pcp-group">
|
||||
<div class="crm-public-form-item crm-section pcp-section">
|
||||
<div class="crm-public-form-item crm-section display_in_roll-section">
|
||||
<div class="content">
|
||||
{$form.pcp_display_in_roll.html}
|
||||
{$form.pcp_display_in_roll.label}
|
||||
</div>
|
||||
<div class="clear"></div>
|
||||
</div>
|
||||
<div id="nameID" class="crm-public-form-item crm-section is_anonymous-section">
|
||||
<div class="content">
|
||||
{$form.pcp_is_anonymous.html}
|
||||
</div>
|
||||
<div class="clear"></div>
|
||||
</div>
|
||||
<div id="nickID" class="crm-public-form-item crm-section pcp_roll_nickname-section">
|
||||
<div class="label">{$form.pcp_roll_nickname.label}</div>
|
||||
<div class="content">{$form.pcp_roll_nickname.html}
|
||||
<div
|
||||
class="description">{ts}Enter the name you want listed with this contribution. You can use a nick name like 'The Jones Family' or 'Sarah and Sam'.{/ts}</div>
|
||||
</div>
|
||||
<div class="clear"></div>
|
||||
</div>
|
||||
<div id="personalNoteID" class="crm-public-form-item crm-section pcp_personal_note-section">
|
||||
<div class="label">{$form.pcp_personal_note.label}</div>
|
||||
<div class="content">
|
||||
{$form.pcp_personal_note.html}
|
||||
<div class="description">{ts}Enter a message to accompany this contribution.{/ts}</div>
|
||||
</div>
|
||||
<div class="clear"></div>
|
||||
</div>
|
||||
</div>
|
||||
</fieldset>
|
||||
{/if}
|
||||
|
||||
{if $form.payment_processor_id.label}
|
||||
<fieldset class="crm-public-form-item crm-group payment_options-group" style="display:none;">
|
||||
<legend>{ts}Payment Options{/ts}</legend>
|
||||
<div class="crm-section payment_processor-section">
|
||||
<div class="label">{$form.payment_processor_id.label}</div>
|
||||
<div class="content">{$form.payment_processor_id.html}</div>
|
||||
<div class="clear"></div>
|
||||
</div>
|
||||
</fieldset>
|
||||
{/if}
|
||||
|
||||
{if $priceSet}
|
||||
{include file='CRM/Core/BillingBlockWrapper.tpl'}
|
||||
{/if}
|
||||
|
||||
<div class="crm-public-form-item crm-section custom_pre-section">
|
||||
{include file="CRM/UF/Form/Block.tpl" fields=$customPost}
|
||||
</div>
|
||||
|
||||
{if $isCaptcha}
|
||||
{include file='CRM/common/ReCAPTCHA.tpl'}
|
||||
{/if}
|
||||
|
||||
<div id="crm-submit-buttons" class="crm-submit-buttons">
|
||||
{include file="CRM/common/formButtons.tpl" location="bottom"}
|
||||
</div>
|
||||
|
||||
{if $event.footer_text}
|
||||
<div id="footer_text" class="crm-public-form-item crm-section event_footer_text-section">
|
||||
<p>{$event.footer_text}</p>
|
||||
</div>
|
||||
{/if}
|
||||
</div>
|
||||
<script type="text/javascript">
|
||||
{literal}
|
||||
|
||||
cj("#additional_participants").change(function () {
|
||||
skipPaymentMethod();
|
||||
});
|
||||
|
||||
{/literal}
|
||||
{if $pcp && $is_honor_roll }
|
||||
pcpAnonymous();
|
||||
{/if}
|
||||
{literal}
|
||||
|
||||
function allowParticipant() {
|
||||
{/literal}{if $allowGroupOnWaitlist}{literal}
|
||||
var additionalParticipants = cj('#additional_participants').val();
|
||||
var pricesetParticipantCount = 0;
|
||||
{/literal}{if $priceSet}{literal}
|
||||
pricesetParticipantCount = pPartiCount;
|
||||
{/literal}{/if}{literal}
|
||||
|
||||
allowGroupOnWaitlist(additionalParticipants, pricesetParticipantCount);
|
||||
{/literal}{/if}{literal}
|
||||
}
|
||||
|
||||
{/literal}{if $allowGroupOnWaitlist}{literal}
|
||||
allowGroupOnWaitlist(0, 0);
|
||||
{/literal}{/if}{literal}
|
||||
|
||||
function allowGroupOnWaitlist(additionalParticipants, pricesetParticipantCount) {
|
||||
{/literal}{if $isAdditionalParticipants}{literal}
|
||||
if (!additionalParticipants) {
|
||||
additionalParticipants = cj('#additional_participants').val();
|
||||
}
|
||||
{/literal}{else}{literal}
|
||||
additionalParticipants = 0;
|
||||
{/literal}{/if}{literal}
|
||||
|
||||
additionalParticipants = parseInt(additionalParticipants);
|
||||
if (!additionalParticipants) {
|
||||
additionalParticipants = 0;
|
||||
}
|
||||
|
||||
var availableRegistrations = {/literal}'{$availableRegistrations}'{literal};
|
||||
var totalParticipants = parseInt(additionalParticipants) + 1;
|
||||
|
||||
if (pricesetParticipantCount) {
|
||||
// add priceset count if any
|
||||
totalParticipants += parseInt(pricesetParticipantCount) - 1;
|
||||
}
|
||||
var isrequireApproval = {/literal}'{$requireApprovalMsg}'{literal};
|
||||
|
||||
if (totalParticipants > availableRegistrations) {
|
||||
cj("#id-waitlist-msg").show();
|
||||
cj("#id-waitlist-approval-msg").show();
|
||||
|
||||
//set the value for hidden bypass payment.
|
||||
cj("#bypass_payment").val(1);
|
||||
}
|
||||
else {
|
||||
if (isrequireApproval) {
|
||||
cj("#id-waitlist-approval-msg").show();
|
||||
cj("#id-waitlist-msg").hide();
|
||||
cj("#bypass_payment").val(1);
|
||||
}
|
||||
else {
|
||||
cj("#id-waitlist-approval-msg").hide();
|
||||
cj("#bypass_payment").val(0);
|
||||
}
|
||||
//reset value since user don't want or not eligible for waitlist
|
||||
skipPaymentMethod();
|
||||
}
|
||||
}
|
||||
|
||||
{/literal}
|
||||
{if $pcp && $is_honor_roll }{literal}
|
||||
function pcpAnonymous() {
|
||||
// clear nickname field if anonymous is true
|
||||
if (document.getElementsByName("pcp_is_anonymous")[1].checked) {
|
||||
document.getElementById('pcp_roll_nickname').value = '';
|
||||
}
|
||||
if (!document.getElementsByName("pcp_display_in_roll")[0].checked) {
|
||||
cj('#nickID, #nameID, #personalNoteID').hide();
|
||||
}
|
||||
else {
|
||||
if (document.getElementsByName("pcp_is_anonymous")[0].checked) {
|
||||
cj('#nameID, #nickID, #personalNoteID').show();
|
||||
}
|
||||
else {
|
||||
cj('#nameID').show();
|
||||
cj('#nickID, #personalNoteID').hide();
|
||||
}
|
||||
}
|
||||
}
|
||||
{/literal}
|
||||
{/if}
|
||||
{literal}
|
||||
|
||||
</script>
|
||||
{/literal}
|
|
@ -0,0 +1,222 @@
|
|||
{*
|
||||
+--------------------------------------------------------------------+
|
||||
| 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 & 1024}
|
||||
{include file="CRM/Event/Form/Registration/PreviewHeader.tpl"}
|
||||
{/if}
|
||||
|
||||
{include file="CRM/common/TrackingFields.tpl"}
|
||||
|
||||
<div class="crm-event-id-{$event.id} crm-block crm-event-thankyou-form-block">
|
||||
{* Don't use "normal" thank-you message for Waitlist and Approval Required registrations - since it will probably not make sense for those situations. dgg *}
|
||||
{if $event.thankyou_text AND (not $isOnWaitlist AND not $isRequireApproval)}
|
||||
<div id="intro_text" class="crm-section event_thankyou_text-section">
|
||||
<p>
|
||||
{$event.thankyou_text}
|
||||
</p>
|
||||
</div>
|
||||
{/if}
|
||||
|
||||
{* Show link to Tell a Friend (CRM-2153) *}
|
||||
{if $friendText}
|
||||
<div id="tell-a-friend" class="crm-section tell_friend_link-section">
|
||||
<a href="{$friendURL}" title="{$friendText|escape:'html'}" class="button"><span>» {$friendText}</span></a>
|
||||
</div><br /><br />
|
||||
{/if}
|
||||
|
||||
{* Add button for donor to create their own Personal Campaign page *}
|
||||
{if $pcpLink}
|
||||
<div class="crm-section create_pcp_link-section">
|
||||
<a href="{$pcpLink}" title="{$pcpLinkText|escape:'html'}" class="button"><span>» {$pcpLinkText}</span></a>
|
||||
</div><br /><br />
|
||||
{/if}
|
||||
|
||||
<div class="help">
|
||||
{if $isOnWaitlist}
|
||||
<p>
|
||||
<span class="bold">{ts}You have been added to the WAIT LIST for this event.{/ts}</span>
|
||||
{ts}If space becomes available you will receive an email with a link to a web page where you can complete your registration.{/ts}
|
||||
</p>
|
||||
{elseif $isRequireApproval}
|
||||
<p>
|
||||
<span class="bold">{ts}Your registration has been submitted.{/ts}
|
||||
{ts}Once your registration has been reviewed, you will receive an email with a link to a web page where you can complete the registration process.{/ts}</span>
|
||||
</p>
|
||||
{elseif $is_pay_later and $paidEvent and !$isAmountzero}
|
||||
<div class="bold">{$pay_later_receipt}</div>
|
||||
{if $is_email_confirm}
|
||||
<p>{ts 1=$email}An email with event details has been sent to %1.{/ts}</p>
|
||||
{/if}
|
||||
{* PayPal_Standard sets contribution_mode to 'notify'. We don't know if transaction is successful until we receive the IPN (payment notification) *}
|
||||
{elseif $contributeMode EQ 'notify' and $paidEvent}
|
||||
<p>{ts 1=$paymentProcessor.name}Your registration payment has been submitted to %1 for processing. Please print this page for your records.{/ts}</p>
|
||||
{if $is_email_confirm}
|
||||
<p>{ts 1=$email}A registration confirmation email will be sent to %1 once the transaction is processed successfully.{/ts}</p>
|
||||
{/if}
|
||||
{else}
|
||||
<p>{ts}Your registration has been processed successfully. Please print this page for your records.{/ts}</p>
|
||||
{if $is_email_confirm}
|
||||
<p>{ts 1=$email}A registration confirmation email has also been sent to %1{/ts}</p>
|
||||
{/if}
|
||||
{/if}
|
||||
</div>
|
||||
<div class="spacer"></div>
|
||||
|
||||
<div class="crm-group event_info-group">
|
||||
<div class="header-dark">
|
||||
{ts}Event Information{/ts}
|
||||
</div>
|
||||
<div class="display-block">
|
||||
{include file="CRM/Event/Form/Registration/EventInfoBlock.tpl" context="ThankYou"}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{if $paidEvent && !$isRequireApproval && !$isOnWaitlist}
|
||||
<div class="crm-group event_fees-group">
|
||||
<div class="header-dark">
|
||||
{$event.fee_label}
|
||||
</div>
|
||||
{if $lineItem}
|
||||
{include file="CRM/Price/Page/LineItem.tpl" context="Event"}
|
||||
{elseif $amount || $amount == 0}
|
||||
<div class="crm-section no-label amount-item-section">
|
||||
{foreach from= $finalAmount item=amount key=level}
|
||||
<div class="content">
|
||||
{$amount.amount|crmMoney} {$amount.label}
|
||||
</div>
|
||||
<div class="clear"></div>
|
||||
{/foreach}
|
||||
</div>
|
||||
{if $totalTaxAmount}
|
||||
<div class="content bold">{ts}Tax Total{/ts}: {$totalTaxAmount|crmMoney}</div>
|
||||
<div class="clear"></div>
|
||||
{/if}
|
||||
{if $totalAmount}
|
||||
<div class="crm-section no-label total-amount-section">
|
||||
<div class="content bold">{ts}Event Total{/ts}: {$totalAmount|crmMoney}</div>
|
||||
<div class="clear"></div>
|
||||
</div>
|
||||
|
||||
{if $hookDiscount.message}
|
||||
<div class="crm-section hookDiscount-section">
|
||||
<em>({$hookDiscount.message})</em>
|
||||
</div>
|
||||
{/if}
|
||||
{/if}
|
||||
{/if}
|
||||
|
||||
{if $receive_date}
|
||||
<div class="crm-section no-label receive_date-section">
|
||||
<div class="content bold">{ts}Transaction Date{/ts}: {$receive_date|crmDate}</div>
|
||||
<div class="clear"></div>
|
||||
</div>
|
||||
{/if}
|
||||
{if $contributeMode ne 'notify' AND $trxn_id}
|
||||
<div class="crm-section no-label trxn_id-section">
|
||||
<div class="content bold">{ts}Transaction #{/ts}: {$trxn_id}</div>
|
||||
<div class="clear"></div>
|
||||
</div>
|
||||
{/if}
|
||||
</div>
|
||||
|
||||
{elseif $participantInfo}
|
||||
<div class="crm-group participantInfo-group">
|
||||
<div class="header-dark">
|
||||
{ts}Additional Participant Email(s){/ts}
|
||||
</div>
|
||||
<div class="crm-section no-label participant_info-section">
|
||||
<div class="content">
|
||||
{foreach from=$participantInfo item=mail key=no}
|
||||
<strong>{$mail}</strong><br />
|
||||
{/foreach}
|
||||
</div>
|
||||
<div class="clear"></div>
|
||||
</div>
|
||||
</div>
|
||||
{/if}
|
||||
|
||||
{if $event.participant_role neq 'Attendee' and $defaultRole}
|
||||
<div class="crm-group participant_role-group">
|
||||
<div class="header-dark">
|
||||
{ts}Participant Role{/ts}
|
||||
</div>
|
||||
<div class="crm-section no-label participant_role-section">
|
||||
<div class="content">
|
||||
{$event.participant_role}
|
||||
</div>
|
||||
<div class="clear"></div>
|
||||
</div>
|
||||
</div>
|
||||
{/if}
|
||||
|
||||
{include file="CRM/Event/Form/Registration/DisplayProfile.tpl"}
|
||||
{if $contributeMode ne 'notify' and (!$is_pay_later or $isBillingAddressRequiredForPayLater) and $paidEvent and !$isAmountzero and !$isOnWaitlist and !$isRequireApproval}
|
||||
<div class="crm-group billing_name_address-group">
|
||||
<div class="header-dark">
|
||||
{ts}Billing Name and Address{/ts}
|
||||
</div>
|
||||
<div class="crm-section no-label billing_name-section">
|
||||
<div class="content">{$billingName}</div>
|
||||
<div class="clear"></div>
|
||||
</div>
|
||||
<div class="crm-section no-label billing_address-section">
|
||||
<div class="content">{$address|nl2br}</div>
|
||||
<div class="clear"></div>
|
||||
</div>
|
||||
</div>
|
||||
{/if}
|
||||
|
||||
{if $contributeMode eq 'direct' and $paidEvent and ! $is_pay_later and !$isAmountzero and !$isOnWaitlist and !$isRequireApproval}
|
||||
<div class="crm-group credit_card-group">
|
||||
<div class="header-dark">
|
||||
{ts}Credit Card Information{/ts}
|
||||
</div>
|
||||
<div class="crm-section no-label credit_card_details-section">
|
||||
<div class="content">{$credit_card_type}</div>
|
||||
<div class="content">{$credit_card_number}</div>
|
||||
<div class="content">{ts}Expires{/ts}: {$credit_card_exp_date|truncate:7:''|crmDate}</div>
|
||||
<div class="clear"></div>
|
||||
</div>
|
||||
</div>
|
||||
{/if}
|
||||
|
||||
{if $event.thankyou_footer_text}
|
||||
<div id="footer_text" class="crm-section event_thankyou_footer-section">
|
||||
<p>{$event.thankyou_footer_text}</p>
|
||||
</div>
|
||||
{/if}
|
||||
|
||||
<div class="action-link section event_info_link-section">
|
||||
<a href="{crmURL p='civicrm/event/info' q="reset=1&id=`$event.id`"}">» {ts 1=$event.event_title}Back to "%1" event information{/ts}</a>
|
||||
</div>
|
||||
|
||||
{if $event.is_public }
|
||||
{include file="CRM/Event/Page/iCalLinks.tpl"}
|
||||
{/if}
|
||||
{if $event.is_share}
|
||||
{capture assign=eventUrl}{crmURL p='civicrm/event/info' q="id=`$event.id`&reset=1" a=1 fe=1 h=1}{/capture}
|
||||
{include file="CRM/common/SocialNetwork.tpl" url=$eventUrl title=$event.title pageURL=$eventUrl}
|
||||
{/if}
|
||||
</div>
|
|
@ -0,0 +1,86 @@
|
|||
{*
|
||||
+--------------------------------------------------------------------+
|
||||
| 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 |
|
||||
+--------------------------------------------------------------------+
|
||||
*}
|
||||
{* Search form and results for Event Participants *}
|
||||
{assign var="showBlock" value="'searchForm'"}
|
||||
{assign var="hideBlock" value="'searchForm_show'"}
|
||||
<div class="crm-block crm-form-block crm-event-search-form-block">
|
||||
<div class="crm-accordion-wrapper crm-advanced_search_form-accordion {if !empty($ssID) or $rows}collapsed{/if}">
|
||||
<div class="crm-accordion-header crm-master-accordion-header">
|
||||
{ts}Edit Search Criteria{/ts}
|
||||
</div>
|
||||
<div class="crm-accordion-body">
|
||||
<div id="searchForm">
|
||||
{strip}
|
||||
<table class="form-layout">
|
||||
<tr class="crm-event-search-form-block-sort_name">
|
||||
<td class="font-size12pt" colspan="2">
|
||||
{$form.sort_name.label} {$form.sort_name.html|crmAddClass:'twenty'} {$form.buttons.html}
|
||||
</td>
|
||||
</tr>
|
||||
{if $form.deleted_contacts}
|
||||
<tr class="crm-event-search-form-block-deleted_contacts">
|
||||
<td colspan="2">
|
||||
{$form.deleted_contacts.html} {$form.deleted_contacts.label}
|
||||
</td>
|
||||
</tr>
|
||||
{/if}
|
||||
|
||||
{include file="CRM/Event/Form/Search/Common.tpl"}
|
||||
|
||||
<tr>
|
||||
<td colspan="2">{include file="CRM/common/formButtons.tpl"}</td>
|
||||
</tr>
|
||||
</table>
|
||||
{/strip}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
{if $rowsEmpty|| $rows}
|
||||
<div class="crm-block crm-content-block">
|
||||
{if $rowsEmpty}
|
||||
<div class="crm-results-block crm-results-block-empty">
|
||||
{include file="CRM/Event/Form/Search/EmptyResults.tpl"}
|
||||
</div>
|
||||
{/if}
|
||||
|
||||
{if $rows}
|
||||
<div class="crm-results-block">
|
||||
{* Search request has returned 1 or more matching rows. *}
|
||||
{* This section handles form elements for action task select and submit *}
|
||||
<div class="crm-search-tasks crm-event-search-tasks">
|
||||
{include file="CRM/common/searchResultTasks.tpl" context='Event'}
|
||||
</div>
|
||||
{* This section displays the rows along and includes the paging controls *}
|
||||
<div id='participantSearch' class="crm-event-search-results">
|
||||
{include file="CRM/Event/Form/Selector.tpl" context="Search"}
|
||||
</div>
|
||||
{* END Actions/Results section *}
|
||||
</div>
|
||||
{/if}
|
||||
|
||||
</div>
|
||||
{/if}
|
|
@ -0,0 +1,32 @@
|
|||
{*
|
||||
+--------------------------------------------------------------------+
|
||||
| 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 $validCiviEvent}
|
||||
<div id="participantForm" class="form-item">
|
||||
<table class="form-layout">
|
||||
{include file="CRM/Event/Form/Search/Common.tpl"}
|
||||
</table>
|
||||
</div>
|
||||
{/if}
|
|
@ -0,0 +1,116 @@
|
|||
{*
|
||||
+--------------------------------------------------------------------+
|
||||
| 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 |
|
||||
+--------------------------------------------------------------------+
|
||||
*}
|
||||
<tr>
|
||||
<td class="crm-event-form-block-event_id">
|
||||
{$form.event_id.label} <br />{$form.event_id.html|crmAddClass:huge}
|
||||
<div class="crm-event-form-block-event_include_repeating_events">
|
||||
{$form.event_include_repeating_events.label} {$form.event_include_repeating_events.html}
|
||||
</div>
|
||||
</td>
|
||||
<td class="crm-event-form-block-event_type_id"> {$form.event_type_id.label}<br />{$form.event_type_id.html} </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="2"><label>{ts}Event Dates{/ts}</label></td>
|
||||
</tr>
|
||||
<tr>
|
||||
{include file="CRM/Core/DateRange.tpl" fieldName="event" from='_start_date_low' to='_end_date_high'}
|
||||
</tr>
|
||||
<tr>
|
||||
<td><label>{ts}Registration Date{/ts}</label></td>
|
||||
</tr>
|
||||
<tr>
|
||||
{include file="CRM/Core/DateRange.tpl" fieldName="participant" from='_register_date_low' to='_register_date_high'}
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="crm-event-form-block-participant_status"><label>{$form.participant_status_id.label}</label>
|
||||
<br />
|
||||
{$form.participant_status_id.html}
|
||||
</td>
|
||||
<td class="crm-event-form-block-participant_role_id"><label>{$form.participant_role_id.label}</label>
|
||||
<br />
|
||||
{$form.participant_role_id.html}
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="crm-event-form-block-participant_test">
|
||||
{$form.participant_test.label} {help id="is-test" file="CRM/Contact/Form/Search/Advanced"}
|
||||
{$form.participant_test.html}
|
||||
</td>
|
||||
<td class="crm-event-form-block-participant_pay_later">
|
||||
{$form.participant_is_pay_later.label} {$form.participant_is_pay_later.html}
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="crm-event-form-block-participant_fee_id">
|
||||
{$form.participant_fee_id.label}<br />{$form.participant_fee_id.html}
|
||||
</td>
|
||||
<td class="crm-event-form-block-participant_fee_amount">
|
||||
<label>{ts}Fee Amount{/ts}</label><br />
|
||||
{$form.participant_fee_amount_low.label} {$form.participant_fee_amount_low.html}
|
||||
{$form.participant_fee_amount_high.label} {$form.participant_fee_amount_high.html}
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
{* campaign in contribution search *}
|
||||
{include file="CRM/Campaign/Form/addCampaignToComponent.tpl" campaignContext="componentSearch"
|
||||
campaignTrClass='' campaignTdClass='crm-event-form-block-participant_campaign_id'}
|
||||
|
||||
{if $participantGroupTree }
|
||||
<tr>
|
||||
<td colspan="4">
|
||||
{include file="CRM/Custom/Form/Search.tpl" groupTree=$participantGroupTree showHideLinks=false}
|
||||
</td>
|
||||
</tr>
|
||||
{/if}
|
||||
|
||||
{literal}
|
||||
<script type="text/javascript">
|
||||
CRM.$(function($) {
|
||||
var recurringLabel = $('label[for=event_include_repeating_events]').html();
|
||||
// Conditional rule for recurring checkbox
|
||||
function toggleRecurrigCheckbox() {
|
||||
var isRepeating = false;
|
||||
if ($(this).val()) {
|
||||
// Workaround: In some cases this code gets called before the select2 initialization.
|
||||
if (!$(this).data('select2')) {
|
||||
$(this).crmEntityRef();
|
||||
}
|
||||
// allow repeat checkbox to be shown for first event selected
|
||||
if (!$.isEmptyObject($(this).select2('data')[0])) {
|
||||
isRepeating = $(this).select2('data')[0].extra.is_recur;
|
||||
}
|
||||
}
|
||||
if (isRepeating) {
|
||||
$('.crm-event-form-block-event_include_repeating_events').show();
|
||||
$('label[for=event_include_repeating_events]').html(recurringLabel.replace('%1', $(this).select2('data')[0].label));
|
||||
} else {
|
||||
$('.crm-event-form-block-event_include_repeating_events').hide().find('input').prop('checked', false);
|
||||
}
|
||||
}
|
||||
$('#event_id').each(toggleRecurrigCheckbox).change(toggleRecurrigCheckbox);
|
||||
});
|
||||
</script>
|
||||
{/literal}
|
|
@ -0,0 +1,42 @@
|
|||
{*
|
||||
+--------------------------------------------------------------------+
|
||||
| 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 |
|
||||
+--------------------------------------------------------------------+
|
||||
*}
|
||||
{* No matches for submitted search request. *}
|
||||
<div class="messages status no-popup">
|
||||
<div class="icon inform-icon"></div>
|
||||
{if $qill}{ts}No matches found for:{/ts}
|
||||
{include file="CRM/common/displaySearchCriteria.tpl"}
|
||||
{else}
|
||||
{ts}None found.{/ts}
|
||||
{/if}
|
||||
<br />
|
||||
{ts}Suggestions:{/ts}
|
||||
<ul>
|
||||
<li>{ts}if you are searching by participant name, check your spelling{/ts}</li>
|
||||
<li>{ts}try a different spelling or use fewer letters{/ts}</li>
|
||||
<li>{ts}if you are searching within a date range, try a wider range of values{/ts}</li>
|
||||
<li>{ts}make sure you have enough privileges in the access control system{/ts}</li>
|
||||
</ul>
|
||||
</div>
|
|
@ -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 |
|
||||
+--------------------------------------------------------------------+
|
||||
*}
|
||||
{htxt id="id-actual_participant_count-title"}
|
||||
{ts}Actual Participant Count{/ts}
|
||||
{/htxt}
|
||||
{htxt id="id-actual_participant_count"}
|
||||
{ts}This is displayed for events which use Price Set field(s) to increment the number of participants counted against the event's maximum participant level. For example, someone may select a 'Table for 8' when registering for a fundraising dinner. This registration will increment the 'actual participant count' by 8, even though only one participant record is displayed in search results.{/ts}
|
||||
{/htxt}
|
|
@ -0,0 +1,71 @@
|
|||
{*
|
||||
+--------------------------------------------------------------------+
|
||||
| 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="crm-block crm-form-block crm-event-searchevent-form-block">
|
||||
<h3>{ts}Find Events{/ts}</h3>
|
||||
<table class="form-layout">
|
||||
<tr class="crm-event-searchevent-form-block-title">
|
||||
<td>{$form.title.html|crmAddClass:twenty}
|
||||
<div class="description font-italic">
|
||||
{ts}Complete OR partial Event name.{/ts}
|
||||
</div>
|
||||
<div style="height: auto; vertical-align: bottom">{$form.eventsByDates.html}</div>
|
||||
</td>
|
||||
<td rowspan="2"><label>{ts}Event Type{/ts}</label>
|
||||
{$form.event_type_id.html}
|
||||
</td>
|
||||
<td class="right" rowspan="2"> {include file="CRM/common/formButtons.tpl"}</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td colspan="2">
|
||||
<table class="form-layout-compressed" id="id_fromToDates">
|
||||
<tr class="crm-event-searchevent-form-block-start_date">
|
||||
<td class="label">{$form.start_date.label}</td>
|
||||
<td>{include file="CRM/common/jcalendar.tpl" elementName=start_date}</td>
|
||||
</tr>
|
||||
<tr class="crm-event-searchevent-form-block-end_date" >
|
||||
<td class="label">{$form.end_date.label}</td>
|
||||
<td>{include file="CRM/common/jcalendar.tpl" elementName=end_date}</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td></tr>
|
||||
|
||||
{* campaign in event search *}
|
||||
{include file="CRM/Campaign/Form/addCampaignToComponent.tpl" campaignContext="componentSearch"
|
||||
campaignTrClass='crm-event-searchevent-form-block-campaign_id' campaignTdClass=''}
|
||||
|
||||
</table>
|
||||
</div>
|
||||
|
||||
{include file="CRM/common/showHide.tpl"}
|
||||
|
||||
{literal}
|
||||
<script type="text/javascript">
|
||||
if ( document.getElementsByName('eventsByDates')[1].checked ) {
|
||||
cj('#id_fromToDates').show();
|
||||
}
|
||||
</script>
|
||||
{/literal}
|
107
sites/all/modules/civicrm/templates/CRM/Event/Form/Selector.tpl
Normal file
107
sites/all/modules/civicrm/templates/CRM/Event/Form/Selector.tpl
Normal file
|
@ -0,0 +1,107 @@
|
|||
{*
|
||||
+--------------------------------------------------------------------+
|
||||
| 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 $context EQ 'Search'}
|
||||
{include file="CRM/common/pager.tpl" location="top"}
|
||||
{/if}
|
||||
|
||||
{strip}
|
||||
<table class="selector row-highlight">
|
||||
<thead class="sticky">
|
||||
<tr>
|
||||
{if ! $single and $context eq 'Search' }
|
||||
<th scope="col" title="Select Rows">{$form.toggleSelect.html}</th>
|
||||
{/if}
|
||||
{foreach from=$columnHeaders 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>
|
||||
</thead>
|
||||
|
||||
{counter start=0 skip=1 print=false}
|
||||
{foreach from=$rows item=row}
|
||||
<tr id='rowid{$row.participant_id}' class="{cycle values="odd-row,even-row"} crm-event crm-event_{$row.event_id}">
|
||||
{if ! $single }
|
||||
{if $context eq 'Search' }
|
||||
{assign var=cbName value=$row.checkbox}
|
||||
<td>{$form.$cbName.html}</td>
|
||||
{/if}
|
||||
<td class="crm-participant-contact_type">{$row.contact_type}</td>
|
||||
<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>
|
||||
{/if}
|
||||
|
||||
<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>
|
||||
{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}
|
||||
</td>
|
||||
{assign var="participant_id" value=$row.participant_id}
|
||||
{if $lineItems.$participant_id}
|
||||
<td>
|
||||
{foreach from=$lineItems.$participant_id item=line name=lineItemsIter}
|
||||
{if $line.html_type eq 'Text'}{$line.label}{else}{$line.field_title} - {$line.label}{/if}: {$line.qty}
|
||||
{if ! $smarty.foreach.lineItemsIter.last}<br />{/if}
|
||||
{/foreach}
|
||||
</td>
|
||||
{else}
|
||||
<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>
|
||||
{/if}
|
||||
<td class="right nowrap crm-participant-participant_fee_amount">{$row.participant_fee_amount|crmMoney:$row.participant_fee_currency}</td>
|
||||
<td class="crm-participant-participant_register_date">{$row.participant_register_date|truncate:10:''|crmDate}</td>
|
||||
<td class="crm-participant-event_start_date">{$row.event_start_date|truncate:10:''|crmDate}
|
||||
{if $row.event_end_date && $row.event_end_date|date_format:"%Y%m%d" NEQ $row.event_start_date|date_format:"%Y%m%d"}
|
||||
<br/>- {$row.event_end_date|truncate:10:''|crmDate}
|
||||
{/if}
|
||||
</td>
|
||||
<td class="crm-participant-participant_status crm-participant_status_{$row.participant_status_id}">{$row.participant_status}</td>
|
||||
<td class="crm-participant-participant_role">{$row.participant_role_id}</td>
|
||||
<td>{$row.action|replace:'xx':$participant_id}</td>
|
||||
</tr>
|
||||
{/foreach}
|
||||
{* Link to "View all participants" for Dashboard and Contact Summary *}
|
||||
{if $limit and $pager->_totalItems GT $limit }
|
||||
{if $context EQ 'event_dashboard' }
|
||||
<tr class="even-row">
|
||||
<td colspan="10"><a href="{crmURL p='civicrm/event/search' q='reset=1'}">» {ts}Find more event participants{/ts}...</a></td></tr>
|
||||
</tr>
|
||||
{elseif $context eq 'participant' }
|
||||
<tr class="even-row">
|
||||
<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>
|
||||
</tr>
|
||||
{/if}
|
||||
{/if}
|
||||
</table>
|
||||
{/strip}
|
||||
|
||||
|
||||
|
||||
{if $context EQ 'Search'}
|
||||
{include file="CRM/common/pager.tpl" location="bottom"}
|
||||
{/if}
|
|
@ -0,0 +1,65 @@
|
|||
{*
|
||||
+--------------------------------------------------------------------+
|
||||
| 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="crm-selfsvctransfer-form">
|
||||
<table class="crm-selfsvctransfer-form-details">
|
||||
<tr>
|
||||
<th>{ts}Current<br />Participant{/ts}</th>
|
||||
<th>{ts}Event{/ts}</th>
|
||||
<th>{ts}Fee Level{/ts}</th>
|
||||
<th>{ts}Amount{/ts}</th>
|
||||
<th>{ts}Registered{/ts}</th>
|
||||
<th>{ts}Status{/ts}</th>
|
||||
<th>{ts}Role{/ts}</th>
|
||||
</tr>
|
||||
<tr class="crm-selfsvctransfer-form-details">
|
||||
<td>{$details.name}</td>
|
||||
<td>{$details.title}<br />{$details.event_start_date|truncate:10:''|crmDate}</td>
|
||||
<td class="crm-participant-participant_fee_level">{$details.fee_level}</td>
|
||||
<td class="right nowrap crm-paticipant-participant_fee_amount">{$details.fee_amount}</td>
|
||||
<td>{$details.register_date|truncate:10:''|crmDate}</td>
|
||||
<td>{$details.status}</td>
|
||||
<td class="crm-participant-participant_role">{$details.role}</td>
|
||||
</tr>
|
||||
</table>
|
||||
<div class="crm-public-form-item crm-section selfsvctransfer-section">
|
||||
<div class="crm-public-form-item crm-section selfsvctransfer-firstname-section">
|
||||
<div class="label">{$form.first_name.label}</div>
|
||||
<div class="content">{$form.first_name.html}</div>
|
||||
<div class="clear"></div>
|
||||
</div>
|
||||
<div class="crm-public-form-item crm-section selfsvctransfer-lastname-section">
|
||||
<div class="label">{$form.last_name.label}</div>
|
||||
<div class="content">{$form.last_name.html}</div>
|
||||
<div class="clear"></div>
|
||||
</div>
|
||||
<div class="crm-public-form-item crm-section selfsvctransfer-email-section">
|
||||
<div class="label">{$form.email.label}</div>
|
||||
<div class="content">{$form.email.html}</div>
|
||||
<div class="clear"></div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="crm-submit-buttons">{include file="CRM/common/formButtons.tpl" location="bottom"}</div>
|
||||
</div>
|
|
@ -0,0 +1,64 @@
|
|||
{*
|
||||
+--------------------------------------------------------------------+
|
||||
| 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="crm-selfsvcupdate-form">
|
||||
<table class="crm-selfsvcupdate-form-details">
|
||||
<tr>
|
||||
<th>{ts}Participant{/ts}</th>
|
||||
<th>{ts}Event{/ts}</th>
|
||||
<th>{ts}Fee Level{/ts}</th>
|
||||
<th>{ts}Amount{/ts}</th>
|
||||
<th>{ts}Registered{/ts}</th>
|
||||
<th>{ts}Status{/ts}</th>
|
||||
<th>{ts}Role{/ts}</th>
|
||||
</tr>
|
||||
<tr class="crm-selfsvcupdate-form-details">
|
||||
<td>{$details.name}</td><td>{$details.title}<br />{$details.event_start_date|truncate:10:''|crmDate}</td>
|
||||
<td class="crm-participant-participant_fee_level">{$details.fee_level}</td>
|
||||
<td class="right nowrap crm-paticipant-participant_fee_amount">{$details.fee_amount}</td>
|
||||
<td>{$details.register_date|truncate:10:''|crmDate}</td>
|
||||
<td>{$details.status}</td><td class="crm-participant-participant_role">{$details.role}</td>
|
||||
</tr>
|
||||
</table>
|
||||
<div class="crm-public-form-item crm-section selfsvcupdate-section">
|
||||
<div class="label">{$form.action.label}</div>
|
||||
<div class="content">{$form.action.html}</div>
|
||||
<div class="clear"></div>
|
||||
</div>
|
||||
<div class="crm-submit-buttons">{include file="CRM/common/formButtons.tpl" location="bottom"}</div>
|
||||
</div>
|
||||
{literal}
|
||||
<script type="text/javascript">
|
||||
var contributionID = {/literal}'{$contributionId}'{literal};
|
||||
CRM.$(function($) {
|
||||
$('#action').on('change', function() {
|
||||
selected = $(this).find("option:selected").text();
|
||||
if (selected == 'Cancel' && contributionID) {
|
||||
CRM.alert('{/literal}{ts}Cancellations are not refundable.{/ts}{literal}', 'Warning', 'alert');
|
||||
}
|
||||
});
|
||||
});
|
||||
</script>
|
||||
{/literal}
|
41
sites/all/modules/civicrm/templates/CRM/Event/Form/Task.tpl
Normal file
41
sites/all/modules/civicrm/templates/CRM/Event/Form/Task.tpl
Normal 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 |
|
||||
+--------------------------------------------------------------------+
|
||||
*}
|
||||
{ts 1=$totalSelectedParticipants}Number of selected participants: %1{/ts}
|
||||
|
||||
{if $rows }
|
||||
<div class="form-item">
|
||||
<table width="30%">
|
||||
<tr class="columnheader">
|
||||
<th>{ts}Name{/ts}</th>
|
||||
</tr>
|
||||
{foreach from=$rows item=row}
|
||||
<tr class="{cycle values="odd-row,even-row"}">
|
||||
<td>{$row.displayName}</td>
|
||||
</tr>
|
||||
{/foreach}
|
||||
</table>
|
||||
</div>
|
||||
{/if}
|
|
@ -0,0 +1,85 @@
|
|||
{*
|
||||
+--------------------------------------------------------------------+
|
||||
| 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="crm-block crm-form-block crm-contact-task-addtogroup-form-block">
|
||||
<table class="form-layout">
|
||||
{if $group.id}
|
||||
<tr class="crm-contact-task-addtogroup-form-block-group_id">
|
||||
<td class="label">{ts}Group{/ts}</td>
|
||||
<td>{$form.group_id.html}</td>
|
||||
</tr>
|
||||
{else}
|
||||
<tr><td>{$form.group_option.html}</td></tr>
|
||||
<tr id="id_existing_group">
|
||||
<td>
|
||||
<table class="form-layout">
|
||||
<tr><td class="label">{$form.group_id.label}<span class="crm-marker">*</span></td><td>{$form.group_id.html}</td></tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
<tr id="id_new_group" class="html-adjust">
|
||||
<td>
|
||||
<table class="form-layout">
|
||||
<tr class="crm-contact-task-addtogroup-form-block-title">
|
||||
<td class="label">{$form.title.label}<span class="crm-marker">*</span></td>
|
||||
<td>{$form.title.html}</td>
|
||||
<tr>
|
||||
<tr class="crm-contact-task-addtogroup-form-block-description">
|
||||
<td class="label">{$form.description.label}</td>
|
||||
<td>{$form.description.html}</td></tr>
|
||||
{if $form.group_type}
|
||||
<tr class="crm-contact-task-addtogroup-form-block-group_type">
|
||||
<td class="label">{$form.group_type.label}</td>
|
||||
<td>{$form.group_type.html}</td>
|
||||
</tr>
|
||||
{/if}
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
{/if}
|
||||
</table>
|
||||
<table class="form-layout">
|
||||
<tr><td>{include file="CRM/Event/Form/Task.tpl"}</td></tr>
|
||||
</table>
|
||||
<div class="crm-submit-buttons">{include file="CRM/common/formButtons.tpl" location="bottom"}</div>
|
||||
</div>
|
||||
{include file="CRM/common/showHide.tpl"}
|
||||
|
||||
{if !$group.id}
|
||||
{literal}
|
||||
<script type="text/javascript">
|
||||
showElements();
|
||||
function showElements() {
|
||||
if ( document.getElementsByName('group_option')[0].checked ) {
|
||||
cj('#id_existing_group').show();
|
||||
cj('#id_new_group').hide();
|
||||
} else {
|
||||
cj('#id_new_group').show();
|
||||
cj('#id_existing_group').hide();
|
||||
}
|
||||
}
|
||||
</script>
|
||||
{/literal}
|
||||
{/if}
|
|
@ -0,0 +1,38 @@
|
|||
{*
|
||||
+--------------------------------------------------------------------+
|
||||
| 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="crm-block crm-form-block crm-event-badge-form-block">
|
||||
<div class="crm-section crm-task-count">
|
||||
{include file="CRM/Event/Form/Task.tpl"}
|
||||
</div>
|
||||
<table class="form-layout-compressed">
|
||||
<tr class="crm-event-badge-form-block-label_id">
|
||||
<td class="label">{$form.badge_id.label}</td>
|
||||
<td>{$form.badge_id.html}</td>
|
||||
</tr>
|
||||
<tr></tr>
|
||||
</table>
|
||||
<div class="crm-submit-buttons">{include file="CRM/common/formButtons.tpl" location="bottom"}</div>
|
||||
</div>
|
|
@ -0,0 +1,141 @@
|
|||
{*
|
||||
+--------------------------------------------------------------------+
|
||||
| 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="batch-update crm-block crm-form-block crm-event-batch-form-block">
|
||||
<fieldset>
|
||||
<div class="help">
|
||||
{if $context EQ 'statusChange'} {* Update Participant Status task *}
|
||||
{ts}Update the status for each participant individually below, or change all statuses to:{/ts}
|
||||
{$form.status_change.html} {help id="id-status_change"}
|
||||
{if $status}
|
||||
<div class="status">
|
||||
<p>{ts}This form <strong>will send email</strong> to contacts only in certain circumstances:{/ts}</p>
|
||||
<ul>
|
||||
<li>{ts}<strong>Resolving "Pay Later" registrations for online registrations:</strong> Participants who registered online whose status is changed from <em>Pending Pay Later</em> to <em>Registered</em> or <em>Attended</em> will receive a confirmation email and their payment status will be set to completed. If this is not you want to do, you can change their participant status by editing their event registration record directly.{/ts}</li>
|
||||
{if $notifyingStatuses}
|
||||
<li>{ts 1=$notifyingStatuses}<strong>Special statuses:</strong> Participants whose status is changed to any of the following will be automatically notified via email: %1{/ts}</li>
|
||||
{/if}
|
||||
</ul>
|
||||
</div>
|
||||
{/if}
|
||||
{else}
|
||||
{if $statusProfile EQ 1} {* Update Participant Status in batch task *}
|
||||
<div class="status">{$status}</div>
|
||||
{/if}
|
||||
{ts}Update field values for each participant as needed. To set a field to the same value for ALL rows, enter that value for the first participation and then click the
|
||||
<strong>Copy icon</strong>
|
||||
(next to the column title).{/ts}
|
||||
{/if}
|
||||
<p>{ts}Click <strong>Update Participant(s)</strong> below to save all your changes.{/ts}</p>
|
||||
</div>
|
||||
<table class="crm-copy-fields">
|
||||
<thead class="sticky">
|
||||
<tr class="columnheader">
|
||||
{foreach from=$readOnlyFields item=fTitle key=fName}
|
||||
<td>{$fTitle}</td>
|
||||
{/foreach}
|
||||
|
||||
<td>{ts}Event{/ts}</td>
|
||||
{foreach from=$fields item=field key=fieldName}
|
||||
<td><img src="{$config->resourceBase}i/copy.png" alt="{ts 1=$field.title}Click to copy %1 from row one to all rows.{/ts}" fname="{$field.name}" class="action-icon" title="{ts}Click here to copy the value in row one to ALL rows.{/ts}" />{$field.title}</td>
|
||||
{/foreach}
|
||||
|
||||
</tr>
|
||||
</thead>
|
||||
{foreach from=$componentIds item=pid}
|
||||
<tr class="{cycle values="odd-row,even-row"}" entity_id="{$pid}">
|
||||
{foreach from=$readOnlyFields item=fTitle key=fName}
|
||||
<td>{$contactDetails.$pid.$fName}</td>
|
||||
{/foreach}
|
||||
|
||||
<td class="crm-event-title">{$details.$pid.title}</td>
|
||||
{foreach from=$fields item=field key=fieldName}
|
||||
{assign var=n value=$field.name}
|
||||
|
||||
{* CRM-19860 Copied from templates/CRM/Contact/Form/Task/Batch.tpl *}
|
||||
{if $field.options_per_line}
|
||||
<td class="compressed">
|
||||
{assign var="count" value="1"}
|
||||
{strip}
|
||||
<table class="form-layout-compressed">
|
||||
<tr>
|
||||
{* sort by fails for option per line. Added a variable to iterate through the element array*}
|
||||
{assign var="index" value="1"}
|
||||
{foreach name=optionOuter key=optionKey item=optionItem from=$form.field.$pid.$n}
|
||||
{if $index < 10}
|
||||
{assign var="index" value=`$index+1`}
|
||||
{else}
|
||||
<td class="labels font-light">{$form.field.$pid.$n.$optionKey.html}</td>
|
||||
{if $count == $field.options_per_line}
|
||||
</tr>
|
||||
<tr>
|
||||
{assign var="count" value="1"}
|
||||
{else}
|
||||
{assign var="count" value=`$count+1`}
|
||||
{/if}
|
||||
{/if}
|
||||
{/foreach}
|
||||
</tr>
|
||||
</table>
|
||||
{/strip}
|
||||
</td>
|
||||
{else}
|
||||
<td class="compressed">{$form.field.$pid.$n.html}</td>
|
||||
{/if}
|
||||
{/foreach}
|
||||
</tr>
|
||||
{/foreach}
|
||||
</tr>
|
||||
<tr>
|
||||
<td> </td>
|
||||
<td> </td>
|
||||
<td> {if $fields}{$form._qf_Batch_refresh.html}{/if}{include file="CRM/common/formButtons.tpl"}
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
</fieldset>
|
||||
</div>
|
||||
|
||||
{if $context EQ 'statusChange'} {* Update Participant Status task *}
|
||||
{literal}
|
||||
<script type="text/javascript">
|
||||
/**
|
||||
* Function to update participant status
|
||||
*/
|
||||
CRM.$(function($) {
|
||||
$('#status_change').change( function() {
|
||||
if ( $(this).val() ) {
|
||||
$('.crm-copy-fields [name^="field["][name*="[participant_status]"]').val( $(this).val() );
|
||||
}
|
||||
});
|
||||
|
||||
});
|
||||
</script>
|
||||
{/literal}
|
||||
{/if}
|
||||
|
||||
{*include batch copy js js file*}
|
||||
{include file="CRM/common/batchCopy.tpl"}
|
|
@ -0,0 +1,42 @@
|
|||
{*
|
||||
+--------------------------------------------------------------------+
|
||||
| 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 |
|
||||
+--------------------------------------------------------------------+
|
||||
*}
|
||||
{* Confirmation of Cancel Registration *}
|
||||
<div class="crm-block crm-form-block crm-event-cancel-form-block">
|
||||
<div class="crm-submit-buttons">
|
||||
{include file="CRM/common/formButtons.tpl" location="top"}
|
||||
</div>
|
||||
<div class="messages status no-popup">
|
||||
<div class="icon inform-icon"></div>
|
||||
<div>
|
||||
<p>{ts}Are you sure you want to set status to Cancelled for the selected participants?{/ts}</p>
|
||||
<p>{include file="CRM/Event/Form/Task.tpl"}</p>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="crm-submit-buttons">
|
||||
{include file="CRM/common/formButtons.tpl" location="bottom"}
|
||||
</div>
|
||||
</div>
|
|
@ -0,0 +1,45 @@
|
|||
{*
|
||||
+--------------------------------------------------------------------+
|
||||
| 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 |
|
||||
+--------------------------------------------------------------------+
|
||||
*}
|
||||
{* Confirmation of participation deletes *}
|
||||
<div class="crm-block crm-form-block crm-event-delete-form-block">
|
||||
<div class="crm-submit-buttons">
|
||||
{include file="CRM/common/formButtons.tpl" location="top"}
|
||||
</div>
|
||||
<div class="messages status no-popup">
|
||||
<div class="icon inform-icon"></div>
|
||||
<div>
|
||||
<p>{ts}Are you sure you want to delete the selected participations? This delete operation cannot be undone and will delete all transactions and activity associated with these participations.{/ts}</p>
|
||||
<p>{include file="CRM/Event/Form/Task.tpl"}</p>
|
||||
</div>
|
||||
</div>
|
||||
{if $additionalParticipants}
|
||||
{$form.delete_participant.html}
|
||||
{/if}
|
||||
<p>
|
||||
<div class="crm-submit-buttons">
|
||||
{include file="CRM/common/formButtons.tpl" location="bottom"}
|
||||
</div>
|
||||
</div>
|
|
@ -0,0 +1,26 @@
|
|||
{*
|
||||
+--------------------------------------------------------------------+
|
||||
| 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 |
|
||||
+--------------------------------------------------------------------+
|
||||
*}
|
||||
{include file="CRM/Contact/Form/Task/Email.tpl"}
|
|
@ -0,0 +1,32 @@
|
|||
{*
|
||||
+--------------------------------------------------------------------+
|
||||
| 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="crm-form-block crm-block crm-contact-task-pdf-form-block">
|
||||
{if $single eq false}
|
||||
<div class="messages status no-popup">{include file="CRM/Event/Form/Task.tpl"}</div>
|
||||
{/if}
|
||||
{include file="CRM/Contact/Form/Task/PDFLetterCommon.tpl"}
|
||||
<div class="crm-submit-buttons">{include file="CRM/common/formButtons.tpl" location="bottom"}</div>
|
||||
</div>
|
|
@ -0,0 +1,34 @@
|
|||
{*
|
||||
+--------------------------------------------------------------------+
|
||||
| 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-status_change-title"}
|
||||
{ts}Participant Status{/ts}
|
||||
{/htxt}
|
||||
{htxt id="id-status_change"}
|
||||
<p><strong>{ts}Enabling Waitlisting and Registration Approval{/ts}</strong><br />
|
||||
{ts}This screen is particularly useful for managing events with Waitlisting and / or Registration Approval features enabled. In order to use these features you must first enable the related Participant Statuses (Administer » CiviEvent » Participant Statuses).{/ts}</p>
|
||||
<p><strong>{ts}Tip: Managing waitlisted participants{/ts}</strong><br />
|
||||
{ts}If you are moving participants from "On waitlist" to "Pending from waitlist" status, make sure there are available spaces for the event. An email with a link to confirm their registration will be automatically sent. However, they will only be allowed to complete their registration if the event is not full (e.g. the number of registered participants is less than the maximum number of participants configured for the event).{/ts}</p>
|
||||
{/htxt}
|
|
@ -0,0 +1,26 @@
|
|||
{*
|
||||
+--------------------------------------------------------------------+
|
||||
| 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 |
|
||||
+--------------------------------------------------------------------+
|
||||
*}
|
||||
{include file='CRM/Event/Form/Task/Batch.tpl'}
|
|
@ -0,0 +1,42 @@
|
|||
{*
|
||||
+--------------------------------------------------------------------+
|
||||
| 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="crm-block crm-form-block crm-event-pickprofile-form-block">
|
||||
<table class="form-layout">
|
||||
<tr class="crm-event-pickprofile-form-block-uf_group_id">
|
||||
<td class="label">{$form.uf_group_id.label}</td>
|
||||
<td>{$form.uf_group_id.html}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td> </td>
|
||||
<td>{include file="CRM/Event/Form/Task.tpl"}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td> </td>
|
||||
<td>{include file="CRM/common/formButtons.tpl" location="bottom"}</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
|
|
@ -0,0 +1,80 @@
|
|||
{*
|
||||
+--------------------------------------------------------------------+
|
||||
| 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 |
|
||||
+--------------------------------------------------------------------+
|
||||
*}
|
||||
<p>
|
||||
|
||||
{if $rows }
|
||||
<div class="crm-submit-buttons">
|
||||
<span class="element-right">{include file="CRM/common/formButtons.tpl" location="top"}</span>
|
||||
</div>
|
||||
<div class="spacer"></div>
|
||||
<br />
|
||||
<p>
|
||||
<table>
|
||||
<tr class="columnheader">
|
||||
<th>{ts}Name{/ts}</th>
|
||||
<th>{ts}Event{/ts}</th>
|
||||
<th>{ts}Fee Level{/ts}</th>
|
||||
<th>{ts}Fee Amount{/ts}</th>
|
||||
<th>{ts}Event Date{/ts}</th>
|
||||
<th>{ts}Status{/ts}</th>
|
||||
<th>{ts}Role{/ts}</th>
|
||||
</tr>
|
||||
{foreach from=$rows item=row}
|
||||
<tr class="{cycle values="odd-row,even-row"}">
|
||||
<td class="crm-event-print-sort_name">{$row.sort_name}</td>
|
||||
<td class="crm-event-print-event_title">{$row.event_title}</td>
|
||||
{assign var="participant_id" value=$row.participant_id}
|
||||
{if $lineItems.$participant_id}
|
||||
<td>
|
||||
{foreach from=$lineItems.$participant_id item=line name=lineItemsIter}
|
||||
{$line.label}: {$line.qty}
|
||||
{if ! $smarty.foreach.lineItemsIter.last}<br>{/if}
|
||||
{/foreach}
|
||||
</td>
|
||||
{else}
|
||||
<td>{if !$row.paid && !$row.participant_fee_level} {ts}(no fee){/ts}{else} {$row.participant_fee_level}{/if}</td>
|
||||
{/if}
|
||||
<td class="crm-event-print-event_participant_fee_amount">{$row.participant_fee_amount|crmMoney}</td>
|
||||
<td class="crm-event-print-event_date">{$row.event_start_date|truncate:10:''|crmDate}
|
||||
{if $row.event_end_date && $row.event_end_date|date_format:"%Y%m%d" NEQ $row.event_start_date|date_format:"%Y%m%d"}
|
||||
<br/>- {$row.event_end_date|truncate:10:''|crmDate}
|
||||
{/if}
|
||||
</td>
|
||||
<td class="crm-event-print-participant_status">{$row.participant_status}</td>
|
||||
<td class="crm-event-print-participant_role_id">{$row.participant_role_id}</td>
|
||||
</tr>
|
||||
{/foreach}
|
||||
</table>
|
||||
|
||||
<div class="form-item">
|
||||
<span class="element-right">{include file="CRM/common/formButtons.tpl"}</span>
|
||||
</div>
|
||||
|
||||
{else}
|
||||
<div class="messages status no-popup">
|
||||
<div class="icon inform-icon"></div> {ts}There are no records selected for Print.{/ts}
|
||||
</div>
|
||||
{/if}
|
|
@ -0,0 +1,30 @@
|
|||
{*
|
||||
+--------------------------------------------------------------------+
|
||||
| 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='spacer'></div>
|
||||
<div class="crm-submit-buttons">
|
||||
{include file="CRM/common/formButtons.tpl"}
|
||||
</div>
|
||||
|
|
@ -0,0 +1,66 @@
|
|||
{*
|
||||
+--------------------------------------------------------------------+
|
||||
| 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="crm-block crm-form-block crm-event-savesearch-form-block">
|
||||
<fieldset>
|
||||
<legend>{ts}Smart Group{/ts}</legend>
|
||||
|
||||
<div class="help">
|
||||
<p>{ts}This smart group will stay up-to-date with all contacts who meet the search criteria.{/ts}</p>
|
||||
{if !empty($partiallySelected)}
|
||||
<p>{ts}NOTE: Contacts selected on the search results are not relevant here; all contacts that meet the following criteria will be in the group.{/ts}</p>
|
||||
{/if}
|
||||
{if !empty($qill[0])}
|
||||
<div id="search-status">
|
||||
<ul>
|
||||
{foreach from=$qill[0] item=criteria}
|
||||
<li>{$criteria}</li>
|
||||
{/foreach}
|
||||
</ul>
|
||||
</div>
|
||||
{/if}
|
||||
<p>{docURL page='user/organising-your-data/smart-groups/'}</p>
|
||||
</div>
|
||||
|
||||
<table class="form-layout-compressed">
|
||||
<tr class="crm-event-savesearch-form-block-title">
|
||||
<td class="label">{$form.title.label}</td>
|
||||
<td>{$form.title.html}</td>
|
||||
</tr>
|
||||
<tr class="crm-event-savesearch-form-block-description">
|
||||
<td class="label">{$form.description.label}</td>
|
||||
<td>{$form.description.html}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="2" class="label">{include file="CRM/Event/Form/Task.tpl"}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="2">{include file="CRM/common/formButtons.tpl" location="bottom"}</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
</fieldset>
|
||||
</div>
|
||||
|
|
@ -0,0 +1,26 @@
|
|||
{*
|
||||
+--------------------------------------------------------------------+
|
||||
| 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 |
|
||||
+--------------------------------------------------------------------+
|
||||
*}
|
||||
{include file="CRM/Event/Form/Task/SaveSearch.tpl"}
|
|
@ -0,0 +1,36 @@
|
|||
{if $rows}
|
||||
<div class="crm-submit-buttons">
|
||||
<span class="element-right">{include file="CRM/common/formButtons.tpl" location="top"}</span>
|
||||
</div>
|
||||
|
||||
<div class="spacer"></div>
|
||||
<div>
|
||||
<br />
|
||||
<table>
|
||||
<tr class="columnheader">
|
||||
<th>{ts}Display Name{/ts}</th>
|
||||
<th>{ts}Amount{/ts}</th>
|
||||
<th>{ts}Register Date{/ts}</th>
|
||||
<th>{ts}Source{/ts}</th>
|
||||
</tr>
|
||||
|
||||
{foreach from=$rows item=row}
|
||||
<tr class="{cycle values="odd-row,even-row"}">
|
||||
<td class="crm-event-searchtaskhooksample-display_name">{$row.display_name}</td>
|
||||
<td class="crm-event-searchtaskhooksample-amount">{$row.amount}</td>
|
||||
<td class="crm-event-searchtaskhooksample-register_date">{$row.register_date}</td>
|
||||
<td class="crm-event-searchtaskhooksample-source">{$row.source}</td>
|
||||
</tr>
|
||||
{/foreach}
|
||||
</table>
|
||||
</div>
|
||||
|
||||
<div class="crm-submit-buttons">
|
||||
<span class="element-right">{include file="CRM/common/formButtons.tpl" location="bottom"}</span>
|
||||
</div>
|
||||
|
||||
{else}
|
||||
<div class="messages status no-popup">
|
||||
<div class="icon inform-icon"></div> {ts}There are no records selected.{/ts}
|
||||
</div>
|
||||
{/if}
|
|
@ -0,0 +1,59 @@
|
|||
{*
|
||||
+--------------------------------------------------------------------+
|
||||
| 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="upload-title"}
|
||||
{ts}Import File Format{/ts}
|
||||
{/htxt}
|
||||
{htxt id="upload"}
|
||||
<p>{ts}Files to be imported must be in the 'comma-separated-values' format (CSV). Most applications will allow you to export records in CSV format. Consult the documentation for your application if you're not sure how to do this.{/ts}</p>
|
||||
<h1>{ts}Required Participant Data{/ts}</h1>
|
||||
<p>{ts}Participant import data MUST include the following columns:{/ts}</p>
|
||||
<ul>
|
||||
<li>{ts}Event Title OR Event ID (a unique integer assigned by CiviEvent, displayed in the Manage Events listing){/ts}</li>
|
||||
<li>{ts}Participant Status (ie. Registered, Attended, Cancelled, etc.){/ts}</li>
|
||||
</ul>
|
||||
<p>{ts}The event's default Participant Role (usually Attendee) will be assigned if you do not include a value for role. Valid values for Status and Role can be found in the CiviEvent section of the Administer CiviCRM screen. You can also import Fee Level, Registration Date and any other standard or custom Participant fields.{/ts}</p>
|
||||
<h1>{ts}Contact Records for Event Participants{/ts}</h1>
|
||||
<p>{ts}Participant import requires that each person, household or organization already exists as a contact record in your CiviCRM database. If you need to import participant information for contact records which haven't been added to CiviCRM yet - you will do this in 2 steps. First, use <strong>Import Contacts</strong> to add the contact records. If possible, include a unique 'External ID' for each new contact which you can then use to match participant info such as event registration to the corresponding contact record. Then return to this screen and import the participant records.{/ts}</p>
|
||||
<h1>{ts}Matching Participant Data to Contacts{/ts}</h1>
|
||||
<p>{ts}Participant import files must contain data needed to <strong>match the participant to a contact record in your CiviCRM database</strong>. This 'matching' can be handled in several different ways:{/ts}</p>
|
||||
<ul>
|
||||
<li>{ts}Include the data fields used for contact 'matching' based on your configured <strong>Unsupervised Duplicate Matching</strong> rules. For the default duplicate matching rules, you would include a column in each row with the contributors' Email Address.{/ts}</li>
|
||||
<li>{ts}If you've stored a unique <strong>External Identifier</strong> for each contact in CiviCRM, you can include that value as a column in your import file. Participant data will then be matched to contact records using their External ID. Please note that you must use an "On Duplicate Entries" setting of "Skip" or "No Duplicate Checking" to be able to upload using the External ID field.{/ts}</li>
|
||||
<li>{ts}You can include a column with each contact's <strong>Internal Contact ID</strong>. This is the unique ID assigned by CiviCRM which is displayed at the bottom of the Contact Summary screen - and can be exported.{/ts}</li>
|
||||
</ul>
|
||||
<p>
|
||||
{ts}Save the CSV file with your participant data and 'contact matching' data to your local hard drive (or an accessible drive on your network) - and you are now ready for step 1 (Upload Data).{/ts}
|
||||
</p>
|
||||
{/htxt}
|
||||
|
||||
{htxt id="id-onDuplicate-title"}
|
||||
{ts}Matching to Contacts for Inserts and Updates{/ts}
|
||||
{/htxt}
|
||||
{htxt id="id-onDuplicate"}
|
||||
<p>{ts}For each import, you can either INSERT new event registration (participant) records, or UPDATE existing records. You can not do both types of operations in a single import session.{/ts}</p>
|
||||
<p>{ts}If you are INSERTING new participant records, you will need to include a column in your data file containing the values used to link the event registration to an existing contact. You can use the 'Internal Contact ID', an 'External Identifier' (if you are using those in your contact records), OR the property defined in your Unsupervised Duplicate Matching rule (which is Email Address by default).{/ts}</p>
|
||||
<p>{ts}If you are UPDATING existing participants, you will need to include a column containing the unique CiviCRM-assigned participant ID to match to the existing participant record.{/ts}</p>
|
||||
{/htxt}
|
|
@ -0,0 +1,94 @@
|
|||
{*
|
||||
+--------------------------------------------------------------------+
|
||||
| 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 |
|
||||
+--------------------------------------------------------------------+
|
||||
*}
|
||||
{* Event Import Wizard - Step 1 (upload data file) *}
|
||||
{* @var $form Contains the array for the form elements and other form associated information assigned to the template by the controller *}
|
||||
|
||||
<div class="crm-block crm-form-block crm-event-import-uploadfile-form-block">
|
||||
{* WizardHeader.tpl provides visual display of steps thru the wizard as well as title for current step *}
|
||||
{include file="CRM/common/WizardHeader.tpl"}
|
||||
|
||||
<div class="help">
|
||||
{ts}The Event Import Wizard allows you to easily upload event participation data such as event registrations from other applications into CiviCRM.{/ts}
|
||||
{ts}Files to be imported must be in the 'comma-separated-values' format (CSV) and must contain data needed to match the participant data to an existing contact in your CiviCRM database.{/ts} {help id='upload'}
|
||||
</div>
|
||||
<div id="upload-file" class="form-item">
|
||||
<div class="crm-submit-buttons">{include file="CRM/common/formButtons.tpl" location="top"}</div>
|
||||
<table class="form-layout">
|
||||
<tr class="crm-event-import-uploadfile-form-block-uploadFile">
|
||||
<td class="label">{$form.uploadFile.label}</td>
|
||||
<td>{$form.uploadFile.html}<br />
|
||||
<span class="description">
|
||||
{ts}File format must be comma-separated-values (CSV).{/ts}
|
||||
</span>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td> </td>
|
||||
<td>{ts 1=$uploadSize}Maximum Upload File Size: %1 MB{/ts}</td>
|
||||
</tr>
|
||||
<tr class="crm-participants-form-block-skipColumnHeader">
|
||||
<td> </td>
|
||||
<td>{$form.skipColumnHeader.html} {$form.skipColumnHeader.label}<br />
|
||||
<span class="description">
|
||||
{ts}Check this box if the first row of your file consists of field names (Example: "Contact ID", "Participant Role").{/ts}
|
||||
</span>
|
||||
</td>
|
||||
</tr>
|
||||
<tr class="crm-event-import-uploadfile-form-block-contactType">
|
||||
<td class="label">{$form.contactType.label}</td>
|
||||
<td>{$form.contactType.html}<br />
|
||||
<span class="description">
|
||||
{ts}Select 'Individual' if you are importing event participation data for individual persons.{/ts}
|
||||
{ts}Select 'Organization' or 'Household' if you are importing event participation data for contacts of that type. (NOTE: Some built-in contact types may not be enabled for your site.){/ts}
|
||||
</span>
|
||||
</td>
|
||||
</tr>
|
||||
<tr class="crm-event-import-uploadfile-form-block-onDuplicate">
|
||||
<td class="label">{$form.onDuplicate.label}</td>
|
||||
<td>{$form.onDuplicate.html} {help id="id-onDuplicate"}</td>
|
||||
</tr>
|
||||
|
||||
<tr class="crm-import-datasource-form-block-fieldSeparator">
|
||||
<td class="label">{$form.fieldSeparator.label} {help id='id-fieldSeparator' file='CRM/Contact/Import/Form/DataSource'}</td>
|
||||
<td>{$form.fieldSeparator.html}</td>
|
||||
</tr>
|
||||
<tr class="crm-event-import-uploadfile-form-block-date_format">
|
||||
{include file="CRM/Core/Date.tpl"}
|
||||
</tr>
|
||||
{if $savedMapping}
|
||||
<tr class="crm-event-import-uploadfile-form-block-savedMapping">
|
||||
<td class="label">{if $loadedMapping}{ts}Select a Different Field Mapping{/ts}{else}{ts}Load Saved Field Mapping{/ts}{/if}</dt>
|
||||
<td><span>{$form.savedMapping.html}</span> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td> </td>
|
||||
<td class="description">{ts}Select Saved Mapping, or leave blank to create a new mapping.{/ts}</td>
|
||||
{/if}
|
||||
</tr>
|
||||
</table>
|
||||
<div class="crm-submit-buttons">{include file="CRM/common/formButtons.tpl" location="bottom"}</div>
|
||||
</div>
|
||||
</div>
|
|
@ -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 |
|
||||
+--------------------------------------------------------------------+
|
||||
*}
|
||||
{* Event Import Wizard - Step 2 (map incoming data fields) *}
|
||||
{* @var $form Contains the array for the form elements and other form associated information assigned to the template by the controller *}
|
||||
<div class="crm-block crm-form-block crm-event-import-mapfield-form-block">
|
||||
{* WizardHeader.tpl provides visual display of steps thru the wizard as well as title for current step *}
|
||||
{include file="CRM/common/WizardHeader.tpl"}
|
||||
<div class="help">
|
||||
<p>{ts}Review the values shown below from the first 2 rows of your import file and select the matching CiviCRM database fields from the drop-down lists in the right-hand column. Select '- do not import -' for any columns in the import file that you want ignored.{/ts}</p>
|
||||
{if $savedMapping}
|
||||
<p>{ts}Click 'Load Saved Field Mapping' if data has been previously imported from the same source. You can then select the saved import mapping setup and load it automatically.{/ts}<p>
|
||||
{/if}
|
||||
<p>{ts}If you think you may be importing additional data from the same data source, check 'Save this field mapping' at the bottom of the page before continuing. The saved mapping can then be easily reused the next time data is imported.{/ts}</p>
|
||||
</div>
|
||||
|
||||
<table class="form-layout">
|
||||
<tr>
|
||||
<td>
|
||||
<div id="crm-submit-buttons">
|
||||
{include file="CRM/common/formButtons.tpl" location="top"}
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>{* Table for mapping data to CRM fields *}
|
||||
{include file="CRM/Event/Import/Form/MapTable.tpl}
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<div id="crm-submit-buttons">
|
||||
{include file="CRM/common/formButtons.tpl" location="bottom"}
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
{$initHideBoxes}
|
||||
</div>
|
||||
{literal}
|
||||
<script type="text/javascript" >
|
||||
if ( document.getElementsByName("saveMapping")[0].checked ) {
|
||||
document.getElementsByName("updateMapping")[0].checked = true;
|
||||
document.getElementsByName("saveMapping")[0].checked = false;
|
||||
}
|
||||
</script>
|
||||
{/literal}
|
|
@ -0,0 +1,117 @@
|
|||
{*
|
||||
+--------------------------------------------------------------------+
|
||||
| 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 |
|
||||
+--------------------------------------------------------------------+
|
||||
*}
|
||||
{* Event Import Wizard - Data Mapping table used by MapFields.tpl and Preview.tpl *}
|
||||
<div class="crm-block crm-form-block crm-event-import-maptable-form-block">
|
||||
<div id="map-field">
|
||||
{strip}
|
||||
<table>
|
||||
{if $loadedMapping}
|
||||
<tr class="columnheader-dark"><th colspan="4">{ts 1=$savedName}Saved Field Mapping: %1{/ts}</td></tr>
|
||||
{/if}
|
||||
<tr class="columnheader">
|
||||
{section name=rows loop=$rowDisplayCount}
|
||||
{if $skipColumnHeader }
|
||||
{ if $smarty.section.rows.iteration == 1 }
|
||||
<th>{ts}Column Headers{/ts}</th>
|
||||
{else}
|
||||
<th>{ts 1=$smarty.section.rows.iteration}Import Data (row %1){/ts}</th>
|
||||
{/if}
|
||||
{else}
|
||||
<th>{ts 1=$smarty.section.rows.iteration}Import Data (row %1){/ts}</th>
|
||||
{/if}
|
||||
{/section}
|
||||
|
||||
<th>{ts}Matching CiviCRM Field{/ts}</th>
|
||||
</tr>
|
||||
|
||||
{*Loop on columns parsed from the import data rows*}
|
||||
{section name=cols loop=$columnCount}
|
||||
{assign var="i" value=$smarty.section.cols.index}
|
||||
<tr style="border-bottom: 1px solid #92B6EC;">
|
||||
|
||||
{section name=rows loop=$rowDisplayCount}
|
||||
{assign var="j" value=$smarty.section.rows.index}
|
||||
<td class="{if $skipColumnHeader AND $smarty.section.rows.iteration == 1}even-row labels{else}odd-row{/if}">{$dataValues[$j][$i]}</td>
|
||||
{/section}
|
||||
|
||||
{* Display mapper <select> field for 'Map Fields', and mapper value for 'Preview' *}
|
||||
<td class="form-item even-row{if $wizard.currentStepName == 'Preview'} labels{/if}">
|
||||
{if $wizard.currentStepName == 'Preview'}
|
||||
{$mapper[$i]}
|
||||
{else}
|
||||
{$form.mapper[$i].html}
|
||||
{/if}
|
||||
</td>
|
||||
|
||||
</tr>
|
||||
{/section}
|
||||
|
||||
</table>
|
||||
{/strip}
|
||||
|
||||
{if $wizard.currentStepName != 'Preview'}
|
||||
<div>
|
||||
|
||||
{if $loadedMapping}
|
||||
<span>{$form.updateMapping.html} {$form.updateMapping.label}</span>
|
||||
{/if}
|
||||
<span>{$form.saveMapping.html} {$form.saveMapping.label}</span>
|
||||
<div id="saveDetails" class="form-item">
|
||||
<table class="form-layout">
|
||||
<tr class="crm-event_map_table-form-block-saveMappingName">
|
||||
<td class="label">{$form.saveMappingName.label}</td><td>{$form.saveMappingName.html}</td>
|
||||
</tr>
|
||||
<tr class="crm-event_map_table-form-block-saveMappingDesc">
|
||||
<td class="label">{$form.saveMappingDesc.label}</td><td>{$form.saveMappingDesc.html}</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
<script type="text/javascript">
|
||||
{if $mappingDetailsError }
|
||||
cj('#saveDetails').show();
|
||||
{else}
|
||||
cj('#saveDetails').hide();
|
||||
{/if}
|
||||
|
||||
{literal}
|
||||
function showSaveDetails(chkbox) {
|
||||
if (chkbox.checked) {
|
||||
document.getElementById("saveDetails").style.display = "block";
|
||||
document.getElementById("saveMappingName").disabled = false;
|
||||
document.getElementById("saveMappingDesc").disabled = false;
|
||||
} else {
|
||||
document.getElementById("saveDetails").style.display = "none";
|
||||
document.getElementById("saveMappingName").disabled = true;
|
||||
document.getElementById("saveMappingDesc").disabled = true;
|
||||
}
|
||||
}
|
||||
{/literal}
|
||||
{include file="CRM/common/highLightImport.tpl"}
|
||||
</script>
|
||||
</div>
|
||||
{/if}
|
||||
</div>
|
||||
</div>
|
|
@ -0,0 +1,100 @@
|
|||
{*
|
||||
+--------------------------------------------------------------------+
|
||||
| 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 |
|
||||
+--------------------------------------------------------------------+
|
||||
*}
|
||||
{* Participant Import Wizard - Step 3 (preview import results prior to actual data loading) *}
|
||||
{* @var $form Contains the array for the form elements and other form associated information assigned to the template by the controller *}
|
||||
|
||||
<div class="crm-block crm-form-block crm-event-import-preview-form-block">
|
||||
{* WizardHeader.tpl provides visual display of steps thru the wizard as well as title for current step *}
|
||||
{include file="CRM/common/WizardHeader.tpl"}
|
||||
|
||||
<div class="help">
|
||||
<p>
|
||||
{ts}The information below previews the results of importing your data in CiviCRM. Review the totals to ensure that they represent your expected results.{/ts}
|
||||
</p>
|
||||
|
||||
{if $invalidRowCount}
|
||||
<p class="error">
|
||||
{ts 1=$invalidRowCount 2=$downloadErrorRecordsUrl}CiviCRM has detected invalid data or formatting errors in %1 records. If you continue, these records will be skipped. OR, you can download a file with just these problem records - <a href='%2'>Download Errors</a>. Then correct them in the original import file, cancel this import and begin again at step 1.{/ts}
|
||||
</p>
|
||||
{/if}
|
||||
|
||||
{if $conflictRowCount}
|
||||
<p class="error">
|
||||
{ts 1=$conflictRowCount 2=$downloadConflictRecordsUrl}CiviCRM has detected %1 records with conflicting participant IDs within this data file. If you continue, these records will be skipped. OR, you can download a file with just these problem records - <a href='%2'>Download Conflicts</a>. Then correct them in the original import file, cancel this import and begin again at step 1.{/ts}
|
||||
</p>
|
||||
{/if}
|
||||
|
||||
|
||||
<p>{ts}Click 'Import Now' if you are ready to proceed.{/ts}</p>
|
||||
</div>
|
||||
|
||||
<div class="crm-submit-buttons">
|
||||
{include file="CRM/common/formButtons.tpl" location="top"}
|
||||
</div>
|
||||
{* Summary Preview (record counts) *}
|
||||
<table id="preview-counts" class="report">
|
||||
<tr><td class="label">{ts}Total Rows{/ts}</td>
|
||||
<td class="data">{$totalRowCount}</td>
|
||||
<td class="explanation">{ts}Total rows (participant records) in uploaded file.{/ts}</td>
|
||||
</tr>
|
||||
|
||||
{if $invalidRowCount}
|
||||
<tr class="error"><td class="label">{ts}Rows with Errors{/ts}</td>
|
||||
<td class="data">{$invalidRowCount}</td>
|
||||
<td class="explanation">{ts}Rows with invalid data in one or more fields. These rows will be skipped (not imported).{/ts}
|
||||
{if $invalidRowCount}
|
||||
<p><a href="{$downloadErrorRecordsUrl}">{ts}Download Errors{/ts}</a></p>
|
||||
{/if}
|
||||
</td>
|
||||
</tr>
|
||||
{/if}
|
||||
|
||||
{if $conflictRowCount}
|
||||
<tr class="error"><td class="label">{ts}Conflicting Rows{/ts}</td>
|
||||
<td class="data">{$conflictRowCount}</td>
|
||||
<td class="explanation">{ts}Rows with conflicting participant IDs within this file. These rows will be skipped (not imported).{/ts}
|
||||
{if $conflictRowCount}
|
||||
<p><a href="{$downloadConflictRecordsUrl}">{ts}Download Conflicts{/ts}</a></p>
|
||||
{/if}
|
||||
</td>
|
||||
</tr>
|
||||
{/if}
|
||||
|
||||
<tr><td class="label">{ts}Valid Rows{/ts}</td>
|
||||
<td class="data">{$validRowCount}</td>
|
||||
<td class="explanation">{ts}Total rows to be imported.{/ts}</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
|
||||
{* Table for mapping preview *}
|
||||
{include file="CRM/Event/Import/Form/MapTable.tpl}
|
||||
|
||||
|
||||
<div class="crm-submit-buttons">
|
||||
{include file="CRM/common/formButtons.tpl" location="bottom"}
|
||||
</div>
|
||||
</div>
|
|
@ -0,0 +1,140 @@
|
|||
{*
|
||||
+--------------------------------------------------------------------+
|
||||
| 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 |
|
||||
+--------------------------------------------------------------------+
|
||||
*}
|
||||
{* Event Import Wizard - Step 4 (summary of import results AFTER actual data loading) *}
|
||||
{* @var $form Contains the array for the form elements and other form associated information assigned to the template by the controller *}
|
||||
|
||||
<div class="crm-block crm-form-block crm-event-import-summary-form-block">
|
||||
|
||||
{* WizardHeader.tpl provides visual display of steps thru the wizard as well as title for current step *}
|
||||
{include file="CRM/common/WizardHeader.tpl"}
|
||||
|
||||
<div class="help">
|
||||
<p>
|
||||
<strong>{ts}Import has completed successfully.{/ts}</strong> {ts}The information below summarizes the results.{/ts}
|
||||
</p>
|
||||
|
||||
{if $unMatchCount }
|
||||
<p class="error">
|
||||
{ts count=$unMatchCount plural='CiviCRM has detected mismatched participant IDs. These records have not been updated.'}CiviCRM has detected a mismatched participant ID. This record has not been updated.{/ts}
|
||||
</p>
|
||||
<p class="error">
|
||||
{ts 1=$downloadMismatchRecordsUrl}You can <a href="%1">Download Mismatched Participants</a>. You may then correct them, and import the new file with the corrected data.{/ts}
|
||||
</p>
|
||||
{/if}
|
||||
|
||||
{if $invalidRowCount }
|
||||
<p class="error">
|
||||
{ts count=$invalidRowCount plural='CiviCRM has detected invalid data and/or formatting errors in %count records. These records have not been imported.'}CiviCRM has detected invalid data and/or formatting errors in one record. This record has not been imported.{/ts}
|
||||
</p>
|
||||
<p class="error">
|
||||
{ts 1=$downloadErrorRecordsUrl}You can <a href="%1">Download Errors</a>. You may then correct them, and import the new file with the corrected data.{/ts}
|
||||
</p>
|
||||
{/if}
|
||||
|
||||
{if $conflictRowCount}
|
||||
<p class="error">
|
||||
{ts count=$conflictRowCount plural='CiviCRM has detected %count records with conflicting participant IDs within this data file or relative to existing participant records. These records have not been imported.'}CiviCRM has detected one record with conflicting participant ID within this data file or relative to existing participant records. This record has not been imported.{/ts}
|
||||
</p>
|
||||
<p class="error">
|
||||
{ts 1=$downloadConflictRecordsUrl}You can <a href="%1">Download Conflicts</a>. You may then review these records to determine if they are actually conflicts, and correct the participant IDs for those that are not.{/ts}
|
||||
</p>
|
||||
{/if}
|
||||
|
||||
{if $duplicateRowCount}
|
||||
<p {if $dupeError}class="error"{/if}>
|
||||
{ts count=$duplicateRowCount plural='CiviCRM has detected %count records which are duplicates of existing CiviCRM participant records.'}CiviCRM has detected one record which is a duplicate of existing CiviCRM participant record.{/ts} {$dupeActionString}
|
||||
</p>
|
||||
<p {if $dupeError}class="error"{/if}>
|
||||
{ts 1=$downloadDuplicateRecordsUrl}You can <a href="%1">Download Duplicates</a>. You may then review these records to determine if they are actually duplicates, and correct the participant IDs for those that are not.{/ts}
|
||||
</p>
|
||||
{/if}
|
||||
</div>
|
||||
|
||||
<div class="crm-submit-buttons">
|
||||
{include file="CRM/common/formButtons.tpl" location="top"}
|
||||
</div>
|
||||
{* Summary of Import Results (record counts) *}
|
||||
<table id="summary-counts" class="report">
|
||||
<tr><td class="label">{ts}Total Rows{/ts}</td>
|
||||
<td class="data">{$totalRowCount}</td>
|
||||
<td class="explanation">{ts}Total rows (participant records) in uploaded file.{/ts}</td>
|
||||
</tr>
|
||||
|
||||
{if $invalidRowCount }
|
||||
<tr class="error"><td class="label">{ts}Invalid Rows (skipped){/ts}</td>
|
||||
<td class="data">{$invalidRowCount}</td>
|
||||
<td class="explanation">{ts}Rows with invalid data in one or more fields. These rows will be skipped (not imported).{/ts}
|
||||
{if $invalidRowCount}
|
||||
<p><a href="{$downloadErrorRecordsUrl}">{ts}Download Errors{/ts}</a></p>
|
||||
{/if}
|
||||
</td>
|
||||
</tr>
|
||||
{/if}
|
||||
|
||||
{if $unMatchCount }
|
||||
<tr class="error"><td class="label">{ts}Mismatched Rows (skipped){/ts}</td>
|
||||
<td class="data">{$unMatchCount}</td>
|
||||
<td class="explanation">{ts}Rows with mismatched participant IDs... (NOT updated).{/ts}
|
||||
{if $unMatchCount}
|
||||
<p><a href="{$downloadMismatchRecordsUrl}">{ts}Download Mismatched participants{/ts}</a></p>
|
||||
{/if}
|
||||
</td>
|
||||
</tr>
|
||||
{/if}
|
||||
|
||||
{if $conflictRowCount}
|
||||
<tr class="error"><td class="label">{ts}Conflicting Rows (skipped){/ts}</td>
|
||||
<td class="data">{$conflictRowCount}</td>
|
||||
<td class="explanation">{ts}Rows with conflicting participant IDs (NOT imported).{/ts}
|
||||
{if $conflictRowCount}
|
||||
<p><a href="{$downloadConflictRecordsUrl}">{ts}Download Conflicts{/ts}</a></p>
|
||||
{/if}
|
||||
</td>
|
||||
</tr>
|
||||
{/if}
|
||||
|
||||
{if $duplicateRowCount}
|
||||
<tr class="error"><td class="label">{ts}Duplicate Rows{/ts}</td>
|
||||
<td class="data">{$duplicateRowCount}</td>
|
||||
<td class="explanation">{ts}Rows which are duplicates of existing CiviCRM participant records.{/ts} {$dupeActionString}
|
||||
{if $duplicateRowCount}
|
||||
<p><a href="{$downloadDuplicateRecordsUrl}">{ts}Download Duplicates{/ts}</a></p>
|
||||
{/if}
|
||||
</td>
|
||||
</tr>
|
||||
{/if}
|
||||
|
||||
<tr><td class="label">{ts}Records Imported{/ts}</td>
|
||||
<td class="data">{$validRowCount}</td>
|
||||
<td class="explanation">{ts}Rows imported successfully.{/ts}</td>
|
||||
</tr>
|
||||
|
||||
</table>
|
||||
|
||||
<div class="crm-submit-buttons">
|
||||
{include file="CRM/common/formButtons.tpl" location="bottom"}
|
||||
</div>
|
||||
</div>
|
|
@ -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}
|
164
sites/all/modules/civicrm/templates/CRM/Event/Page/DashBoard.tpl
Normal file
164
sites/all/modules/civicrm/templates/CRM/Event/Page/DashBoard.tpl
Normal 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"> </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} {if $values.endDate}to{/if} {$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}: {$values.participants}</a>
|
||||
{else}
|
||||
{ts}Counted{/ts}: {$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 Counted{/ts}: {$values.notCountedParticipants}</a><hr />
|
||||
{else}
|
||||
{ts}Not Counted{/ts}: {$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 Counted Due To Status{/ts}: {$values.notCountedDueToStatus}</a><hr />
|
||||
{else}
|
||||
{ts}Not Counted Due To Status{/ts}: {$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 Counted Due To Role{/ts}: {$values.notCountedDueToRole}</a><hr />
|
||||
{else}
|
||||
{ts}Not Counted Due To Role{/ts}: {$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}">» {ts}Map{/ts}</a>
|
||||
|
|
||||
{/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'}">» {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}
|
266
sites/all/modules/civicrm/templates/CRM/Event/Page/EventInfo.tpl
Normal file
266
sites/all/modules/civicrm/templates/CRM/Event/Page/EventInfo.tpl
Normal 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>
|
||||
{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}
|
||||
{ts}through{/ts}
|
||||
{* 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} {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`&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}
|
|
@ -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} {/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} {/if}</td>
|
||||
<td>{if $event.contact_email}<a href="mailto:{$event.contact_email}">{$event.contact_email}</a>{else} {/if}</td>
|
||||
{if $registration_links}<td><a href="{$event.registration_link}">{$event.registration_link_text}</a></td>{/if}
|
||||
</tr>
|
||||
{/foreach}
|
||||
</table>
|
|
@ -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 » CiviEvent » 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}
|
|
@ -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> ({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}
|
|
@ -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}
|
|
@ -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}
|
|
@ -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}
|
68
sites/all/modules/civicrm/templates/CRM/Event/Page/Tab.tpl
Normal file
68
sites/all/modules/civicrm/templates/CRM/Event/Page/Tab.tpl
Normal 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}
|
|
@ -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}
|
||||
-
|
||||
{* 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>
|
||||
{ts}You are not registered for any current or upcoming Events.{/ts}
|
||||
|
||||
</div>
|
||||
{/if}
|
||||
</div>
|
|
@ -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> <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>
|
Loading…
Add table
Add a link
Reference in a new issue