First commit
This commit is contained in:
commit
c6e2478c40
13918 changed files with 2303184 additions and 0 deletions
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}
|
Loading…
Add table
Add a link
Reference in a new issue