First commit

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

View file

@ -0,0 +1,57 @@
{*
+--------------------------------------------------------------------+
| CiviCRM version 4.7 |
+--------------------------------------------------------------------+
| Copyright CiviCRM LLC (c) 2004-2017 |
+--------------------------------------------------------------------+
| This file is a part of CiviCRM. |
| |
| CiviCRM is free software; you can copy, modify, and distribute it |
| under the terms of the GNU Affero General Public License |
| Version 3, 19 November 2007 and the CiviCRM Licensing Exception. |
| |
| CiviCRM is distributed in the hope that it will be useful, but |
| WITHOUT ANY WARRANTY; without even the implied warranty of |
| MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
| See the GNU Affero General Public License for more details. |
| |
| You should have received a copy of the GNU Affero General Public |
| License and the CiviCRM Licensing Exception along |
| with this program; if not, contact CiviCRM LLC |
| at info[AT]civicrm[DOT]org. If you have questions about the |
| GNU Affero General Public License or the licensing of CiviCRM, |
| see the CiviCRM license FAQ at http://civicrm.org/licensing |
+--------------------------------------------------------------------+
*}
{* this template is used for adding/editing/deleting Credit Card *}
<div class="form-item form-item crm-block crm-form-block crm-contribution-form-block">
<fieldset><legend>{if $action eq 1}{ts}New Credit Card{/ts}{elseif $action eq 2}{ts}Edit Credit Card{/ts}{else}{ts}Delete Credit Card{/ts}{/if}</legend>
{if $action eq 8}
<div class="messages status no-popup">
<div class="icon inform-icon"></div>
{ts}WARNING: If you delete this option, contributors will not be able to use this credit card type on your Online Contribution pages.{/ts} {ts}Do you want to continue?{/ts}
</div>
{else}
<table class="form-layout-compressed">
<tr class="crm-contribution-form-block-name">
<td class="label">{$form.name.label}</td>
<td class="html-adjust">{$form.name.html}<br />
<span class="description">{ts}The name for this credit card type as it should be provided to your payment processor.{/ts}</span>
</td>
</tr>
<tr class="crm-contribution-form-block-title">
<td class="label">{$form.title.label}</td>
<td class="html-adjust">{$form.title.html}<br />
<span class="description">{ts}The name for this credit card type as it is displayed to contributors. This may be the same value as the Name above, or a localised title.{/ts}</span>
</td>
</tr>
<tr class="crm-contribution-form-block-is_active">
<td class="label">{$form.is_active.label}</td>
<td class="html-adjust">{$form.is_active.html}</td>
</tr>
</table>
{/if}
<div class="crm-submit-buttons">{$form.buttons.html}</div>
</fieldset>
</div>

View file

@ -0,0 +1,46 @@
{*
+--------------------------------------------------------------------+
| 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 Additional Detail *}
{if $isOnline}{assign var=valueStyle value=" class='view-value'"}{else}{assign var=valueStyle value=""}{/if}
<div id="id-additionalDetail" class="section-shown">
<table class="form-layout-compressed">
<tr class="crm-contribution-form-block-contribution_page"><td class="label">{$form.contribution_page_id.label}</td><td{$valueStyle}>{$form.contribution_page_id.html|crmAddClass:twenty}</td></tr>
<tr class="crm-contribution-form-block-note"><td class="label" style="vertical-align:top;">{$form.note.label}</td><td>{$form.note.html}</td></tr>
<tr class="crm-contribution-form-block-non_deductible_amount"><td class="label">{$form.non_deductible_amount.label}</td><td{$valueStyle}>{$form.non_deductible_amount.html|crmMoney:$currency:'':1}<br />
<span class="description">{ts}Non-deductible portion of this contribution.{/ts}</span></td></tr>
<tr class="crm-contribution-form-block-fee_amount"><td class="label">{$form.fee_amount.label}</td><td{$valueStyle}>{$form.fee_amount.html|crmMoney:$currency:'XXX':'YYY'}<br />
<span class="description">{ts}Processing fee for this transaction (if applicable).{/ts}</span></td></tr>
<tr class="crm-contribution-form-block-net_amount"><td class="label">{$form.net_amount.label}</td><td{$valueStyle}>{$form.net_amount.html|crmMoney:$currency:'':1}<br />
<span class="description">{ts}Net value of the contribution (Total Amount minus Fee).{/ts}</span></td></tr>
<tr class="crm-contribution-form-block-invoice_id"><td class="label">{$form.invoice_id.label}</td><td{$valueStyle}>{$form.invoice_id.html}<br />
<span class="description">{ts}Unique internal reference ID for this contribution.{/ts}</span></td></tr>
<tr class="crm-contribution-form-block-creditnote_id"><td class="label">{$form.creditnote_id.label}</td><td{$valueStyle}>{$form.creditnote_id.html}<br />
<span class="description">{ts}Unique internal Credit Note ID for this contribution.{/ts}</span></td></tr>
<tr class="crm-contribution-form-block-thankyou_date"><td class="label">{$form.thankyou_date.label}</td><td>{include file="CRM/common/jcalendar.tpl" elementName=thankyou_date}<br />
<span class="description">{ts}Date that a thank-you message was sent to the contributor.{/ts}</span></td></tr>
</table>
</div>

View file

@ -0,0 +1,31 @@
{*
+--------------------------------------------------------------------+
| CiviCRM version 4.7 |
+--------------------------------------------------------------------+
| Copyright CiviCRM LLC (c) 2004-2017 |
+--------------------------------------------------------------------+
| This file is a part of CiviCRM. |
| |
| CiviCRM is free software; you can copy, modify, and distribute it |
| under the terms of the GNU Affero General Public License |
| Version 3, 19 November 2007 and the CiviCRM Licensing Exception. |
| |
| CiviCRM is distributed in the hope that it will be useful, but |
| WITHOUT ANY WARRANTY; without even the implied warranty of |
| MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
| See the GNU Affero General Public License for more details. |
| |
| You should have received a copy of the GNU Affero General Public |
| License and the CiviCRM Licensing Exception along |
| with this program; if not, contact CiviCRM LLC |
| at info[AT]civicrm[DOT]org. If you have questions about the |
| GNU Affero General Public License or the licensing of CiviCRM, |
| see the CiviCRM license FAQ at http://civicrm.org/licensing |
+--------------------------------------------------------------------+
*}
{* this template is used for adding Credit Cart and billing details *}
<div id="id-creditCard" class="section-shown">
{include file='CRM/Core/BillingBlockWrapper.tpl'}
</div>
{include file="CRM/Contribute/Form/AdditionalInfo/Payment.tpl"}

View file

@ -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 |
+--------------------------------------------------------------------+
*}
{* this template is used for adding Credit Cart and billing details *}
<div id="id-directDebit" class="section-shown">
{include file='CRM/Core/BillingBlockWrapper.tpl'}
</div>
{include file="CRM/Contribute/Form/AdditionalInfo/Payment.tpl"}

View file

@ -0,0 +1,53 @@
{* build recurring contribution block. *}
{if $buildRecurBlock}
{literal}
<script type="text/javascript" >
function enablePeriod( )
{
var frUnit = cj( '#frequency_unit' );
var frInerval = cj( '#frequency_interval' );
var installments = cj( '#installments' );
isDisabled = false;
if ( cj( 'input:radio[name="is_recur"]:checked').val() == 0 ) {
isDisabled = true;
frInerval.val( '' );
installments.val( '' );
}
frUnit.prop( 'disabled', isDisabled );
frInerval.prop( 'disabled', isDisabled );
installments.prop( 'disabled', isDisabled );
}
function buildRecurBlock( processorId ) {
if ( !processorId ) processorId = cj( "#payment_processor_id" ).val( );
var recurPaymentProIds = {/literal}'{$recurringPaymentProcessorIds}'{literal};
var funName = ( cj.inArray(processorId, recurPaymentProIds.split(',')) > -1 ) ? 'show' : 'hide';
var priceSet = cj("#price_set_id");
if ( priceSet && priceSet.val( ) ) {
funName = 'hide';
//reset the values of recur block.
if ( cj( 'input:radio[name="is_recur"]:checked').val() ) {
cj("#installments").val('');
cj("#frequency_interval").val('');
cj( 'input:radio[name="is_recur"]')[0].checked = true;
}
}
enablePeriod( );
eval( 'cj( "#recurringPaymentBlock" ).' + funName + "( )" );
}
CRM.$(function($) {
buildRecurBlock( null );
enablePeriod( );
});
</script>
{/literal}
{/if}

View file

@ -0,0 +1,36 @@
{*
+--------------------------------------------------------------------+
| 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 Payment Reminders Information *}
<div id="id-paymentReminders" class="section-shown crm-contribution-additionalinfo-payment_reminders-form-block">
<table class="form-layout-compressed">
<tr class="crm-contribution-form-block-initial_reminder_day"><td class="label">{$form.initial_reminder_day.label}</td><td>{$form.initial_reminder_day.html} {help id="id-payment-reminders"}</td></tr>
<tr><td class="label">&nbsp;</td><td class="description">{ts}Days prior to each scheduled payment due date.{/ts}</td></tr>
<tr class="crm-contribution-form-block-max_reminders"><td class="label">{$form.max_reminders.label}</td><td>{$form.max_reminders.html}</td></tr>
<tr><td class="label">&nbsp;</td><td class="description">{ts}Reminders for each scheduled payment.{/ts}</td></tr>
<tr class="crm-contribution-form-block-additional_reminder_day"><td class="label">{$form.additional_reminder_day.label}</td><td>{$form.additional_reminder_day.html}</td></tr>
<tr><td class="label">&nbsp;</td><td class="description">{ts}Days after the last one sent, up to the maximum number of reminders.{/ts}</td></tr>
</table>
</div>

View file

@ -0,0 +1,94 @@
{*
+--------------------------------------------------------------------+
| CiviCRM version 4.7 |
+--------------------------------------------------------------------+
| Copyright CiviCRM LLC (c) 2004-2017 |
+--------------------------------------------------------------------+
| This file is a part of CiviCRM. |
| |
| CiviCRM is free software; you can copy, modify, and distribute it |
| under the terms of the GNU Affero General Public License |
| Version 3, 19 November 2007 and the CiviCRM Licensing Exception. |
| |
| CiviCRM is distributed in the hope that it will be useful, but |
| WITHOUT ANY WARRANTY; without even the implied warranty of |
| MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
| See the GNU Affero General Public License for more details. |
| |
| You should have received a copy of the GNU Affero General Public |
| License and the CiviCRM Licensing Exception along |
| with this program; if not, contact CiviCRM LLC |
| at info[AT]civicrm[DOT]org. If you have questions about the |
| GNU Affero General Public License or the licensing of CiviCRM, |
| see the CiviCRM license FAQ at http://civicrm.org/licensing |
+--------------------------------------------------------------------+
*}
{* this template is used for adding/editing Premium Information *}
<div id="id-premium" class="section-shown crm-contribution-additionalinfo-premium-form-block">
<table class="form-layout-compressed">
<tr class="crm-contribution-form-block-product_name">
<td class="label">{$form.product_name.label}</td>
<td class="html-adjust">{$form.product_name.html}</td>
</tr>
</table>
<div id="premium_contri">
<table class="form-layout-compressed">
<tr class="crm-contribution-form-block-min_amount">
<td class="label">{$form.min_amount.label}</td>
<td class="html-adjust">{$form.min_amount.html|crmAddClass:'no-border'|crmMoney:$currency}</td>
</tr>
</table>
<div class="spacer"></div>
</div>
<table class="form-layout-compressed">
<tr class="crm-contribution-form-block-fulfilled_date">
<td class="label">{$form.fulfilled_date.label}</td>
<td class="html-adjust">{include file="CRM/common/jcalendar.tpl" elementName=fulfilled_date}</td>
</tr>
</table>
</div>
{literal}
<script type="text/javascript">
var min_amount = document.getElementById("min_amount");
min_amount.readOnly = 1;
function showMinContrib( ) {
var product = document.getElementsByName("product_name[0]")[0];
var product_id = product.options[product.selectedIndex].value;
var min_amount = document.getElementById("min_amount");
var amount = [];
amount[0] = '';
if( product_id > 0 ) {
cj('#premium_contri').show();
} else {
cj('#premium_contri').hide();
}
{/literal}
var index = 1;
{foreach from= $mincontribution item=amt key=id}
{literal}amount[index]{/literal} = "{$amt}"
{literal}index = index + 1{/literal}
{/foreach}
{literal}
if(amount[product_id]) {
min_amount.value = amount[product_id];
} else {
min_amount.value = "";
}
}
</script>
{/literal}
{if $action eq 1 or $action eq 2 or $action eq null }
<script type="text/javascript">
showMinContrib( );
</script>
{/if}
{if $action ne 2 or $showOption eq true}
{$initHideBoxes}
{/if}

View file

@ -0,0 +1,36 @@
{*
+--------------------------------------------------------------------+
| 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-trans_id"}
{ts}Unique payment ID for this transaction. The Payment Processor's transaction ID will be automatically stored here on online contributions.{/ts} {ts}For offline contributions you can record a bank transfer ID or other identifier if applicable.{/ts}
{/htxt}
{htxt id="payment_instrument_id"}
<p>
{ts}Choose the method by which this transaction was paid.{/ts}
</p><p>
{ts}Note: if the correct payment instrument is not listed here (e.g. for in-kind donations) ask your administrator to add a new option to this list.{/ts}
</p>
{/htxt}

View file

@ -0,0 +1,171 @@
{*
+--------------------------------------------------------------------+
| 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 $transaction}
{include file="CRM/Contribute/Form/PaymentInfoBlock.tpl"}
{if !$suppressPaymentFormButtons}
<div class="crm-submit-buttons">
{include file="CRM/common/formButtons.tpl"}
</div>
{/if}
{else}
<div class="crm-block crm-form-block crm-payment-form-block">
{if !$email}
<div class="messages status no-popup">
<div class="icon inform-icon"></div>&nbsp;{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}
{if $newCredit AND $contributionMode EQ null}
{if $contactId}
{capture assign=ccModeLink}{crmURL p='civicrm/payment/add' q="reset=1&action=add&cid=`$contactId`&id=`$id`&component=`$component`&mode=live"}{/capture}
{/if}
{if $paymentType eq 'owed'}
<div class="action-link css_right crm-link-credit-card-mode">
<a class="open-inline-noreturn action-item crm-hover-button" href="{$ccModeLink}">&raquo; {ts}submit credit card payment{/ts}</a>
</div>
{/if}
{/if}
<div class="crm-submit-buttons">
{include file="CRM/common/formButtons.tpl"}
</div>
<table class="form-layout-compressed">
<tr>
<td class="font-size12pt label"><strong>{if $component eq 'event'}{ts}Participant{/ts}{else}{ts}Contact{/ts}{/if}</strong></td><td class="font-size12pt"><strong>{$displayName}</strong></td>
</tr>
{if $eventName}
<tr>
<td class='label'>{ts}Event{/ts}</td><td>{$eventName}</td>
</tr>
{/if}
<tr class="crm-payment-form-block-total_amount">
<td class="label">{$form.total_amount.label}</td>
<td>
<span id='totalAmount'>{$form.currency.html|crmAddClass:eight}&nbsp;{$form.total_amount.html|crmAddClass:eight}</span>&nbsp; <span class="status">{if $paymentType EQ 'refund'}{ts}Refund Due{/ts}{else}{ts}Balance Owed{/ts}{/if}:&nbsp;{$paymentAmt|crmMoney}</span>
</td>
{if $email and $outBound_option != 2}
<tr class="crm-payment-form-block-is_email_receipt">
<td class="label">
{$form.is_email_receipt.label}
</td>
<td>{$form.is_email_receipt.html}&nbsp;
<span class="description">{ts 1=$email}Automatically email a receipt to %1?{/ts}</span>
</td>
</tr>
<tr id="fromEmail" class="crm-payment-form-block-from_email_address" style="display:none;">
<td class="label">{$form.from_email_address.label}</td>
<td>{$form.from_email_address.html}</td>
</tr>
{/if}
{if $contributionMode}
<tr class="crm-payment-form-block-payment_processor_id"><td class="label nowrap">{$form.payment_processor_id.label}<span class="crm-marker"> * </span></td><td>{$form.payment_processor_id.html}</td></tr>
{/if}
</tr>
</table>
<div class="crm-accordion-wrapper crm-accordion_title-accordion crm-accordion-processed" id="paymentDetails_Information">
{if !$contributionMode}
<div class="crm-accordion-header">
{if $paymentType EQ 'refund'}{ts}Refund Details{/ts}{else}{ts}Payment Details{/ts}{/if}
</div>
<div class="crm-accordion-body">
<table class="form-layout-compressed" >
<tr class="crm-payment-form-block-trxn_date">
<td class="label">{$form.trxn_date.label}</td>
<td>{$form.trxn_date.html}<br />
<span class="description">{ts}The date this payment was received.{/ts}</span>
</td>
</tr>
<tr class="crm-payment-form-block-payment_instrument_id">
<td class="label">{$form.payment_instrument_id.label}</td>
<td >{$form.payment_instrument_id.html} {help id="payment_instrument_id"}</td>
</td>
</tr>
<tr class="crm-payment-form-block-trxn_id">
<td class="label">{$form.trxn_id.label}</td>
<td>{$form.trxn_id.html} {help id="id-trans_id"}</td>
</tr>
<tr class="crm-payment-form-block-fee_amount"><td class="label">{$form.fee_amount.label}</td><td{$valueStyle}>{$form.fee_amount.html|crmMoney:$currency:'XXX':'YYY'}<br />
<span class="description">{ts}Processing fee for this transaction (if applicable).{/ts}</span></td></tr>
<tr class="crm-payment-form-block-net_amount"><td class="label">{$form.net_amount.label}</td><td>{$form.net_amount.html|crmMoney:$currency:'':1}<br />
<span class="description">{ts}Net value of the payment (Total Amount minus Fee).{/ts}</span></td></tr>
</table>
</div>
{/if}
{include file='CRM/Core/BillingBlockWrapper.tpl'}
</div>
{literal}
<script type="text/javascript">
var url = "{/literal}{$dataUrl}{literal}";
CRM.$(function($) {
showHideByValue( 'is_email_receipt', '', 'notice', 'table-row', 'radio', false );
showHideByValue( 'is_email_receipt', '', 'fromEmail', 'table-row', 'radio', false );
});
{/literal}
</script>
<br />
<div class="crm-submit-buttons">{include file="CRM/common/formButtons.tpl" location="bottom"}</div>
</div>
{literal}
<script type="text/javascript">
function verify() {
if (cj('#is_email_receipt').prop('checked')) {
return confirm( '{/literal}{ts escape='js'}Click OK to save this payment record AND send a receipt to the contributor now{/ts}{literal}.' );
}
}
CRM.$(function($) {
var $form = $('form.{/literal}{$form.formClass}{literal}');
checkEmailDependancies();
$('#is_email_receipt', $form).click(function() {
checkEmailDependancies();
});
function checkEmailDependancies() {
if ($('#is_email_receipt', $form).prop('checked')) {
$('#fromEmail', $form).show();
}
else {
$('#fromEmail', $form).hide( );
}
}
$('#fee_amount', $form).change( function() {
var totalAmount = $('#total_amount', $form).val();
var feeAmount = $('#fee_amount', $form).val();
var netAmount = totalAmount.replace(/,/g, '') - feeAmount.replace(/,/g, '');
if (!$('#net_amount', $form).val() && totalAmount) {
$('#net_amount', $form).val(CRM.formatMoney(netAmount, true));
}
});
});
</script>
{/literal}
{/if}

View file

@ -0,0 +1,58 @@
{*
+--------------------------------------------------------------------+
| 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-auto-renew-membership-cancellation">
<div class="help">
<div class="icon inform-icon"></div>&nbsp;
{if $mode eq 'auto_renew'}
{ts}Click the button below if you want to cancel the auto-renewal option for your {$membershipType} membership. This will not cancel your membership. However you will need to arrange payment for renewal when your membership expires.{/ts}
{else}
<strong>{ts 1=$amount|crmMoney 2=$frequency_interval 3=$frequency_unit}Recurring Contribution Details: %1 every %2 %3{/ts}
{if $installments}
{ts 1=$installments}for %1 installments{/ts}.
{/if}</strong>
<div class="content">{ts}Click the button below to cancel this commitment and stop future transactions. This does not affect contributions which have already been completed.{/ts}</div>
{/if}
{if !$cancelSupported}
<div class="status-warning">
{ts}Automatic cancellation is not supported for this payment processor. You or the contributor will need to manually cancel this recurring contribution using the payment processor website.{/ts}
</div>
{/if}
</div>
{if !$self_service}
<table class="form-layout">
<tr>
<td class="label">{$form.send_cancel_request.label}</td>
<td class="html-adjust">{$form.send_cancel_request.html}</td>
</tr>
<tr>
<td class="label">{$form.is_notify.label}</td>
<td class="html-adjust">{$form.is_notify.html}</td>
</tr>
</table>
{/if}
<div class="crm-submit-buttons">{include file="CRM/common/formButtons.tpl" location="top"}</div>
</div>

View file

@ -0,0 +1,673 @@
{*
+--------------------------------------------------------------------+
| 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 contributions and pledge payments *}
{if $priceSetId}
{include file="CRM/Price/Form/PriceSet.tpl" context="standalone" extends="Contribution"}
{elseif $showAdditionalInfo and $formType }
{include file="CRM/Contribute/Form/AdditionalInfo/$formType.tpl"}
{else}
{include file="CRM/Contribute/Form/AdditionalInfo/Payment.tpl"}
<div class="crm-block crm-form-block crm-contribution-form-block">
{if !$email and $action neq 8 and $context neq 'standalone'}
<div class="messages status no-popup">
<div class="icon inform-icon"></div>&nbsp;{ts}You will not be able to send an automatic email receipt for this contribution because there is no email address recorded for this contact. If you want a receipt to be sent when this contribution is recorded, click Cancel and then click Edit from the Summary tab to add an email address before recording the contribution.{/ts}
</div>
{/if}
{if $contributionMode}
<div class="help">
{if $contactId && $payNow}
{ts 1=$displayName 2=$contributionMode|upper}Use this form to edit a contribution on behalf of %1. <strong>A
%2 transaction will be submitted</strong> using the selected payment processor.{/ts}
{elseif $contactId}
{ts 1=$displayName 2=$contributionMode|upper}Use this form to submit a new contribution on behalf of %1. <strong>A
%2 transaction will be submitted</strong> using the selected payment processor.{/ts}
{else}
{ts 1=$displayName 2=$contributionMode|upper}Use this form to submit a new contribution. <strong>A %2 transaction will be submitted</strong> using the selected payment processor.{/ts}
{/if}
</div>
{/if}
{if $action eq 8}
<div class="messages status no-popup">
<div class="icon inform-icon"></div>
{ts}WARNING: Deleting this contribution will result in the loss of the associated financial transactions (if any).{/ts} {ts}Do you want to continue?{/ts}
</div>
{else}
{if $newCredit AND $action EQ 1 AND $contributionMode EQ null}
<div class="action-link css_right crm-link-credit-card-mode">
{if $contactId}
{capture assign=ccModeLink}{crmURL p='civicrm/contact/view/contribution' q="reset=1&action=add&cid=`$contactId`&context=`$context`&mode=live"}{/capture}
{else}
{capture assign=ccModeLink}{crmURL p='civicrm/contact/view/contribution' q="reset=1&action=add&context=standalone&mode=live"}{/capture}
{/if}
<a class="open-inline-noreturn action-item crm-hover-button" href="{$ccModeLink}">&raquo; {ts}submit credit card contribution{/ts}</a>
</div>
{/if}
<div class="crm-submit-buttons">
{include file="CRM/common/formButtons.tpl"}
</div>
{if $isOnline}{assign var=valueStyle value=" class='view-value'"}{else}{assign var=valueStyle value=""}{/if}
<table class="form-layout-compressed">
{if $context neq 'standalone'}
<tr>
<td class="font-size12pt label"><strong><strong>{ts}Contributor{/ts}</strong></td><td class="font-size12pt"><strong>{$displayName}</strong></td>
</tr>
{else}
<td class="label">{$form.contact_id.label}</td>
<td>{$form.contact_id.html}</td>
{/if}
<tr class="crm-contribution-form-block-contribution_type_id crm-contribution-form-block-financial_type_id">
<td class="label">{$form.financial_type_id.label}</td><td{$valueStyle}>{$form.financial_type_id.html}&nbsp;
{if $is_test}
{ts}(test){/ts}
{/if} {help id="id-financial_type"}
</td>
</tr>
{if $action eq 2 and $lineItem and !$defaultContribution}
<tr>
<td class="label">{ts}Contribution Amount{/ts}</td>
<td>{include file="CRM/Price/Page/LineItem.tpl" context="Contribution"}</td>
</tr>
{else}
<tr class="crm-contribution-form-block-total_amount">
<td class="label">{$form.total_amount.label}</td>
<td {$valueStyle}>
<span id='totalAmount'>{$form.currency.html|crmAddClass:eight}&nbsp;{$form.total_amount.html|crmAddClass:eight}</span>
{if !$payNow}
{if $hasPriceSets}
<span id='totalAmountORPriceSet'> {ts}OR{/ts}</span>
<span id='selectPriceSet'>{$form.price_set_id.html}</span>
<div id="priceset" class="hiddenElement"></div>
{/if}
{if $ppID}{ts}<a class='action-item crm-hover-button' onclick='adjustPayment();'>adjust payment amount</a>{/ts}{help id="adjust-payment-amount"}{/if}
<div id="totalAmountBlock">
{if $hasPriceSets}<span class="description">{ts}Alternatively, you can use a price set.{/ts}</span>{/if}
<div id="totalTaxAmount" class="label"></div>
</div>
{/if}
</td>
</tr>
{if $buildRecurBlock && !$payNow}
<tr id='recurringPaymentBlock' class='hiddenElement'>
<td></td>
<td>
<strong>{$form.is_recur.html} {ts}every{/ts}
&nbsp;{$form.frequency_interval.html}
&nbsp;{$form.frequency_unit.html}&nbsp;
{ts}for{/ts}
&nbsp;{$form.installments.html}
&nbsp;{$form.installments.label}
</strong>
<br />
<span class="description">
{ts}Your recurring contribution will be processed automatically for the number of installments you specify. You can leave the number of installments blank if you want to make an open-ended commitment. In either case, you can choose to cancel at any time. You will receive an email receipt for each recurring contribution. The receipts will include a link you can use if you decide to modify or cancel your future contributions.{/ts}
</span>
</td>
</tr>
{/if}
<tr id="adjust-option-type" class="crm-contribution-form-block-option_type">
<td class="label"></td><td {$valueStyle}>{$form.option_type.html}</td>
</tr>
{/if}
{if $contributionMode && $processorSupportsFutureStartDate}
<tr id='start_date' class="crm-contribution-form-block-receive_date">
<td class="label">{ts}Start Date{/ts}</td>
<td {$valueStyle}>{if $hideCalender neq true}{include file="CRM/common/jcalendar.tpl" elementName=receive_date}{else}{$receive_date|crmDate}{/if}<br />
<span class="description">{ts}You can set a start date for recurring contributions and the first payment will be on that date. For a single post-dated contribution you must select recurring and choose one installment{/ts}</span>
</td>
</tr>
{/if}
<tr class="crm-contribution-form-block-source">
<td class="label">{$form.source.label}</td>
<td {$valueStyle}>{$form.source.html|crmAddClass:huge} {help id="id-contrib_source"}
</td>
</tr>
{* CRM-7362 --add campaign to contributions *}
{include file="CRM/Campaign/Form/addCampaignToComponent.tpl" campaignTrClass="crm-contribution-form-block-campaign_id"}
{if !$contributionMode || $payNow}
<tr class="crm-contribution-form-block-contribution_status_id">
<td class="label">{$form.contribution_status_id.label}</td>
<td>{$form.contribution_status_id.html}
{if $contribution_status_id eq 2}{if $is_pay_later }: {ts}Pay Later{/ts} {else}: {ts}Incomplete Transaction{/ts}{/if}{/if}
</td>
<td>
{if $contactId && $contribID && $contributionMode EQ null && $contribution_status_id eq 2}
{capture assign=payNowLink}{crmURL p='civicrm/contact/view/contribution' q="reset=1&action=update&id=`$contribID`&cid=`$contactId`&context=`$context`&mode=live"}{/capture}
<a class="open-inline action-item crm-hover-button" href="{$payNowLink}">&raquo; {ts}Pay with Credit Card{/ts}</a>
{/if}
</td>
</tr>
{/if}
{if !$contributionMode}
{* Cancellation / Refunded fields are hidden unless contribution status is set to Cancelled or Refunded*}
<tr id="cancelInfo" class="crm-contribution-form-block-cancelInfo">
<td>&nbsp;</td>
<td><fieldset><legend>{ts}Cancellation or Refund Information{/ts}</legend>
<table class="form-layout-compressed">
<tr id="cancelDate" class="crm-contribution-form-block-cancel_date">
<td class="label">{$form.cancel_date.label}</td>
<td>
{if $hideCalendar neq true}
{include file="CRM/common/jcalendar.tpl" elementName=cancel_date}
{else}
{$form.cancel_date.value|crmDate}
{/if}
</td>
</tr>
<tr id="cancelDescription" class="crm-contribution-form-block-cancel_reason">
<td class="label">&nbsp;</td>
<td class="description">{ts}Enter the cancellation or refunded date, or you can skip this field and the cancellation date or refunded date will be automatically set to TODAY.{/ts}</td>
</tr>
<tr id="cancelReason">
<td class="label" style="vertical-align: top;">{$form.cancel_reason.label}</td>
<td>{$form.cancel_reason.html}</td>
</tr>
<tr id="refundTrxnID">
<td class="label" style="vertical-align: top;">{$form.refund_trxn_id.label}</td>
<td>{$form.refund_trxn_id.html}</td>
</tr>
</table>
</fieldset>
</td>
</tr>
<tr class="crm-contribution-form-block-receive_date">
<td class="label">{$form.receive_date.label}</td>
<td {$valueStyle}>{include file="CRM/common/jcalendar.tpl" elementName=receive_date}<br />
<span class="description">{ts}The date this contribution was received.{/ts}</span>
</td>
</tr>
{/if}
{if $form.revenue_recognition_date && !$payNow}
<tr class="crm-contribution-form-block-revenue_recognition_date">
<td class="label">{$form.revenue_recognition_date.label}</td>
<td>{$form.revenue_recognition_date.html}</td>
</tr>
{/if}
{if $email and $outBound_option != 2}
<tr class="crm-contribution-form-block-is_email_receipt">
<td class="label">{$form.is_email_receipt.label}</td>
<td>{$form.is_email_receipt.html}&nbsp;
<span class="description">{ts 1=$email}Automatically email a receipt for this payment to %1?{/ts}</span>
</td>
</tr>
{elseif $context eq 'standalone' and $outBound_option != 2 }
<tr id="email-receipt" style="display:none;" class="crm-contribution-form-block-is_email_receipt">
<td class="label">{$form.is_email_receipt.label}</td>
<td>{$form.is_email_receipt.html} <span class="description">{ts}Automatically email a receipt for this payment to {/ts}<span id="email-address"></span>?</span>
</td>
</tr>
{/if}
<tr id="fromEmail" class="crm-contribution-form-block-receipt_date" style="display:none;">
<td class="label">{$form.from_email_address.label}</td>
<td>{$form.from_email_address.html}</td>
</tr>
<tr id="receiptDate" class="crm-contribution-form-block-receipt_date">
<td class="label">{$form.receipt_date.label}</td>
<td>{include file="CRM/common/jcalendar.tpl" elementName=receipt_date}<br />
<span class="description">{ts}Date that a receipt was sent to the contributor.{/ts}</span>
</td>
</tr>
{if $form.payment_processor_id}
<tr class="crm-contribution-form-block-payment_processor_id"><td class="label nowrap">{$form.payment_processor_id.label}<span class="crm-marker"> * </span></td><td>{$form.payment_processor_id.html}</td></tr>
{/if}
</table>
{if !$contributionMode}
<fieldset class="payment-details_group">
<legend>
{ts}Payment Details{/ts}
</legend>
<table class="form-layout-compressed" >
<tr class="crm-contribution-form-block-payment_instrument_id">
<td class="label">{$form.payment_instrument_id.label}</td>
<td {$valueStyle}>{$form.payment_instrument_id.html} {help id="payment_instrument_id"}</td>
</td>
</tr>
<tr class="crm-contribution-form-block-trxn_id">
<td class="label">{$form.trxn_id.label}</td>
<td {$valueStyle}>{$form.trxn_id.html} {help id="id-trans_id"}</td>
</tr>
</table>
</fieldset>
{/if}
{include file='CRM/Core/BillingBlockWrapper.tpl'}
<!-- start of soft credit -->
{if !$payNow}
<div class="crm-accordion-wrapper crm-accordion_title-accordion crm-accordion-processed {if $noSoftCredit}collapsed{/if}" id="softCredit">
<div class="crm-accordion-header">
{ts}Soft Credit{/ts}&nbsp;{help id="id-soft_credit"}
</div>
<div class="crm-accordion-body">
<table class="form-layout-compressed">
<tr class="crm-contribution-form-block-soft_credit_to">
<td colspan="2">
{include file="CRM/Contribute/Form/SoftCredit.tpl"}
</td>
</tr>
</table>
</div>
</div>
{/if}
<!-- end of soft credit -->
<!-- start of PCP -->
{if $siteHasPCPs && !$payNow}
<div class="crm-accordion-wrapper crm-accordion_title-accordion crm-accordion-processed {if $noPCP}collapsed{/if}" id="softCredit">
<div class="crm-accordion-header">
{ts}Personal Campaign Page{/ts}&nbsp;{help id="id-pcp"}
</div>
<div class="crm-accordion-body">
<table class="form-layout-compressed">
<tr class="crm-contribution-pcp-block crm-contribution-form-block-pcp_made_through_id">
<td class="label">{$form.pcp_made_through_id.label}</td>
<td>
{$form.pcp_made_through_id.html} &nbsp;
<div class="description">{ts}Search for the Personal Campaign Page by the fund-raiser's last name or email address.{/ts}</div>
<div class="spacer"></div>
<div class="crm-contribution-form-block-pcp_details">
<table class="crm-contribution-form-table-credit_to_pcp">
<tr id="pcpDisplayRollID" class="crm-contribution-form-block-pcp_display_in_roll">
<td class="label">{$form.pcp_display_in_roll.label}</td>
<td>{$form.pcp_display_in_roll.html}</td>
</tr>
<tr id="nickID" class="crm-contribution-form-block-pcp_roll_nickname">
<td class="label">{$form.pcp_roll_nickname.label}</td>
<td>{$form.pcp_roll_nickname.html|crmAddClass:big}<br/>
<div class="description">{ts}Name or nickname contributor wants to be displayed in the Honor Roll. Enter "Anonymous" for anonymous contributions.{/ts}</div>
</td>
</tr>
<tr id="personalNoteID" class="crm-contribution-form-block-pcp_personal_note">
<td class="label" style="vertical-align: top">{$form.pcp_personal_note.label}</td>
<td>
{$form.pcp_personal_note.html}
<div
class="description">{ts}Personal message submitted by contributor for display in the Honor Roll.{/ts}</div>
</td>
</tr>
</table>
</div>
</td>
</tr>
</table>
</div>
</div>
{include file="CRM/Contribute/Form/PCP.js.tpl"}
{/if}
<!-- end of PCP -->
{if !$payNow}
<div id="customData" class="crm-contribution-form-block-customData"></div>
{/if}
{*include custom data js file*}
{include file="CRM/common/customData.tpl"}
{literal}
<script type="text/javascript">
CRM.$(function($) {
{/literal}
CRM.buildCustomData( '{$customDataType}' );
{if $customDataSubType}
CRM.buildCustomData( '{$customDataType}', {$customDataSubType} );
{/if}
{if $buildPriceSet}{literal}buildAmount( );{/literal}{/if}
{literal}
});
// bind first click of accordion header to load crm-accordion-body with snippet
// everything else taken care of by cj().crm-accordions()
CRM.$(function($) {
cj('#adjust-option-type').hide();
cj('.crm-ajax-accordion .crm-accordion-header').one('click', function() {
loadPanes(cj(this).attr('id'));
});
cj('.crm-ajax-accordion:not(.collapsed) .crm-accordion-header').each(function(index) {
loadPanes(cj(this).attr('id'));
});
});
// load panes function calls for snippet based on id of crm-accordion-header
function loadPanes( id ) {
var url = "{/literal}{crmURL p='civicrm/contact/view/contribution' q='snippet=4&formType=' h=0}{literal}" + id;
{/literal}
{if $contributionMode}
url = url + "&mode={$contributionMode}";
{/if}
{if $qfKey}
url = url + "&qfKey={$qfKey}";
{/if}
{literal}
if (! cj('div.'+id).html()) {
var loading = '<img src="{/literal}{$config->resourceBase}i/loading.gif{literal}" alt="{/literal}{ts escape='js'}loading{/ts}{literal}" />&nbsp;{/literal}{ts escape='js'}Loading{/ts}{literal}...';
cj('div.'+id).html(loading);
cj.ajax({
url : url,
success: function(data) { cj('div.'+id).html(data).trigger('crmLoad'); }
});
}
}
var url = "{/literal}{$dataUrl}{literal}";
{/literal}
{if $context eq 'standalone' and $outBound_option != 2 }
{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();
$("#email-address", $form).html(data.extra.email);
}
else {
$("#email-receipt", $form).hide();
}
}
showHideByValue( 'is_email_receipt', '', 'receiptDate', 'table-row', 'radio', true);
showHideByValue( 'is_email_receipt', '', 'fromEmail', 'table-row', 'radio', false );
});
{/literal}
{/if}
</script>
<div class="accordion ui-accordion ui-widget ui-helper-reset">
{* Additional Detail / Honoree Information / Premium Information *}
{foreach from=$allPanes key=paneName item=paneValue}
<div class="crm-accordion-wrapper crm-ajax-accordion crm-{$paneValue.id}-accordion {if $paneValue.open neq 'true'}collapsed{/if}">
<div class="crm-accordion-header" id="{$paneValue.id}">
{$paneName}
</div><!-- /.crm-accordion-header -->
<div class="crm-accordion-body">
<div class="{$paneValue.id}"></div>
</div><!-- /.crm-accordion-body -->
</div><!-- /.crm-accordion-wrapper -->
{/foreach}
</div>
{/if}
<br />
<div class="crm-submit-buttons">{include file="CRM/common/formButtons.tpl" location="bottom"}</div>
</div>
{literal}
<script type="text/javascript">
function verify( ) {
if (cj('#is_email_receipt').prop('checked' )) {
var ok = confirm( '{/literal}{ts escape='js'}Click OK to save this contribution record AND send a receipt to the contributor now{/ts}{literal}.' );
if (!ok) {
return false;
}
}
}
</script>
{/literal}
{if $action neq 8}
{literal}
<script type="text/javascript">
CRM.$(function($) {
var $form = $('form.{/literal}{$form.formClass}{literal}');
checkEmailDependancies();
$('#is_email_receipt', $form).click(function() {
checkEmailDependancies();
});
function checkEmailDependancies( ) {
if ($('#is_email_receipt', $form).prop('checked')) {
$('#fromEmail', $form).show();
$('#receiptDate', $form).hide();
}
else {
$('#fromEmail', $form).hide();
$('#receiptDate', $form).show();
}
}
{/literal}{if !$contributionMode}{literal}
showHideCancelInfo($('#contribution_status_id', $form));
$('#contribution_status_id', $form).change(function() {
showHideCancelInfo($('#contribution_status_id', $form));
});
function showHideCancelInfo(obj) {
var cancelInfo_show_ids = [{/literal}{$cancelInfo_show_ids}{literal}];
if (cancelInfo_show_ids.indexOf(obj.val()) > -1) {
$('#cancelInfo', $form).show();
$('#total_amount', $form).attr('readonly', true);
}
else {
$("#cancel_date", $form).val('');
$("#cancel_reason", $form).val('');
$('#cancelInfo', $form).hide();
$("#total_amount", $form).removeAttr('readonly');
}
}
{/literal}{/if}
});
</script>
{/if} {* not delete mode if*}
{/if} {* closing of main custom data if *}
{literal}
<script type="text/javascript">
{/literal}
// load form during form rule.
{if $buildPriceSet}{literal}buildAmount( );{/literal}{/if}
{literal}
// CRM-16451: set financial type of 'Price Set' in back office contribution
// instead of selecting manually
function buildAmount( priceSetId, financialtypeIds ) {
if (!priceSetId) priceSetId = cj("#price_set_id").val( );
var fname = '#priceset';
if (!priceSetId) {
// hide price set fields.
cj(fname).hide( );
// show/hide price set amount and total amount.
cj("#totalAmountORPriceSet").show( );
cj("#totalAmount").show( );
var choose = "{/literal}{ts}Choose price set{/ts}{literal}";
cj("#price_set_id option[value='']").html( choose );
cj('label[for="total_amount"]').text('{/literal}{ts}Total Amount{/ts}{literal}');
cj(".crm-contribution-form-block-financial_type_id").show();
cj("#financial_type_id option[value='']").attr('selected', true);
//we might want to build recur block.
if (cj("#is_recur")) buildRecurBlock( null );
return;
}
//don't allow recurring w/ priceset.
if ( cj( "#is_recur" ) && cj( 'input:radio[name="is_recur"]:checked').val( ) ) {
//reset the values of recur block.
cj("#installments").val('');
cj("#frequency_interval").val('');
cj('input:radio[name="is_recur"]')[0].checked = true;
cj("#recurringPaymentBlock").hide( );
}
var dataUrl = {/literal}"{crmURL h=0 q='snippet=4'}"{literal} + '&priceSetId=' + priceSetId;
var response = cj.ajax({
url: dataUrl,
async: false
}).responseText;
cj( fname ).show( ).html( response ).trigger('crmLoad');
// freeze total amount text field.
cj( "#total_amount").val('');
cj( "#totalAmountORPriceSet" ).hide( );
cj( "#totalAmount").hide( );
var manual = "{/literal}{ts}Manual contribution amount{/ts}{literal}";
cj("#price_set_id option[value='']").html( manual );
cj('label[for="total_amount"]').text('{/literal}{ts}Price Sets{/ts}{literal}');
if (financialtypeIds) {
cj("#financial_type_id option[value="+financialtypeIds[priceSetId]+"]").prop('selected', true);
}
cj(".crm-contribution-form-block-financial_type_id").css("display", "none");
}
function adjustPayment( ) {
cj('#adjust-option-type').show();
cj("#total_amount").removeAttr("READONLY");
cj("#total_amount").css('background-color', '#ffffff');
}
{/literal}{if $processorSupportsFutureStartDate}{literal}
cj ('input:radio[name="is_recur"]').click( function( ) {
showStartDate( );
});
showStartDate( );
function showStartDate( ) {
if (cj( 'input:radio[name="is_recur"]:checked').val( ) == 0 ) {
cj('#start_date').hide( );
}
else {
cj('#start_date').show( );
}
}
{/literal}{/if}{literal}
var thousandMarker = "{/literal}{$config->monetaryThousandSeparator}{literal}";
var separator = "{/literal}{$config->monetaryDecimalPoint}{literal}";
cj('#fee_amount').change( function() {
var totalAmount = cj('#total_amount').val().replace(thousandMarker,'').replace(separator,'.');
var feeAmount = cj('#fee_amount').val().replace(thousandMarker,'').replace(separator,'.');
var netAmount = totalAmount - feeAmount;
if (totalAmount) {
cj('#net_amount').val(CRM.formatMoney(netAmount, true));
}
});
cj("#financial_type_id").on("change",function(){
cj('#total_amount').trigger("change");
})
cj("#currency").on("change",function(){
cj('#total_amount').trigger("change");
})
{/literal}{if $taxRates && $invoicing}{literal}
CRM.$(function($) {
$('#total_amount').on("change",function(event) {
if (event.handled !== true) {
var freezeFinancialType = '{/literal}{$freezeFinancialType}{literal}';
if (!freezeFinancialType) {
var financialType = $('#financial_type_id').val();
var taxRates = '{/literal}{$taxRates}{literal}';
var taxTerm = '{/literal}{$taxTerm}{literal}';
taxRates = JSON.parse(taxRates);
var currencies = '{/literal}{$currencies}{literal}';
currencies = JSON.parse(currencies);
var currencySelect = $('#currency').val();
var currencySymbol = currencies[currencySelect];
var re= /\((.*?)\)/g;
for(m = re.exec(currencySymbol); m; m = re.exec(currencySymbol)){
currencySymbol = m[1];
}
var taxRate = taxRates[financialType];
if (!taxRate) {
taxRate = 0;
cj("#totalTaxAmount").hide( );
} else {
cj("#totalTaxAmount").show( );
}
var totalAmount = $('#total_amount').val();
// replace all thousandMarker and change the separator to a dot
totalAmount = totalAmount.replace(thousandMarker,'').replace(separator,'.');
var totalTaxAmount = '{/literal}{$totalTaxAmount}{literal}';
var taxAmount = (taxRate/100)*totalAmount;
taxAmount = isNaN (taxAmount) ? 0:taxAmount;
var totalTaxAmount = taxAmount + Number(totalAmount);
totalTaxAmount = formatMoney( totalTaxAmount, 2, separator, thousandMarker );
$("#totalTaxAmount" ).html('{/literal}{ts 1=$taxTerm}Amount with %1 :{/ts}{literal} <span id="currencySymbolShow">' + currencySymbol + '</span> '+ totalTaxAmount);
}
event.handled = true;
}
return false;
});
$('#total_amount').trigger("change");
});
{/literal}{/if}{literal}
CRM.$(function($) {
$('#price_set_id').click(function() {
if( $('#price_set_id').val() ) {
$('#totalAmountBlock').hide();
}
else {
$('#totalAmountBlock').show();
}
});
});
function formatMoney (amount, c, d, t){
var n = amount,
c = isNaN(c = Math.abs(c)) ? 2 : c,
d = d == undefined ? "," : d,
t = t == undefined ? "." : t, s = n < 0 ? "-" : "",
i = parseInt(n = Math.abs(+n || 0).toFixed(c)) + "",
j = (j = i.length) > 3 ? j % 3 : 0;
return s + (j ? i.substr(0, j) + t : "") + i.substr(j).replace(/(\d{3})(?=\d)/g, "$1" + t) + (c ? d + Math.abs(n - i).toFixed(c).slice(2) : "");
};
</script>
{/literal}

View file

@ -0,0 +1,122 @@
{*
+--------------------------------------------------------------------+
| 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 $subscriptionType eq 'cancel'}
<?xml version="1.0" encoding="utf-8"?>
<ARBCancelSubscriptionRequest xmlns="AnetApi/xml/v1/schema/AnetApiSchema.xsd">
<merchantAuthentication>
<name>{$apiLogin}</name>
<transactionKey>{$paymentKey}</transactionKey>
</merchantAuthentication>
<subscriptionId>{$subscriptionId}</subscriptionId>
</ARBCancelSubscriptionRequest>
{elseif $subscriptionType eq 'updateBilling'}
<?xml version="1.0" encoding="utf-8"?>
<ARBUpdateSubscriptionRequest xmlns="AnetApi/xml/v1/schema/AnetApiSchema.xsd">
<merchantAuthentication>
<name>{$apiLogin}</name>
<transactionKey>{$paymentKey}</transactionKey>
</merchantAuthentication>
<subscriptionId>{$subscriptionId}</subscriptionId>
<subscription>
<payment>
<creditCard>
<cardNumber>{$cardNumber}</cardNumber>
<expirationDate>{$expirationDate}</expirationDate>
</creditCard>
</payment>
<billTo>
<firstName>{$billingFirstName}</firstName>
<lastName>{$billingLastName}</lastName>
<address>{$billingAddress}</address>
<city>{$billingCity}</city>
<state>{$billingState}</state>
<zip>{$billingZip}</zip>
<country>{$billingCountry}</country>
</billTo>
</subscription>
</ARBUpdateSubscriptionRequest>
{elseif $subscriptionType eq 'update'}
<?xml version="1.0" encoding="utf-8"?>
<ARBUpdateSubscriptionRequest xmlns="AnetApi/xml/v1/schema/AnetApiSchema.xsd">
<merchantAuthentication>
<name>{$apiLogin}</name>
<transactionKey>{$paymentKey}</transactionKey>
</merchantAuthentication>
<subscriptionId>{$subscriptionId}</subscriptionId>
<subscription>
<paymentSchedule>
<totalOccurrences>{$totalOccurrences}</totalOccurrences>
</paymentSchedule>
<amount>{$amount}</amount>
</subscription>
</ARBUpdateSubscriptionRequest>
{else}
<?xml version="1.0" encoding="utf-8"?>
<ARBCreateSubscriptionRequest xmlns="AnetApi/xml/v1/schema/AnetApiSchema.xsd">
<merchantAuthentication>
<name>{$apiLogin}</name>
<transactionKey>{$paymentKey}</transactionKey>
</merchantAuthentication>
<refId>{$refId}</refId>
<subscription>
{if $name}<name>{$name|truncate:50}</name>{/if}
<paymentSchedule>
<interval>
<length>{$intervalLength}</length>
<unit>{$intervalUnit}</unit>
</interval>
<startDate>{$startDate}</startDate>
<totalOccurrences>{$totalOccurrences}</totalOccurrences>
</paymentSchedule>
<amount>{$amount}</amount>
<payment>
<creditCard>
<cardNumber>{$cardNumber}</cardNumber>
<expirationDate>{$expirationDate}</expirationDate>
</creditCard>
</payment>
{if $invoiceNumber}
<order>
<invoiceNumber>{$invoiceNumber}</invoiceNumber>
{if $name}<description>{$name}</description>{/if}
</order>
{/if}
<customer>
<id>{$contactID}</id>
<email>{$email}</email>
</customer>
<billTo>
<firstName>{$billingFirstName}</firstName>
<lastName>{$billingLastName}</lastName>
<address>{$billingAddress}</address>
<city>{$billingCity}</city>
<state>{$billingState}</state>
<zip>{$billingZip}</zip>
<country>{$billingCountry}</country>
</billTo>
</subscription>
</ARBCreateSubscriptionRequest>
{/if}

View file

@ -0,0 +1,284 @@
{*
+--------------------------------------------------------------------+
| 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/Contribute/Form/Contribution/PreviewHeader.tpl"}
{/if}
{include file="CRM/common/TrackingFields.tpl"}
<div class="crm-contribution-page-id-{$contributionPageID} crm-block crm-contribution-confirm-form-block">
<div class="help">
<p>{ts}Please verify the information below carefully. Click <strong>Go Back</strong> if you need to make changes.{/ts}
{if $contributeMode EQ 'notify' and ! $is_pay_later}
{ts 1=$paymentProcessor.name 2=$button}Click the <strong>%2</strong> button to go to %1, where you will select your payment method and complete the contribution.{/ts}
{elseif ! $is_monetary or $amount LE 0.0 or $is_pay_later}
{ts 1=$button}To complete this transaction, click the <strong>%1</strong> button below.{/ts}
{else}
{ts 1=$button}To complete your contribution, click the <strong>%1</strong> button below.{/ts}
{/if}
</p>
</div>
<div id="crm-submit-buttons" class="crm-submit-buttons">
{include file="CRM/common/formButtons.tpl" location="top"}
</div>
{if $is_pay_later}
<div class="bold pay_later_receipt-section">{$pay_later_receipt}</div>
{/if}
{include file="CRM/Contribute/Form/Contribution/MembershipBlock.tpl" context="confirmContribution"}
{if $amount GTE 0 OR $minimum_fee GTE 0 OR ( $priceSetID and $lineItem ) }
<div class="crm-group amount_display-group">
{if !$useForMember}
<div class="header-dark">
{if !$membershipBlock AND $amount OR ( $priceSetID and $lineItem ) }{ts}Contribution Amount{/ts}{else}{ts}Membership Fee{/ts} {/if}
</div>
{/if}
<div class="display-block">
{if !$useForMember}
{if $lineItem and $priceSetID}
{if !$amount}{assign var="amount" value=0}{/if}
{assign var="totalAmount" value=$amount}
{include file="CRM/Price/Page/LineItem.tpl" context="Contribution"}
{elseif $is_separate_payment }
{if $amount AND $minimum_fee}
{$membership_name} {ts}Membership{/ts}: <strong>{$minimum_fee|crmMoney}</strong><br />
{ts}Additional Contribution{/ts}: <strong>{$amount|crmMoney}</strong><br />
<strong> -------------------------------------------</strong><br />
{ts}Total{/ts}: <strong>{$amount+$minimum_fee|crmMoney}</strong><br />
{elseif $amount }
{ts}Amount{/ts}: <strong>{$amount|crmMoney} {if $amount_level } &ndash; {$amount_level} {/if}</strong>
{else}
{$membership_name} {ts}Membership{/ts}: <strong>{$minimum_fee|crmMoney}</strong>
{/if}
{else}
{if $totalTaxAmount }
{ts 1=$taxTerm}Total %1 Amount{/ts}: <strong>{$totalTaxAmount|crmMoney} </strong><br />
{/if}
{if $amount}
{if $installments}{ts}Installment Amount{/ts}{else}{ts}Total Amount{/ts}{/if}: <strong>{$amount|crmMoney}{if $amount_level } &ndash; {$amount_level}{/if}</strong>
{else}
{$membership_name} {ts}Membership{/ts}: <strong>{$minimum_fee|crmMoney}</strong>
{/if}
{/if}
{/if}
{if $is_recur}
{if !empty($auto_renew)} {* Auto-renew membership confirmation *}
{crmRegion name="contribution-confirm-recur-membership"}
<br />
<strong>
{if $autoRenewOption == 1}
{ts 1=$frequency_interval 2=$frequency_unit}I want this membership to be renewed automatically every %1 %2(s).{/ts}
{elseif $autoRenewOption == 2}
{ts 1=$frequency_interval 2=$frequency_unit}This membership will be renewed automatically every %1 %2(s).{/ts}
{/if}
</strong></p>
<div class="description crm-auto-renew-cancel-info">({ts}Your initial membership fee will be processed once you complete the confirmation step. You will be able to cancel the auto-renewal option by visiting the web page link that will be included in your receipt.{/ts})</div>
{/crmRegion}
{else}
{crmRegion name="contribution-confirm-recur"}
{if $installments}
{if $frequency_interval > 1}
<p><strong>{ts 1=$frequency_interval 2=$frequency_unit 3=$installments}I want to contribute this amount every %1 %2s for %3 installments.{/ts}</strong></p>
{else}
<p><strong>{ts 1=$frequency_unit 2=$installments}I want to contribute this amount every %1 for %2 installments.{/ts}</strong></p>
{/if}
{else}
{if $frequency_interval > 1}
<p><strong>{ts 1=$frequency_interval 2=$frequency_unit}I want to contribute this amount every %1 %2s.{/ts}</strong></p>
{else}
<p><strong>{ts 1=$frequency_unit }I want to contribute this amount every %1.{/ts}</strong></p>
{/if}
{/if}
<p>{ts}Your initial contribution will be processed once you complete the confirmation step. You will be able to cancel the recurring contribution by visiting the web page link that will be included in your receipt.{/ts}</p>
{/crmRegion}
{/if}
{/if}
{if $is_pledge }
{if $pledge_frequency_interval GT 1}
<p><strong>{ts 1=$pledge_frequency_interval 2=$pledge_frequency_unit 3=$pledge_installments}I pledge to contribute this amount every %1 %2s for %3 installments.{/ts}</strong></p>
{else}
<p><strong>{ts 1=$pledge_frequency_interval 2=$pledge_frequency_unit 3=$pledge_installments}I pledge to contribute this amount every %2 for %3 installments.{/ts}</strong></p>
{/if}
{if $is_pay_later}
<p>{ts 1=$receiptFromEmail 2=$button}Click &quot;%2&quot; below to register your pledge. You will be able to modify or cancel future pledge payments at any time by logging in to your account or contacting us at %1.{/ts}</p>
{else}
<p>{ts 1=$receiptFromEmail 2=$button}Your initial pledge payment will be processed when you click &quot;%2&quot; below. You will be able to modify or cancel future pledge payments at any time by logging in to your account or contacting us at %1.{/ts}</p>
{/if}
{/if}
</div>
</div>
{/if}
{if $onbehalfProfile|@count}
<div class="crm-group onBehalf_display-group label-left crm-profile-view">
{include file="CRM/UF/Form/Block.tpl" fields=$onbehalfProfile prefix='onbehalf'}
</div>
{/if}
{if $honoreeProfileFields|@count}
<div class="crm-group honor_block-group">
<div class="header-dark">
{$soft_credit_type}
</div>
<div class="display-block">
<div class="label-left crm-section honoree_profile-section">
<strong>{$honorName}</strong></br>
{include file="CRM/UF/Form/Block.tpl" fields=$honoreeProfileFields mode=8 prefix='honor'}
</div>
</div>
</div>
{/if}
{if $customPre}
<fieldset class="label-left crm-profile-view">
{include file="CRM/UF/Form/Block.tpl" fields=$customPre}
</fieldset>
{/if}
{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 ( $contributeMode ne 'notify' and (!$is_pay_later or $isBillingAddressRequiredForPayLater) and $is_monetary and ( $amount GT 0 OR $minimum_fee GT 0 ) ) or $email }
{if $contributeMode ne 'notify' and (!$is_pay_later or $isBillingAddressRequiredForPayLater) and $is_monetary and ( $amount GT 0 OR $minimum_fee GT 0 ) }
{if $billingName or $address}
<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}
{if $email}
<div class="crm-group contributor_email-group">
<div class="header-dark">
{ts}Your Email{/ts}
</div>
<div class="crm-section no-label contributor_email-section">
<div class="content">{$email}</div>
<div class="clear"></div>
</div>
</div>
{/if}
{/if}
{* Show credit or debit card section for 'direct' mode, except for PayPal Express (detected because credit card number is empty) *}
{if $contributeMode eq 'direct' and ! $is_pay_later and $is_monetary and ( $amount GT 0 OR $minimum_fee GT 0 )}
{crmRegion name="contribution-confirm-billing-block"}
{if ($credit_card_number or $bank_account_number)}
<div class="crm-group credit_card-group">
{if $paymentFieldsetLabel}
<div class="header-dark">
{$paymentFieldsetLabel}
</div>
{/if}
{if $paymentProcessor.payment_type == 2}
<div class="display-block">
{ts}Account Holder{/ts}: {$account_holder}<br />
{ts}Bank Account Number{/ts}: {$bank_account_number}<br />
{ts}Bank Identification Number{/ts}: {$bank_identification_number}<br />
{ts}Bank Name{/ts}: {$bank_name}<br />
</div>
{if $contributeMode eq 'direct'}
<div class="crm-group debit_agreement-group">
<div class="header-dark">
{ts}Agreement{/ts}
</div>
<div class="display-block">
{ts}Your account data will be used to charge your bank account via direct debit. While submitting this form you agree to the charging of your bank account via direct debit.{/ts}
</div>
</div>
{/if}
{else}
<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">{if $credit_card_exp_date}{ts}Expires{/ts}: {$credit_card_exp_date|truncate:7:''|crmDate}{/if}</div>
<div class="clear"></div>
</div>
{/if}
</div>
{/if}
{/crmRegion}
{/if}
{include file="CRM/Contribute/Form/Contribution/PremiumBlock.tpl" context="confirmContribution"}
{if $customPost}
<fieldset class="label-left crm-profile-view">
{include file="CRM/UF/Form/Block.tpl" fields=$customPost}
</fieldset>
{/if}
{if $contributeMode NEQ 'notify' and $is_monetary and ( $amount GT 0 OR $minimum_fee GT 0 ) } {* In 'notify mode, contributor is taken to processor payment forms next *}
<div class="messages status continue_instructions-section">
<p>
{if $is_pay_later OR $amount LE 0.0}
{ts 1=$button}Your transaction will not be completed until you click the <strong>%1</strong> button. Please click the button one time only.{/ts}
{else}
{ts 1=$button}Your contribution will not be completed until you click the <strong>%1</strong> button. Please click the button one time only.{/ts}
{/if}
</p>
</div>
{/if}
<div id="crm-submit-buttons" class="crm-submit-buttons">
{include file="CRM/common/formButtons.tpl" location="bottom"}
</div>
</div>

View file

@ -0,0 +1,416 @@
{*
+--------------------------------------------------------------------+
| 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: On-behalf profile *}
{if $snippet and !empty($isOnBehalfCallback) and !$ccid}
<div class="crm-public-form-item crm-section">
{include file="CRM/Contribute/Form/Contribution/OnBehalfOf.tpl" context="front-end"}
</div>
{else}
{literal}
<script type="text/javascript">
// Putting these functions directly in template so they are available for standalone forms
function useAmountOther() {
var priceset = {/literal}{if $contriPriceset}'{$contriPriceset}'{else}0{/if}{literal};
for( i=0; i < document.Main.elements.length; i++ ) {
element = document.Main.elements[i];
if ( element.type == 'radio' && element.name == priceset ) {
if (element.value == '0' ) {
element.click();
}
else {
element.checked = false;
}
}
}
}
function clearAmountOther() {
var priceset = {/literal}{if $priceset}'#{$priceset}'{else}0{/if}{literal}
if( priceset ){
cj(priceset).val('');
cj(priceset).blur();
}
if (document.Main.amount_other == null) return; // other_amt field not present; do nothing
document.Main.amount_other.value = "";
}
</script>
{/literal}
{if $action & 1024}
{include file="CRM/Contribute/Form/Contribution/PreviewHeader.tpl"}
{/if}
{include file="CRM/common/TrackingFields.tpl"}
<div class="crm-contribution-page-id-{$contributionPageID} crm-block crm-contribution-main-form-block">
{if $contact_id && !$ccid}
<div class="messages status no-popup crm-not-you-message">
{ts 1=$display_name}Welcome %1{/ts}. (<a href="{crmURL p='civicrm/contribute/transact' q="cid=0&reset=1&id=`$contributionPageID`"}" title="{ts}Click here to do this for a different person.{/ts}">{ts 1=$display_name}Not %1, or want to do this for a different person{/ts}</a>?)
</div>
{/if}
<div id="intro_text" class="crm-public-form-item crm-section intro_text-section">
{$intro_text}
</div>
{include file="CRM/common/cidzero.tpl"}
{if $islifetime or $ispricelifetime }
<div class="help">{ts}You have a current Lifetime Membership which does not need to be renewed.{/ts}</div>
{/if}
{if !empty($useForMember) && !$ccid}
<div class="crm-public-form-item crm-section">
{include file="CRM/Contribute/Form/Contribution/MembershipBlock.tpl" context="makeContribution"}
</div>
{elseif !empty($ccid)}
{if $lineItem && $priceSetID && !$is_quick_config}
<div class="header-dark">
{ts}Contribution Information{/ts}
</div>
{assign var="totalAmount" value=$pendingAmount}
{include file="CRM/Price/Page/LineItem.tpl" context="Contribution"}
{else}
<div class="display-block">
<td class="label">{$form.total_amount.label}</td>
<td><span>{$form.total_amount.html|crmMoney}&nbsp;&nbsp;{if $taxAmount}(includes {$taxTerm} of {$taxAmount|crmMoney}){/if}</span></td>
</div>
{/if}
{else}
<div id="priceset-div">
{include file="CRM/Price/Form/PriceSet.tpl" extends="Contribution"}
</div>
{/if}
{if !$ccid}
{crmRegion name='contribution-main-pledge-block'}
{if $pledgeBlock}
{if $is_pledge_payment}
<div class="crm-public-form-item crm-section {$form.pledge_amount.name}-section">
<div class="label">{$form.pledge_amount.label}&nbsp;<span class="crm-marker">*</span></div>
<div class="content">{$form.pledge_amount.html}</div>
<div class="clear"></div>
</div>
{else}
<div class="crm-public-form-item crm-section {$form.is_pledge.name}-section">
<div class="label">&nbsp;</div>
<div class="content">
{$form.is_pledge.html}&nbsp;
{if $is_pledge_interval}
{$form.pledge_frequency_interval.html}&nbsp;
{/if}
{$form.pledge_frequency_unit.html}<span id="pledge_installments_num">&nbsp;{ts}for{/ts}&nbsp;{$form.pledge_installments.html}&nbsp;{ts}installments.{/ts}</span>
</div>
<div class="clear"></div>
{if $start_date_editable}
{if $is_date}
<div class="label">{$form.start_date.label}</div><div class="content">{include file="CRM/common/jcalendar.tpl" elementName=start_date}</div>
{else}
<div class="label">{$form.start_date.label}</div><div class="content">{$form.start_date.html}</div>
{/if}
{else}
<div class="label">{$form.start_date.label}</div>
<div class="content">{$start_date_display|date_format}</div>
{/if}
<div class="clear"></div>
</div>
{/if}
{/if}
{/crmRegion}
{if $form.is_recur}
<div class="crm-public-form-item crm-section {$form.is_recur.name}-section">
<div class="label">&nbsp;</div>
<div class="content">
{$form.is_recur.html} {$form.is_recur.label} {ts}every{/ts}
{if $is_recur_interval}
{$form.frequency_interval.html}
{/if}
{if $one_frequency_unit}
{$frequency_unit}
{else}
{$form.frequency_unit.html}
{/if}
{if $is_recur_installments}
<span id="recur_installments_num">
{ts}for{/ts} {$form.installments.html} {$form.installments.label}
</span>
{/if}
<div id="recurHelp" class="description">
{$recurringHelpText}
</div>
</div>
<div class="clear"></div>
</div>
{/if}
{if $pcpSupporterText}
<div class="crm-public-form-item crm-section pcpSupporterText-section">
<div class="label">&nbsp;</div>
<div class="content">{$pcpSupporterText}</div>
<div class="clear"></div>
</div>
{/if}
{if $showMainEmail}
{assign var=n value=email-$bltID}
<div class="crm-public-form-item crm-section {$form.$n.name}-section">
<div class="label">{$form.$n.label}</div>
<div class="content">
{$form.$n.html}
</div>
<div class="clear"></div>
</div>
{/if}
<div id='onBehalfOfOrg' class="crm-public-form-item crm-section">
{include file="CRM/Contribute/Form/Contribution/OnBehalfOf.tpl"}
</div>
{* User account registration option. Displays if enabled for one of the profiles on this page. *}
<div class="crm-public-form-item crm-section cms_user-section">
{include file="CRM/common/CMSUser.tpl"}
</div>
<div class="crm-public-form-item crm-section premium_block-section">
{include file="CRM/Contribute/Form/Contribution/PremiumBlock.tpl" context="makeContribution"}
</div>
{if $honoreeProfileFields|@count}
<fieldset class="crm-public-form-item crm-group honor_block-group">
{crmRegion name="contribution-soft-credit-block"}
<legend>{$honor_block_title}</legend>
<div class="crm-public-form-item crm-section honor_block_text-section">
{$honor_block_text}
</div>
{if $form.soft_credit_type_id.html}
<div class="crm-public-form-item crm-section {$form.soft_credit_type_id.name}-section">
<div class="content" >
{$form.soft_credit_type_id.html}
<div class="description">{ts}Select an option to reveal honoree information fields.{/ts}</div>
</div>
</div>
{/if}
{/crmRegion}
<div id="honorType" class="honoree-name-email-section">
{include file="CRM/UF/Form/Block.tpl" fields=$honoreeProfileFields mode=8 prefix='honor'}
</div>
</fieldset>
{/if}
<div class="crm-public-form-item crm-group custom_pre_profile-group">
{include file="CRM/UF/Form/Block.tpl" fields=$customPre}
</div>
{if $isHonor}
<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} &nbsp;
{$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}
{* end of ccid loop *}
{/if}
{if $form.payment_processor_id.label}
{* PP selection only works with JS enabled, so we hide it initially *}
<fieldset class="crm-public-form-item crm-group payment_options-group" style="display:none;">
<legend>{ts}Payment Options{/ts}</legend>
<div class="crm-public-form-item 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 $is_pay_later}
<fieldset class="crm-public-form-item crm-group pay_later-group">
<legend>{ts}Payment Options{/ts}</legend>
<div class="crm-public-form-item crm-section pay_later_receipt-section">
<div class="label">&nbsp;</div>
<div class="content">
[x] {$pay_later_text}
</div>
<div class="clear"></div>
</div>
</fieldset>
{/if}
<div id="billing-payment-block">
{include file="CRM/Financial/Form/Payment.tpl" snippet=4}
</div>
{include file="CRM/common/paymentBlock.tpl"}
<div class="crm-public-form-item crm-group custom_post_profile-group">
{include file="CRM/UF/Form/Block.tpl" fields=$customPost}
</div>
{if $is_monetary and $form.bank_account_number}
<div id="payment_notice">
<fieldset class="crm-public-form-item crm-group payment_notice-group">
<legend>{ts}Agreement{/ts}</legend>
{ts}Your account data will be used to charge your bank account via direct debit. While submitting this form you agree to the charging of your bank account via direct debit.{/ts}
</fieldset>
</div>
{/if}
{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 $footer_text}
<div id="footer_text" class="crm-public-form-item crm-section contribution_footer_text-section">
<p>{$footer_text}</p>
</div>
{/if}
</div>
<script type="text/javascript">
{if $isHonor}
pcpAnonymous();
{/if}
{literal}
cj('input[name="soft_credit_type_id"]').on('change', function() {
enableHonorType();
});
function enableHonorType( ) {
var selectedValue = cj('input[name="soft_credit_type_id"]:checked');
if ( selectedValue.val() > 0) {
cj('#honorType').show();
}
else {
cj('#honorType').hide();
}
}
cj('input[id="is_recur"]').on('change', function() {
toggleRecur();
});
function toggleRecur( ) {
var isRecur = cj('input[id="is_recur"]:checked');
var allowAutoRenew = {/literal}'{$allowAutoRenewMembership}'{literal};
var quickConfig = {/literal}{$quickConfig}{literal};
if ( allowAutoRenew && cj("#auto_renew") && quickConfig) {
showHideAutoRenew( null );
}
if (isRecur.val() > 0) {
cj('#recurHelp').show();
cj('#amount_sum_label').text('{/literal}{ts escape='js'}Regular amount{/ts}{literal}');
}
else {
cj('#recurHelp').hide();
cj('#amount_sum_label').text('{/literal}{ts escape='js'}Total Amount{/ts}{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').hide();
cj('#nameID').hide();
cj('#personalNoteID').hide();
}
else {
if (document.getElementsByName("pcp_is_anonymous")[0].checked) {
cj('#nameID').show();
cj('#nickID').show();
cj('#personalNoteID').show();
}
else {
cj('#nameID').show();
cj('#nickID').hide();
cj('#personalNoteID').hide();
}
}
}
CRM.$(function($) {
enableHonorType();
toggleRecur();
skipPaymentMethod();
});
CRM.$(function($) {
// highlight price sets
function updatePriceSetHighlight() {
$('#priceset .price-set-row span').removeClass('highlight');
$('#priceset .price-set-row input:checked').parent().addClass('highlight');
}
$('#priceset input[type="radio"]').change(updatePriceSetHighlight);
updatePriceSetHighlight();
// Update pledge contribution amount when pledge checkboxes change
$("input[name^='pledge_amount']").on('change', function() {
var total = 0;
$("input[name^='pledge_amount']:checked").each(function() {
total += Number($(this).attr('amount'));
});
$("input[name^='price_']").val(total.toFixed(2));
});
});
{/literal}
</script>
{/if}
{* jQuery validate *}
{* disabled because more work needs to be done to conditionally require credit card fields *}
{*include file="CRM/Form/validate.tpl"*}

View file

@ -0,0 +1,302 @@
{*
+--------------------------------------------------------------------+
| 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 !empty($useForMember) AND !$is_quick_config}
<div id="membership" class="crm-group membership-group">
{if $context EQ "makeContribution"}
<div id="priceset">
<fieldset>
{if $renewal_mode}
{if $membershipBlock.renewal_title}
<legend>{$membershipBlock.renewal_title}</legend>
{/if}
{if $membershipBlock.renewal_text}
<div id="membership-intro" class="crm-section membership_renewal_intro-section">
{$membershipBlock.renewal_text}
</div>
{/if}
{else}
{if $membershipBlock.new_title}
<legend>{$membershipBlock.new_title}</legend>
{/if}
{if $membershipBlock.new_text}
<div id="membership-intro" class="crm-section membership_new_intro-section">
{$membershipBlock.new_text}
</div>
{/if}
{/if}
{if !empty($membershipTypes)}
{foreach from=$membershipTypes item=row}
{if array_key_exists( 'current_membership', $row )}
<div id='help'>
{* Lifetime memberships have no end-date so current_membership array key exists but is NULL *}
{if $row.current_membership}
{if $row.current_membership|date_format:"%Y%m%d" LT $smarty.now|date_format:"%Y%m%d"}
{ts 1=$row.current_membership|crmDate 2=$row.name}Your <strong>%2</strong> membership expired on %1.{/ts}<br />
{else}
{ts 1=$row.current_membership|crmDate 2=$row.name}Your <strong>%2</strong> membership expires on %1.{/ts}<br />
{/if}
{else}
{ts 1=$row.name}Your <strong>%1</strong> membership does not expire (you do not need to renew that membership).{/ts}<br />
{/if}
</div>
{/if}
{/foreach}
{/if}
{include file="CRM/Price/Form/PriceSet.tpl" extends="Membership"}
</fieldset>
</div>
{elseif $lineItem and $priceSetID AND !$is_quick_config}
{assign var="totalAmount" value=$amount}
<div class="header-dark">
{ts}Membership Fee{/ts}
</div>
<div class="display-block">
{include file="CRM/Price/Page/LineItem.tpl" context="Membership"}
</div>
{/if}
</div>
{literal}
<script type="text/javascript">
CRM.$(function($) {
//if price set is set we use below below code to show for showing auto renew
var autoRenewOption = {/literal}'{$autoRenewOption}'{literal};
var autoRenew = $("#auto_renew_section");
var autoRenewCheckbox = $("#auto_renew");
var forceRenew = $("#force_renew");
autoRenew.hide();
forceRenew.hide();
if ( autoRenewOption == 1 ) {
autoRenew.show();
} else if ( autoRenewOption == 2 ) {
autoRenewCheckbox.prop('checked', true );
autoRenewCheckbox.attr( 'readonly', true );
autoRenew.hide();
forceRenew.show();
}
});
</script>
{/literal}
{elseif $membershipBlock AND !$is_quick_config}
<div id="membership" class="crm-group membership-group">
{if $context EQ "makeContribution"}
<fieldset>
{if $renewal_mode }
{if $membershipBlock.renewal_title}
<legend>{$membershipBlock.renewal_title}</legend>
{/if}
{if $membershipBlock.renewal_text}
<div id="membership-intro" class="crm-section membership_renewal_intro-section">
<p>{$membershipBlock.renewal_text}</p>
</div>
{/if}
{else}
{if $membershipBlock.new_title}
<legend>{$membershipBlock.new_title}</legend>
{/if}
{if $membershipBlock.new_text}
<div id="membership-intro" class="crm-section membership_new_intro-section">
<p>{$membershipBlock.new_text}</p>
</div>
{/if}
{/if}
{/if}
{if $context neq "makeContribution" }
<div class="header-dark">
{if $renewal_mode }
{if $membershipBlock.renewal_title}
{$membershipBlock.renewal_title}
{else}
{ts}Select a Membership Renewal Level{/ts}
{/if}
{else}
{if $membershipBlock.new_title}
{$membershipBlock.new_title}
{else}
{ts}Select a Membership Level{/ts}
{/if}
{/if}
</div>
{/if}
{if $context EQ "makeContribution"}
</fieldset>
{/if}
</div>
{/if}{* membership block end here *}
{if $membershipBlock AND $is_quick_config}
{if $context neq "makeContribution" }
<div class="header-dark">
{if $renewal_mode }
{if $membershipBlock.renewal_title}
{$membershipBlock.renewal_title}
{else}
{ts}Select a Membership Renewal Level{/ts}
{/if}
{else}
{if $membershipBlock.new_title}
{$membershipBlock.new_title}
{else}
{ts}Select a Membership Level{/ts}
{/if}
{/if}
</div>
{/if}
{strip}
<table id="membership-listings">
{foreach from=$membershipTypes item=row}
<tr {if $context EQ "makeContribution"}class="odd-row" {/if}valign="top">
{if $showRadio }
{assign var="pid" value=$row.id}
<td style="width: 1em;">{$form.selectMembership.$pid.html}</td>
{else}
<td>&nbsp;</td>
{/if}
<td style="width: auto;">
<span class="bold">{$row.name} &nbsp;
{if ($membershipBlock.display_min_fee AND $context EQ "makeContribution") AND $row.minimum_fee GT 0 }
{if $is_separate_payment OR ! $form.amount.label}
&ndash; {$row.minimum_fee|crmMoney}
{else}
{ts 1=$row.minimum_fee|crmMoney}(contribute at least %1 to be eligible for this membership){/ts}
{/if}
{/if}
</span><br />
{$row.description} &nbsp;
</td>
<td style="width: auto;">
{* Check if there is an existing membership of this type (current_membership NOT empty) and if the end-date is prior to today. *}
{if array_key_exists( 'current_membership', $row ) AND $context EQ "makeContribution" }
{if $row.current_membership}
{if $row.current_membership|date_format:"%Y%m%d" LT $smarty.now|date_format:"%Y%m%d"}
<br /><em>{ts 1=$row.current_membership|crmDate 2=$row.name}Your <strong>%2</strong> membership expired on %1.{/ts}</em>
{else}
<br /><em>{ts 1=$row.current_membership|crmDate 2=$row.name}Your <strong>%2</strong> membership expires on %1.{/ts}</em>
{/if}
{else}
{ts 1=$row.name}Your <strong>%1</strong> membership does not expire (you do not need to renew that membership).{/ts}<br />
{/if}
{else}
&nbsp;
{/if}
</td>
</tr>
{/foreach}
{if isset($form.auto_renew) }
<tr id="allow_auto_renew">
<td style="width: auto;">{$form.auto_renew.html}</td>
<td style="width: auto;">
{$form.auto_renew.label}
</td>
</tr>
{/if}
{if $showRadio}
{if $showRadioNoThanks } {* Provide no-thanks option when Membership signup is not required - per membership block configuration. *}
<tr class="odd-row">
<td>{$form.selectMembership.no_thanks.html}</td>
<td colspan="2"><strong>{ts}No thank you{/ts}</strong></td>
</tr>
{/if}
{/if}
</table>
{/strip}
{/if}
{* Include JS for auto renew membership if priceset is Quick Config*}
{if $membershipBlock AND $quickConfig}
{literal}
<script type="text/javascript">
CRM.$(function($) {
showHideAutoRenew( null );
});
function showHideAutoRenew( memTypeId )
{
var priceSetName = "price_"+{/literal}'{$membershipFieldID}'{literal};
var considerUserInput = {/literal}'{$takeUserSubmittedAutoRenew}'{literal};
if ( memTypeId ) considerUserInput = false;
if ( !memTypeId ) memTypeId = cj('input:radio[name='+priceSetName+']:checked').attr('membership-type');
//does this page has only one membership type.
var singleMembership = {/literal}'{$singleMembership}'{literal};
if ( !memTypeId && singleMembership ) memTypeId = cj("input:radio[name="+priceSetName+"]").attr('membership-type');
var renewOptions = {/literal}{$autoRenewMembershipTypeOptions}{literal};
var currentOption = eval( "renewOptions." + 'autoRenewMembershipType_' + memTypeId );
var autoRenew = cj('#auto_renew_section');
var autoRenewC = cj('input[name="auto_renew"]');
var forceRenew = cj("#force_renew");
var readOnly = false;
var isChecked = false;
if ( currentOption == 0 ) {
isChecked = false;
forceRenew.hide();
autoRenew.hide();
}
if ( currentOption == 1 ) {
forceRenew.hide();
autoRenew.show();
//uncomment me, if we'd like
//to load auto_renew checked.
//isChecked = true;
} else if ( currentOption == 2 || currentOption == 4) {
autoRenew.hide();
forceRenew.show();
isChecked = readOnly = true;
}
if ( considerUserInput ) isChecked = autoRenew.prop('checked' );
//its a normal recur contribution.
if ( cj( "is_recur" ) &&
( cj( 'input:radio[name="is_recur"]:checked').val() == 1 ) ) {
isChecked = false;
autoRenew.hide();
forceRenew.hide();
}
autoRenewC.attr( 'readonly', readOnly );
autoRenewC.prop('checked', isChecked );
}
{/literal}{if $allowAutoRenewMembership}{literal}
CRM.$(function($) {
//keep read only always checked.
cj( "#auto_renew" ).click(function( ) {
if ( cj(this).attr( 'readonly' ) ) {
cj(this).prop('checked', true );
}
});
});
{/literal}{/if}{literal}
</script>
{/literal}
{/if}

View file

@ -0,0 +1,207 @@
{*
+--------------------------------------------------------------------+
| CiviCRM version 4.7 |
+--------------------------------------------------------------------+
| Copyright CiviCRM LLC (c) 2004-2017 |
+--------------------------------------------------------------------+
| This file is a part of CiviCRM. |
| |
| CiviCRM is free software; you can copy, modify, and distribute it |
| under the terms of the GNU Affero General Public License |
| Version 3, 19 November 2007 and the CiviCRM Licensing Exception. |
| |
| CiviCRM is distributed in the hope that it will be useful, but |
| WITHOUT ANY WARRANTY; without even the implied warranty of |
| MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
| See the GNU Affero General Public License for more details. |
| |
| You should have received a copy of the GNU Affero General Public |
| License and the CiviCRM Licensing Exception along |
| with this program; if not, contact CiviCRM LLC |
| at info[AT]civicrm[DOT]org. If you have questions about the |
| GNU Affero General Public License or the licensing of CiviCRM, |
| see the CiviCRM license FAQ at http://civicrm.org/licensing |
+--------------------------------------------------------------------+
*}
{**
* This file provides the HTML for the on-behalf-of form.
* Also used for related contact edit form.
* FIXME: This is way more complex than it needs to be
* FIXME: Why are we not just using the dynamic form tpl to display this profile?
*}
{if $form.is_for_organization}
<div class="crm-public-form-item crm-section {$form.is_for_organization.name}-section">
<div class="label">&nbsp;</div>
<div class="content">
{$form.is_for_organization.html}&nbsp;{$form.is_for_organization.label}
</div>
<div class="clear"></div>
</div>
{/if}
<div class="crm-public-form-item" id="on-behalf-block">
{crmRegion name="onbehalf-block"}
{if $onBehalfOfFields|@count}
<fieldset>
<legend>{$fieldSetTitle}</legend>
{if $form.org_option}
<div id='orgOptions' class="section crm-public-form-item crm-section">
<div class="content">
{$form.org_option.html}
</div>
</div>
{/if}
{include file="CRM/UF/Form/Block.tpl" fields=$onBehalfOfFields mode=8 prefix='onbehalf'}
</fieldset>
{/if}
{/crmRegion}
</div>
{literal}
<script type="text/javascript">
CRM.$(function($) {
var orgOption = $("input:radio[name=org_option]:checked").attr('id');
var onBehalfRequired = {/literal}'$onBehalfRequired'{literal};
var onbehalfof_id = $('#onbehalfof_id');
var is_for_organization = $('#is_for_organization');
selectCreateOrg(orgOption, false);
if (is_for_organization.length) {
$('#on-behalf-block').toggle(is_for_organization.is(':checked'));
}
is_for_organization.on('change', function(){
$('#on-behalf-block').toggle($(this).is(':checked'));
});
$("input:radio[name='org_option']").click( function( ) {
var orgOption = $(this).attr('id');
selectCreateOrg(orgOption, true);
});
onbehalfof_id.change(function() {
setLocationDetails($(this).val());
}).change();
if (onbehalfof_id.length) {
setLocationDetails(onbehalfof_id.val());
}
function resetValues() {
// Don't trip chain-select when clearing values
$('.crm-chain-select-control', "#select_org div").select2('val', '');
$('input[type=text], select, textarea', "#select_org div").not('.crm-chain-select-control, #onbehalfof_id').val('').change();
$('input[type=radio], input[type=checkbox]', "#select_org div").prop('checked', false).change();
$('#on-behalf-block input').not('input[type=checkbox], input[type=radio], #onbehalfof_id').val('');
// clear checkboxes and radio
$('#on-behalf-block')
.find('input[type=checkbox], input[type=radio]')
.not('input[name=org_option]')
.attr('checked', false);
}
function selectCreateOrg( orgOption, reset ) {
if (orgOption == 'CIVICRM_QFID_0_org_option') {
$("#onbehalfof_id").show().change();
$("input#onbehalf_organization_name").hide();
}
else if (orgOption == 'CIVICRM_QFID_1_org_option') {
$("input#onbehalf_organization_name").show();
$("#onbehalfof_id").hide();
reset = true;
}
if ( reset ) {
resetValues();
}
}
function setLocationDetails(contactID , reset) {
resetValues();
var locationUrl = {/literal}'{$locDataURL}'{literal} + contactID;
var submittedOnBehalfInfo = {/literal}'{$submittedOnBehalfInfo}'{literal};
var submittedCID = {/literal}"{$submittedOnBehalf}"{literal};
if (submittedOnBehalfInfo) {
submittedOnBehalfInfo = $.parseJSON(submittedOnBehalfInfo);
if (submittedCID == contactID) {
$.each(submittedOnBehalfInfo, function(key, value) {
//handle checkboxes
if (typeof value === 'object') {
$.each(value, function(k, v) {
$('#onbehalf_' + key + '_' + k).prop('checked', v);
});
}
else if ($('#onbehalf_' + key).length) {
$('#onbehalf_' + key ).val(value);
}
//radio buttons
else if ($("input[name='onbehalf[" + key + "]']").length) {
$("input[name='onbehalf[" + key + "]']").val([value]);
}
});
return;
}
}
$.ajax({
url : locationUrl,
dataType : "json",
timeout : 5000, //Time in milliseconds
success : function(data, status) {
for (var ele in data) {
if ($("#"+ ele).hasClass('crm-chain-select-target')) {
$("#"+ ele).data('newVal', data[ele].value).off('.autofill').on('crmOptionsUpdated.autofill', function() {
$(this).off('.autofill').val($(this).data('newVal')).change();
});
}
else if ($('#' + ele).data('select2')) {
$('#' + ele).select2('val', data[ele].value);
}
if (data[ele].type == 'Radio') {
if (data[ele].value) {
var fldName = ele.replace('onbehalf_', '');
$("input[name='onbehalf["+ fldName +"]']").filter("[value='" + data[ele].value + "']").prop('checked', true);
}
}
else if (data[ele].type == 'CheckBox') {
for (var selectedOption in data[ele].value) {
var fldName = ele.replace('onbehalf_', '');
$("input[name='onbehalf["+ fldName+"]["+ selectedOption +"]']").prop('checked','checked');
}
}
else if (data[ele].type == 'AdvMulti-Select') {
var customFld = ele.replace('onbehalf_', '');
// remove empty value if any
$('#onbehalf\\['+ customFld +'\\]-f option[value=""]').remove();
$('#onbehalf\\['+ customFld +'\\]-t option[value=""]').remove();
for (var selectedOption in data[ele].value) {
// remove selected values from left and selected values to right
$('#onbehalf\\['+ customFld +'\\]-f option[value="' + selectedOption + '"]').remove()
.appendTo('#onbehalf\\['+ customFld +'\\]-t');
$('#onbehalf_'+ customFld).val(selectedOption);
}
}
else {
// do not set defaults to file type fields
if ($('#' + ele).attr('type') != 'file') {
$('#' + ele ).val(data[ele].value).change();
}
}
}
},
error : function(XMLHttpRequest, textStatus, errorThrown) {
CRM.console('error', "HTTP error status: ", textStatus);
}
});
}
});
</script>
{/literal}

View file

@ -0,0 +1,368 @@
{*
+--------------------------------------------------------------------+
| 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 $products}
<div id="premiums" class="premiums-group">
{if $context EQ "makeContribution"}
<fieldset class="crm-group premiums_select-group">
{if $premiumBlock.premiums_intro_title}
<legend>{$premiumBlock.premiums_intro_title}</legend>
{/if}
{if $premiumBlock.premiums_intro_text}
<div id="premiums-intro" class="crm-section premiums_intro-section">
{$premiumBlock.premiums_intro_text}
</div>
{/if}
{/if}
{if $context EQ "confirmContribution" OR $context EQ "thankContribution"}
<div class="crm-group premium_display-group">
<div class="header-dark">
{if $premiumBlock.premiums_intro_title}
{$premiumBlock.premiums_intro_title}
{else}
{ts}Your Premium Selection{/ts}
{/if}
</div>
{/if}
{if $preview}
{assign var="showSelectOptions" value="1"}
{/if}
{strip}
<div id="premiums-listings">
{if $showPremium AND !$preview AND $premiumBlock.premiums_nothankyou_position EQ 1}
<div class="premium premium-no_thanks" id="premium_id-no_thanks" min_contribution="0">
<div class="premium-short">
<input type="checkbox" disabled="disabled" /> {$premiumBlock.premiums_nothankyou_label}
</div>
<div class="premium-full">
<input type="checkbox" checked="checked" disabled="disabled" /> {$premiumBlock.premiums_nothankyou_label}
</div>
</div>
{/if}
{foreach from=$products item=row}
<div class="premium {if $showPremium}premium-selectable{/if}" id="premium_id-{$row.id}" min_contribution="{$row.min_contribution}">
<div class="premium-short">
{if $row.thumbnail}<div class="premium-short-thumbnail"><img src="{$row.thumbnail}" alt="{$row.name|escape}" /></div>{/if}
<div class="premium-short-content">{$row.name}</div>
<div style="clear:both"></div>
</div>
<div class="premium-full">
<div class="premium-full-image">{if $row.image}<img src="{$row.image}" alt="{$row.name|escape}" />{/if}</div>
<div class="premium-full-content">
<div class="premium-full-title">{$row.name}</div>
<div class="premium-full-disabled">
{ts 1=$row.min_contribution|crmMoney}You must contribute at least %1 to get this item{/ts}<br/>
<input type="button" value="{ts 1=$row.min_contribution|crmMoney}Contribute %1 Instead{/ts}" amount="{$row.min_contribution}" />
</div>
<div class="premium-full-description">
{$row.description}
</div>
{if $showSelectOptions }
{assign var="pid" value="options_"|cat:$row.id}
{if $pid}
<div class="premium-full-options">
<p>{$form.$pid.html}</p>
</div>
{/if}
{else}
<div class="premium-full-options">
<p><strong>{$row.options}</strong></p>
</div>
{/if}
{if ( ($premiumBlock.premiums_display_min_contribution AND $context EQ "makeContribution") OR $preview EQ 1) AND $row.min_contribution GT 0 }
<div class="premium-full-min">{ts 1=$row.min_contribution|crmMoney}Minimum: %1{/ts}</div>
{/if}
<div style="clear:both"></div>
</div>
</div>
<div style="clear:both"></div>
</div>
{/foreach}
{if $showPremium AND !$preview AND $premiumBlock.premiums_nothankyou_position EQ 2}
<div class="premium premium-no_thanks" id="premium_id-no_thanks" min_contribution="0">
<div class="premium-short">
<input type="checkbox" disabled="disabled" /> {$premiumBlock.premiums_nothankyou_label}
</div>
<div class="premium-full">
<input type="checkbox" checked="checked" disabled="disabled" /> {$premiumBlock.premiums_nothankyou_label}
</div>
</div>
{/if}
</div>
{/strip}
{if $context EQ "makeContribution"}
</fieldset>
{elseif ! $preview} {* Close premium-display-group div for Confirm and Thank-you pages *}
</div>
{/if}
</div>
{if $context EQ "makeContribution"}
{literal}
<script>
CRM.$(function($) {
var is_separate_payment = {/literal}{if $membershipBlock.is_separate_payment}{$membershipBlock.is_separate_payment}{else}0{/if}{literal};
// select a new premium
function select_premium(premium_id) {
if($(premium_id).length) {
// hide other active premium
$('.premium-full').hide();
$('.premium-short').show();
// show this one
$('.premium-short', $(premium_id)).hide();
$('.premium-full', $(premium_id)).show();
// record this one
var id_parts = premium_id.split('-');
$('#selectProduct').val(id_parts[1]);
}
}
// click premium to select
$('.premium-short').click(function(){
select_premium( '#'+$($(this).parent()).attr('id') );
});
// select the default premium
var premium_id = $('#selectProduct').val();
if(premium_id == '') premium_id = 'no_thanks';
select_premium('#premium_id-'+premium_id);
// get the current amount
function get_amount() {
var amount;
if (typeof totalfee !== "undefined") {
return totalfee;
}
// see if other amount exists and has a value
if($('.other_amount-content input').length) {
amount = Number($('.other_amount-content input').val());
if(isNaN(amount))
amount = 0;
}
function check_price_set(price_set_radio_buttons) {
if (!amount) {
$(price_set_radio_buttons).each(function(){
if ($(this).prop('checked')) {
amount = $(this).attr('data-amount');
if (typeof amount !== "undefined") {
amount = Number(amount);
}
else {
amount = 0;
}
}
});
}
}
// check for additional contribution
var additional_amount = 0;
if(is_separate_payment) {
additional_amount = amount;
amount = 0;
}
// make sure amount is a number at this point
if(!amount) amount = 0;
// next, check for membership/contribution level price set
check_price_set('#priceset input[type="radio"]');
// account for is_separate_payment
if(is_separate_payment && additional_amount) {
amount += additional_amount;
}
return amount;
}
// update premiums
function update_premiums() {
var amount = get_amount();
$('.premium').each(function(){
var min_contribution = $(this).attr('min_contribution');
if(amount < min_contribution) {
$(this).addClass('premium-disabled');
} else {
$(this).removeClass('premium-disabled');
}
});
}
$('.other_amount-content input').change(update_premiums);
$('input, #priceset').change(update_premiums);
update_premiums();
// build a list of price sets
var amounts = [];
var price_sets = {};
$('input, #priceset select,#priceset').each(function(){
if (this.tagName == 'SELECT') {
var selectID = $(this).attr('id');
var selectvalues = JSON.parse($(this).attr('price'));
Object.keys(selectvalues).forEach(function (key) {
var option = selectvalues[key].split(optionSep);
amount = Number(option[0]);
price_sets[amount] = '#' + selectID + '-' + key;
amounts.push(amount);
});
}
else {
var amount = Number($(this).attr('data-amount'));
if (!isNaN(amount)) {
amounts.push(amount);
var id = $(this).attr('id');
price_sets[amount] = '#'+id;
}
}
});
amounts.sort(function(a,b){return a - b});
// make contribution instead buttons work
$('.premium-full-disabled input').click(function(){
var amount = Number($(this).attr('amount'));
if (price_sets[amount]) {
if (!$(price_sets[amount]).length) {
var option = price_sets[amount].split('-');
$(option[0]).val(option[1]);
$(option[0]).trigger('change');
}
else if ($(price_sets[amount]).attr('type') == 'checkbox') {
$(price_sets[amount]).prop("checked",true);
if ((typeof totalfee !== 'undefined') && (typeof display == 'function')) {
if (totalfee > 0) {
totalfee += amount;
}
else {
totalfee = amount;
}
display(totalfee);
}
}
else {
$(price_sets[amount]).click();
$(price_sets[amount]).trigger('click');
}
} else {
// is there an other amount input box?
if($('.other_amount-section input').length) {
// is this a membership form with separate payment?
if(is_separate_payment) {
var current_amount = 0;
if($('#priceset input[type="radio"]:checked').length) {
current_amount = Number($('#priceset input[type="radio"]:checked').attr('data-amount'));
if(!current_amount) current_amount = 0;
}
var new_amount = amount - current_amount;
$('.other_amount-section input').val(new_amount.toFixed(2));
} else {
$('.other_amount-section input').click();
$('.other_amount-section input').val($(this).attr('amount'));
}
} else {
// find the next best price set
var selected_price_set = false;
for(var i in amounts) {
if(amounts[i] >= amount) {
selected_price_set = amounts[i];
break;
}
}
if(!selected_price_set) {
selected_price_set = amounts[amounts.length-1];
}
if (!$(price_sets[selected_price_set]).length) {
var option = price_sets[selected_price_set].split('-');
$(option[0]).val(option[1]);
$(option[0]).trigger('change');
}
else if ($(price_sets[selected_price_set]).attr('type') == 'checkbox') {
$(price_sets[selected_price_set]).prop("checked",true);
if ((typeof totalfee !== 'undefined') && (typeof display == 'function')) {
if (totalfee > 0) {
totalfee += amount;
}
else {
totalfee = amount;
}
display(totalfee);
}
}
else {
$(price_sets[selected_price_set]).click();
$(price_sets[selected_price_set]).trigger('click');
}
}
}
update_premiums();
});
// validation of premiums
var error_message = '{/literal}{ts escape="js"}You must contribute more to get that item{/ts}{literal}';
$.validator.addMethod('premiums', function(value, element, params){
var premium_id = $('#selectProduct').val();
var premium$ = $('#premium_id-'+premium_id);
if(premium$.length) {
if(premium$.hasClass('premium-disabled')) {
return false;
}
}
return true;
}, error_message);
// add validation rules
CRM.validate.functions.push(function(){
$('#selectProduct').rules('add', 'premiums');
});
// need to use jquery validate's ignore option, so that it will not ignore hidden fields
CRM.validate.params['ignore'] = '.ignore';
});
</script>
{/literal}
{else}
{literal}
<script>
CRM.$(function($) {
cj('.premium-short').hide();
cj('.premium-full').show();
});
</script>
{/literal}
{/if}
{/if}

View file

@ -0,0 +1,31 @@
{*
+--------------------------------------------------------------------+
| CiviCRM version 4.7 |
+--------------------------------------------------------------------+
| Copyright CiviCRM LLC (c) 2004-2017 |
+--------------------------------------------------------------------+
| This file is a part of CiviCRM. |
| |
| CiviCRM is free software; you can copy, modify, and distribute it |
| under the terms of the GNU Affero General Public License |
| Version 3, 19 November 2007 and the CiviCRM Licensing Exception. |
| |
| CiviCRM is distributed in the hope that it will be useful, but |
| WITHOUT ANY WARRANTY; without even the implied warranty of |
| MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
| See the GNU Affero General Public License for more details. |
| |
| You should have received a copy of the GNU Affero General Public |
| License and the CiviCRM Licensing Exception along |
| with this program; if not, contact CiviCRM LLC |
| at info[AT]civicrm[DOT]org. If you have questions about the |
| GNU Affero General Public License or the licensing of CiviCRM, |
| see the CiviCRM license FAQ at http://civicrm.org/licensing |
+--------------------------------------------------------------------+
*}
{* Displays Test-drive mode header for Contribution pages. *}
<div class="messages status no-popup">
<i class="crm-i fa-cogs"></i>
<strong>{ts}Test-drive Your Contribution Page{/ts}</strong>
<p>{ts}This page is currently running in <strong>test-drive mode</strong>. 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 a test contribution record will be saved to the database. Use obvious test contact names so you can review and delete these records as needed. Test contributions are not visible on the Contributions tab, but can be viewed by searching for 'Test Contributions' in the CiviContribute search form.</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}</p>
</div>

View file

@ -0,0 +1,318 @@
{*
+--------------------------------------------------------------------+
| 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/Contribute/Form/Contribution/PreviewHeader.tpl"}
{/if}
{include file="CRM/common/TrackingFields.tpl"}
<div class="crm-contribution-page-id-{$contributionPageID} crm-block crm-contribution-thankyou-form-block">
{if $thankyou_text}
<div id="thankyou_text" class="crm-section thankyou_text-section">
{$thankyou_text}
</div>
{/if}
{* Show link to Tell a Friend (CRM-2153) *}
{if $friendText}
<div id="tell-a-friend" class="crm-section friend_link-section">
<a href="{$friendURL}" title="{$friendText|escape:'html'}" class="button"><span>&raquo; {$friendText}</span></a>
</div>{if !$linkText}<br /><br />{/if}
{/if}
{* Add button for donor to create their own Personal Campaign page *}
{if $linkText}
<div class="crm-section create_pcp_link-section">
<a href="{$linkTextUrl}" title="{$linkText|escape:'html'}" class="button"><span>&raquo; {$linkText}</span></a>
</div><br /><br />
{/if}
<div class="help">
{* PayPal_Standard sets contribution_mode to 'notify'. We don't know if transaction is successful until we receive the IPN (payment notification) *}
{if $is_pay_later}
<div class="bold">{$pay_later_receipt}</div>
{if $is_email_receipt}
<div>
{if $onBehalfEmail AND ($onBehalfEmail neq $email)}
{ts 1=$email 2=$onBehalfEmail}An email confirmation with these payment instructions has been sent to %1 and to %2.{/ts}
{else}
{ts 1=$email}An email confirmation with these payment instructions has been sent to %1.{/ts}
{/if}
</div>
{/if}
{elseif $isPendingOutcome}
<div>{ts 1=$paymentProcessor.name}Your contribution has been submitted to %1 for processing. Please print this page for your records.{/ts}</div>
{if $is_email_receipt}
<div>
{if $onBehalfEmail AND ($onBehalfEmail neq $email)}
{ts 1=$email 2=$onBehalfEmail}An email receipt will be sent to %1 and to %2 once the transaction is processed successfully.{/ts}
{else}
{ts 1=$email}An email receipt will be sent to %1 once the transaction is processed successfully.{/ts}
{/if}
</div>
{/if}
{else}
<div>{ts}Your transaction has been processed successfully. Please print this page for your records.{/ts}</div>
{if $is_email_receipt}
<div>
{if $onBehalfEmail AND ($onBehalfEmail neq $email)}
{ts 1=$email 2=$onBehalfEmail}An email receipt has also been sent to %1 and to %2{/ts}
{elseif $email}
{ts 1=$email}An email receipt has also been sent to %1{/ts}
{/if}
</div>
{/if}
{/if}
</div>
<div class="spacer"></div>
{include file="CRM/Contribute/Form/Contribution/MembershipBlock.tpl" context="thankContribution"}
{if $amount GTE 0 OR $minimum_fee GTE 0 OR ( $priceSetID and $lineItem ) }
<div class="crm-group amount_display-group">
{if !$useForMember}
<div class="header-dark">
{if !$membershipBlock AND $amount OR ( $priceSetID and $lineItem )}{ts}Contribution Information{/ts}{else}{ts}Membership Fee{/ts}{/if}
</div>
{/if}
<div class="display-block">
{if !$useForMember}
{if $lineItem and $priceSetID}
{if !$amount}{assign var="amount" value=0}{/if}
{assign var="totalAmount" value=$amount}
{include file="CRM/Price/Page/LineItem.tpl" context="Contribution"}
{elseif $membership_amount}
{$membership_name} {ts}Membership{/ts}: <strong>{$membership_amount|crmMoney}</strong><br />
{if $amount}
{if !$is_separate_payment}
{ts}Contribution Amount{/ts}: <strong>{$amount|crmMoney}</strong><br />
{else}
{ts}Additional Contribution{/ts}: <strong>{$amount|crmMoney}</strong><br />
{/if}
{/if}
<strong> -------------------------------------------</strong><br />
{ts}Total{/ts}: <strong>{$amount+$membership_amount|crmMoney}</strong><br />
{else}
{if $totalTaxAmount}
{ts}Tax Amount{/ts}: <strong>{$totalTaxAmount|crmMoney}</strong><br />
{/if}
{if $installments}{ts}Installment Amount{/ts}{else}{ts}Amount{/ts}{/if}: <strong>{$amount|crmMoney}{if $amount_level } &ndash; {$amount_level}{/if}</strong>
{/if}
{/if}
{if $receive_date}
{ts}Date{/ts}: <strong>{$receive_date|crmDate}</strong><br />
{/if}
{if $contributeMode ne 'notify' and $is_monetary and ! $is_pay_later and $trxn_id}
{ts}Transaction #{/ts}: {$trxn_id}<br />
{/if}
{if $membership_trx_id}
{ts}Membership Transaction #{/ts}: {$membership_trx_id}
{/if}
{* Recurring contribution / pledge information *}
{if $is_recur}
{if !empty($auto_renew)} {* Auto-renew membership confirmation *}
{crmRegion name="contribution-thankyou-recur-membership"}
<br />
{if $frequency_interval > 1}
<strong>{ts 1=$frequency_interval 2=$frequency_unit}This membership will be renewed automatically every %1 %2(s).{/ts}</strong>
{else}
<strong>{ts 1=$frequency_unit}This membership will be renewed automatically every %1.{/ts}</strong>
{/if}
<div class="description crm-auto-renew-cancel-info">({ts}You will receive an email receipt which includes information about how to cancel the auto-renewal option.{/ts})</div>
{/crmRegion}
{else}
{crmRegion name="contribution-thankyou-recur"}
{if $installments > 1}
{if $frequency_interval > 1}
<p><strong>{ts 1=$frequency_interval 2=$frequency_unit 3=$installments}This recurring contribution will be automatically processed every %1 %2s for a total %3 installments (including this initial contribution).{/ts}</strong></p>
{else}
<p><strong>{ts 1=$frequency_unit 2=$installments}This recurring contribution will be automatically processed every %1 for a total %2 installments (including this initial contribution).{/ts}</strong></p>
{/if}
{else}
{if $frequency_interval > 1}
<p><strong>{ts 1=$frequency_interval 2=$frequency_unit}This recurring contribution will be automatically processed every %1 %2s.{/ts}</strong></p>
{else}
<p><strong>{ts 1=$frequency_unit}This recurring contribution will be automatically processed every %1.{/ts}</strong></p>
{/if}
{/if}
<p>
{if $is_email_receipt}
{ts}You will receive an email receipt which includes information about how to update or cancel this recurring contribution.{/ts}
{/if}
</p>
{/crmRegion}
{/if}
{/if}
{if $is_pledge}
{if $pledge_frequency_interval GT 1}
<p><strong>{ts 1=$pledge_frequency_interval 2=$pledge_frequency_unit 3=$pledge_installments}I pledge to contribute this amount every %1 %2s for %3 installments.{/ts}</strong></p>
{else}
<p><strong>{ts 1=$pledge_frequency_interval 2=$pledge_frequency_unit 3=$pledge_installments}I pledge to contribute this amount every %2 for %3 installments.{/ts}</strong></p>
{/if}
<p>
{if $is_pay_later}
{ts 1=$receiptFromEmail}We will record your initial pledge payment when we receive it from you. You will be able to modify or cancel future pledge payments at any time by logging in to your account or contacting us at %1.{/ts}
{else}
{ts 1=$receiptFromEmail}Your initial pledge payment has been processed. You will be able to modify or cancel future pledge payments at any time by contacting us at %1.{/ts}
{/if}
{if $max_reminders}
{ts 1=$initial_reminder_day}We will send you a payment reminder %1 days prior to each scheduled payment date. The reminder will include a link to a page where you can make your payment online.{/ts}
{/if}
</p>
{/if}
</div>
</div>
{/if}
{if $onbehalfProfile|@count}
<div class="crm-group onBehalf_display-group label-left crm-profile-view">
{include file="CRM/UF/Form/Block.tpl" fields=$onbehalfProfile prefix='onbehalf'}
</div>
{/if}
{if $honoreeProfileFields|@count}
<div class="crm-group honor_block-group">
<div class="header-dark">
{$soft_credit_type}
</div>
<div class="display-block">
<div class="label-left crm-section honoree_profile-section">
<strong>{$honorName}</strong></br>
{include file="CRM/UF/Form/Block.tpl" fields=$honoreeProfileFields prefix='honor'}
</div>
</div>
</div>
{/if}
{if $customPre}
<fieldset class="label-left crm-profile-view">
{include file="CRM/UF/Form/Block.tpl" fields=$customPre}
</fieldset>
{/if}
{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 ( $contributeMode ne 'notify' and (!$is_pay_later or $isBillingAddressRequiredForPayLater) and $is_monetary and ( $amount GT 0 OR $minimum_fee GT 0 ) ) or $email }
{if $contributeMode ne 'notify' and (!$is_pay_later or $isBillingAddressRequiredForPayLater) and $is_monetary and ( $amount GT 0 OR $minimum_fee GT 0 ) }
{if $billingName or $address}
<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}
{if $email}
<div class="crm-group contributor_email-group">
<div class="header-dark">
{ts}Your Email{/ts}
</div>
<div class="crm-section no-label contributor_email-section">
<div class="content">{$email}</div>
<div class="clear"></div>
</div>
</div>
{/if}
{/if}
{if $contributeMode eq 'direct' and ! $is_pay_later and $is_monetary and ( $amount GT 0 OR $minimum_fee GT 0 )}
{crmRegion name="contribution-thankyou-billing-block"}
<div class="crm-group credit_card-group">
{if $paymentFieldsetLabel}
<div class="header-dark">
{$paymentFieldsetLabel}
</div>
{/if}
{if $paymentProcessor.payment_type == 2}
<div class="display-block">
{ts}Account Holder{/ts}: {$account_holder}<br />
{ts}Bank Identification Number{/ts}: {$bank_identification_number}<br />
{ts}Bank Name{/ts}: {$bank_name}<br />
{ts}Bank Account Number{/ts}: {$bank_account_number}<br />
</div>
{else}
<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">{if $credit_card_exp_date}{ts}Expires{/ts}: {$credit_card_exp_date|truncate:7:''|crmDate}{/if}</div>
<div class="clear"></div>
</div>
{/if}
</div>
{/crmRegion}
{/if}
{include file="CRM/Contribute/Form/Contribution/PremiumBlock.tpl" context="thankContribution"}
{if $customPost}
<fieldset class="label-left crm-profile-view">
{include file="CRM/UF/Form/Block.tpl" fields=$customPost}
</fieldset>
{/if}
<div id="thankyou_footer" class="contribution_thankyou_footer-section">
<p>
{$thankyou_footer}
</p>
</div>
{if $isShare}
{capture assign=contributionUrl}{crmURL p='civicrm/contribute/transact' q="$qParams" a=1 fe=1 h=1}{/capture}
{include file="CRM/common/SocialNetwork.tpl" url=$contributionUrl title=$title pageURL=$contributionUrl}
{/if}
</div>

View file

@ -0,0 +1,89 @@
{*
+--------------------------------------------------------------------+
| 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 monthly and yearly contributions using Google charts (Bar and Pie) *}
{if $hasContributions}
<div id="chartData">
<table class="chart">
<tr class="crm-contribution-form-block-open_flash_chart">
<td>
{if $hasByMonthChart}
{* display monthly chart *}
<div id="open_flash_chart_by_month"></div>
{else}
{ts}There were no contributions during the selected year.{/ts}
{/if}
</td>
<td>
{* display yearly chart *}
<div id="open_flash_chart_by_year"></div>
</td>
</tr>
</table>
<div class="form-layout-compressed" >
<table >
<td class="label">{$form.select_year.label}</td><td>{$form.select_year.html}</td>
<td class="label">{$form.chart_type.label}</td><td>{$form.chart_type.html}</td>
</table>
</div>
{else}
<div class="messages status no-popup">
{ts}There are no live contribution records to display.{/ts}
</div>
{/if}
{if $hasOpenFlashChart}
{include file="CRM/common/openFlashChart.tpl" contriChart=true}
{literal}
<script type="text/javascript">
CRM.$(function($) {
var chartData = {/literal}{$openFlashChartData}{literal};
$.each(chartData, function(chartID, chartValues) {
createSWFObject(chartID, chartValues.divName, chartValues.size.xSize, chartValues.size.ySize, 'loadData');
});
});
function loadData( chartID ) {
var allData = {/literal}{$openFlashChartData}{literal};
return JSON.stringify(allData[chartID].object);
}
function byMonthOnClick( barIndex ) {
var allData = {/literal}{$openFlashChartData}{literal};
var url = eval( "allData.by_month.on_click_urls.url_" + barIndex );
if ( url ) window.location.href = url;
}
function byYearOnClick( barIndex ) {
var allData = {/literal}{$openFlashChartData}{literal};
var url = eval( "allData.by_year.on_click_urls.url_" + barIndex );
if ( url ) window.location.href = url;
}
</script>
{/literal}
{/if}

View file

@ -0,0 +1,28 @@
{*
+--------------------------------------------------------------------+
| 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-financial_type-product"}
{ts}Select a Financial Type that has both a 'Cost of Sales Premiums Account' and a 'Premiums Inventory Account' if you want to generate accounting transactions to track the cost of premiums used.{/ts}
{/htxt}

View 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 |
+--------------------------------------------------------------------+
*}
{crmRegion name="contribute-form-contributionpage-addproduct-main"}
{capture assign=managePremiumsURL}{crmURL p='civicrm/admin/contribute/managePremiums' q="reset=1"}{/capture}
<h3>{if $action eq 2 }{ts}Add Products to This Page{/ts} {elseif $action eq 1024}{ts}Preview{/ts}{else} {ts}Remove Products from this Page{/ts}{/if}</h3>
<div class="crm-block crm-form-block crm-contribution-add_product-form-block">
<div class="help">
{if $action eq 1024}
{ts}This is a preview of this product as it will appear on your Contributions page(s).{/ts}
{else}
{ts}Use this form to select a premium to be offered on this Online Contribution Page.{/ts}
{/if}
</div>
{if $action eq 8}
<div class="messages status no-popup">
<div class="icon inform-icon"></div>
{ts}Are you sure you want to remove this premium product from this Contribution page?{/ts}
</div>
{elseif $action eq 1024}
{include file="CRM/Contribute/Form/Contribution/PremiumBlock.tpl"}
{else}
<table class="form-layout-compressed">
<tr class="crm-contribution-form-block-product_id"><td class="label">{$form.product_id.label}</td><td class="html-adjust">{$form.product_id.html}<br />
<span class="description">{ts 1=$managePremiumsURL}Pick a premium to include on this Contribution Page. Use <a href='%1'>Manage Premiums</a> to create or enable additional premium choices for your site.{/ts}</span></td></tr>
<tr class="crm-contribution-form-block-financial_type">
<td class="label">{$form.financial_type_id.label}</td>
<td>
{if !$financialType }
{capture assign=ftUrl}{crmURL p='civicrm/admin/financial/financialType' q="reset=1"}{/capture}
{ts 1=$ftUrl}There are no financial types configured with linked 'Cost of Sales Premiums' and 'Premiums Inventory Account' accounts. If you want to generate accounting transactions which track the cost of premiums used <a href='%1'>click here</a> to configure financial types and accounts.{/ts}
{else}
{$form.financial_type_id.html}{help id="id-financial_type-product"}
{/if}
</td>
</tr>
<tr class="crm-contribution-form-block-weight"><td class="label">{$form.weight.label}</td><td class="html-adjust">{$form.weight.html}<br />
<span class="description">{ts}Weight controls the order that premiums are displayed on the Contribution Page.{/ts}</span></td></tr>
</table>
{/if}
{if $action ne 4}
<div class="crm-submit-buttons">
{include file="CRM/common/formButtons.tpl" location="bottom"}
</div>
{else}
<div class="crm-done-button">
{include file="CRM/common/formButtons.tpl"}
</div>
{/if} {* $action ne view *}
</div>
<script type="text/javascript">
{literal}
CRM.$(function($) {
function getFinancialType() {
var callbackURL = CRM.url('civicrm/ajax/rest', {
className: 'CRM_Financial_Page_AJAX',
fnName: 'jqFinancialType',
_value: $("#product_id").val()
});
$.ajax({
url: callbackURL,
success: function( data, textStatus ){
data = eval(data);//get json array
if ( data != null ) {
$("#financial_type_id").val(data);
}
}
});
}
getFinancialType();
$("#product_id").change(getFinancialType);
});
{/literal}
</script>
{/crmRegion}
{crmRegion name="contribute-form-contributionpage-addproduct-post"}
{/crmRegion}

View file

@ -0,0 +1,489 @@
{*
+--------------------------------------------------------------------+
| CiviCRM version 4.7 |
+--------------------------------------------------------------------+
| Copyright CiviCRM LLC (c) 2004-2017 |
+--------------------------------------------------------------------+
| This file is a part of CiviCRM. |
| |
| CiviCRM is free software; you can copy, modify, and distribute it |
| under the terms of the GNU Affero General Public License |
| Version 3, 19 November 2007 and the CiviCRM Licensing Exception. |
| |
| CiviCRM is distributed in the hope that it will be useful, but |
| WITHOUT ANY WARRANTY; without even the implied warranty of |
| MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
| See the GNU Affero General Public License for more details. |
| |
| You should have received a copy of the GNU Affero General Public |
| License and the CiviCRM Licensing Exception along |
| with this program; if not, contact CiviCRM LLC |
| at info[AT]civicrm[DOT]org. If you have questions about the |
| GNU Affero General Public License or the licensing of CiviCRM, |
| see the CiviCRM license FAQ at http://civicrm.org/licensing |
+--------------------------------------------------------------------+
*}
{capture assign="adminPriceSets"}{crmURL p='civicrm/admin/price' q="reset=1"}{/capture}
{crmRegion name="contribute-form-contributionpage-amount-main"}
<div class="crm-block crm-form-block crm-contribution-contributionpage-amount-form-block">
<div class="help">
{ts}Use this form to configure Contribution Amount options. You can give contributors the ability to enter their own contribution amounts and/or provide a fixed list of amounts. For fixed amounts, you can enter a label for each 'level' of contribution (e.g. Friend, Sustainer, etc.). If you allow people to enter their own dollar amounts, you can also set minimum and maximum values. Depending on your choice of Payment Processor, you may be able to offer a recurring contribution option.{/ts} {docURL page="user/contributions/payment-processors"}
</div>
<div class="crm-submit-buttons">{include file="CRM/common/formButtons.tpl" location="top"}</div>
{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. Unless you are only using CiviContribute to solicit non-monetary / in-kind contributions, you will need to <a href='%1'>configure a Payment Processor</a>. Then return to this screen and assign the processor to this Contribution Page.{/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}
<table class="form-layout-compressed">
<tr class="crm-contribution-contributionpage-amount-form-block-is_monetary"><th scope="row" class="label" width="20%">{$form.is_monetary.label}</th>
<td>{$form.is_monetary.html}<br />
<span class="description">{ts}Uncheck this box if you are using this contribution page for free membership signup ONLY, or to solicit in-kind / non-monetary donations such as furniture, equipment.. etc.{/ts}</span></td>
</tr>
<tr class="crm-contribution-contributionpage-amount-form-block-currency"><th scope="row" class="label" width="20%">{$form.currency.label}</th>
<td>{$form.currency.html}<br />
<span class="description">{ts}Select the currency to be used for contributions submitted from this contribution page.{/ts}</span></td>
</tr>
{if $paymentProcessor}
<tr class="crm-contribution-contributionpage-amount-form-block-payment_processor"><th scope="row" class="label" width="20%">{$form.payment_processor.label}</th>
<td>{$form.payment_processor.html}<br />
<span class="description">{ts}Select the payment processor to be used for contributions submitted from this contribution page (unless you are soliciting non-monetary / in-kind contributions only).{/ts} {docURL page="user/contributions/payment-processors"}</span></td>
</tr>
{/if}
<tr class="crm-contribution-contributionpage-amount-form-block-is_pay_later"><th scope="row" class="label">{$form.is_pay_later.label}</th>
<td>{$form.is_pay_later.html}<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>
<tr id="payLaterFields" class="crm-contribution-form-block-payLaterFields"><td>&nbsp;</td>
<td>
<table class="form-layout">
<tr class="crm-contribution-contributionpage-amount-form-block-pay_later_text"><th scope="row" class="label">{$form.pay_later_text.label} <span class="crm-marker" title="This field is required.">*</span> {if $action == 2}{include file='CRM/Core/I18n/Dialog.tpl' table='civicrm_contribution_page' field='pay_later_text' id=$contributionPageID}{/if}</th>
<td>{$form.pay_later_text.html|crmAddClass:big}<br />
<span 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}</span></td></tr>
<tr class="crm-contribution-contributionpage-amount-form-block-pay_later_receipt"><th scope="row" class="label">{$form.pay_later_receipt.label} <span class="crm-marker" title="This field is required.">*</span> {if $action == 2}{include file='CRM/Core/I18n/Dialog.tpl' table='civicrm_contribution_page' field='pay_later_receipt' id=$contributionPageID}{/if}</th>
<td>{$form.pay_later_receipt.html|crmAddClass:big}<br />
<span class="description">{ts}Instructions added to Confirmation and Thank-you pages, as well as the confirmation email, when the user selects the 'pay later' option (e.g. 'Mail your check to ... within 3 business days.').{/ts}</span></td></tr>
<tr><th scope="row" class="label">{$form.is_billing_required.label}</th>
<td>{$form.is_billing_required.html}<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>
</td>
</tr>
<tr class="crm-contribution-contributionpage-amount-form-block-amount_block_is_active">
<th scope="row" class="label">{$form.amount_block_is_active.label}</th>
<td>{$form.amount_block_is_active.html}<br />
<span class="description">{ts}Uncheck this box if you are using this contribution page for membership signup and renewal only &ndash; and you do NOT want users to select or enter any additional contribution amounts.{/ts}</span></td>
</tr>
<tr id="priceSet" class="crm-contribution-contributionpage-amount-form-block-priceSet">
<th scope="row" class="label">{$form.price_set_id.label}</th>
{if $price eq true}
<td>{$form.price_set_id.html}<br /><span class="description">{ts 1=$adminPriceSets}Select a pre-configured Price Set to offer multiple individually priced options for contributions. Otherwise, select &quot;-none-&quot; and enter one or more fixed contribution options in the table below. Create or edit Price Sets <a href='%1'>here</a>.{/ts}</span></td>
{else}
<td><div class="status message">{ts 1=$adminPriceSets}No Contribution Price Sets have been configured / enabled for your site. Price sets allow you to configure more complex contribution options (e.g. "Contribute $25 more to receive our monthly magazine."). Click <a href='%1'>here</a> if you want to configure price sets for your site.{/ts}</div></td>
{/if}
</tr>
</table>
<div id="recurringFields">
<table class="form-layout-compressed">
{if $recurringPaymentProcessor}
<tr id="recurringContribution" class="crm-contribution-form-block-is_recur"><th scope="row" class="label" width="20%">{$form.is_recur.label}</th>
<td>{$form.is_recur.html}<br />
<span class="description">{ts}Check this box if you want to give users the option to make recurring contributions. This feature requires that you use a payment processor which supports recurring billing / subscriptions functionality.{/ts} {docURL page="user/contributions/payment-processors"}</span>
</td>
</tr>
<tr id="recurFields" class="crm-contribution-form-block-recurFields"><td>&nbsp;</td>
<td>
<table class="form-layout-compressed">
<tr class="crm-contribution-form-block-recur_frequency_unit"><th scope="row" class="label">{$form.recur_frequency_unit.label}<span class="crm-marker" title="This field is required.">*</span></th>
<td>{$form.recur_frequency_unit.html}<br />
<span class="description">{ts}Select recurring units supported for recurring payments.{/ts}</span></td>
</tr>
<tr class="crm-contribution-form-block-is_recur_interval"><th scope="row" class="label">{$form.is_recur_interval.label}</th>
<td>{$form.is_recur_interval.html}<br />
<span class="description">{ts}Can users also set an interval (e.g. every '3' months)?{/ts}</span></td>
</tr>
<tr class="crm-contribution-form-block-is_recur_installments"><th scope="row" class="label">{$form.is_recur_installments.label}</th>
<td>{$form.is_recur_installments.html}<br />
<span class="description">{ts}Give the user a choice of installments (e.g. donate every month for 6 months)? If not, recurring donations will continue indefinitely.{/ts}</span></td>
</tr>
</table>
</td>
</tr>
{/if}
</table>
</div>
{if $futurePaymentProcessor}
<span id="pledge_calendar_date_field">&nbsp;&nbsp;{include file="CRM/common/jcalendar.tpl" elementName=pledge_calendar_date}</span>
<span id="pledge_calendar_month_field">&nbsp;&nbsp;{$form.pledge_calendar_month.html}<br/><span class="description">{ts}Recurring payment will be processed this day of the month following submission of this contribution page.{/ts}</span></span>
{/if}
<div id="amountFields">
<table class="form-layout-compressed">
{* handle CiviPledge fields *}
{if $civiPledge}
<tr class="crm-contribution-form-block-is_pledge_active"><th scope="row" class="label" width="20%">{$form.is_pledge_active.label}</th>
<td>{$form.is_pledge_active.html}<br />
<span class="description">{ts}Check this box if you want to give users the option to make a Pledge (a commitment to contribute a fixed amount on a recurring basis).{/ts}</span>
</td>
</tr>
<tr id="pledgeFields" class="crm-contribution-form-block-pledgeFields"><td></td><td>
<table class="form-layout-compressed">
<tr class="crm-contribution-form-block-pledge_frequency_unit"><th scope="row" class="label">{$form.pledge_frequency_unit.label}<span class="crm-marker"> *</span></th>
<td>{$form.pledge_frequency_unit.html}<br />
<span class="description">{ts}Which frequencies can the user pick from (e.g. every 'week', every 'month', every 'year')?{/ts}</span></td>
</tr>
<tr class="crm-contribution-form-block-is_pledge_interval"><th scope="row" class="label">{$form.is_pledge_interval.label}</th>
<td>{$form.is_pledge_interval.html}<br />
<span class="description">{ts}Can they also set an interval (e.g. every '3' months)?{/ts}</span></td>
</tr>
<tr class="crm-contribution-form-block-initial_reminder_day"><th scope="row" class="label">{$form.initial_reminder_day.label}</th>
<td>{$form.initial_reminder_day.html}
<span class="label">{ts}Days prior to each scheduled payment due date.{/ts}</span></td>
</tr>
<tr class="crm-contribution-form-block-max_reminders"><th scope="row" class="label">{$form.max_reminders.label}</th>
<td>{$form.max_reminders.html}
<span class="label">{ts}Reminders for each scheduled payment.{/ts}</span></td>
</tr>
<tr class="crm-contribution-form-block-additional_reminder_day"><th scope="row" class="label">{$form.additional_reminder_day.label}</th>
<td>{$form.additional_reminder_day.html}
<span class="label">{ts}Days after the last one sent, up to the maximum number of reminders.{/ts}</span></td>
</tr>
{if $futurePaymentProcessor}
<tr id="adjustRecurringFields" class="crm-contribution-form-block-adjust_recur_start_date"><th scope="row" class="label">{$form.adjust_recur_start_date.label}</th>
<td>{$form.adjust_recur_start_date.html}<br/>
<div id="recurDefaults">
<span class="description">{$form.pledge_default_toggle.label}</span>
<table class="form-layout-compressed">
<tr class="crm-contribution-form-block-date_of_recurring_contribution">
<td>{$form.pledge_default_toggle.html}</td>
</tr>
<tr class="crm-contribution-form-block-is_pledge_start_date_visible">
<td>{$form.is_pledge_start_date_visible.html}&nbsp;{$form.is_pledge_start_date_visible.label}</td>
</tr>
<tr class="crm-contribution-form-block-is_pledge_start_date_visible">
<td>{$form.is_pledge_start_date_editable.html}&nbsp;{$form.is_pledge_start_date_editable.label}</td>
</tr>
</table>
</div>
</td>
</tr>
{/if}
</table>
</td>
</tr>
{/if}
<tr class="crm-contribution-form-block-amount_label">
<th scope="row" class="label" width="20%">{$form.amount_label.label}<span class="crm-marker"> *</span></th>
<td>{$form.amount_label.html}</td>
</tr>
<tr class="crm-contribution-form-block-is_allow_other_amount"><th scope="row" class="label" width="20%">{$form.is_allow_other_amount.label}</th>
<td>{$form.is_allow_other_amount.html}<br />
<span class="description">{ts}Check this box if you want to give users the option to enter their own contribution amount. Your page will then include a text field labeled <strong>Other Amount</strong>.{/ts}</span></td></tr>
<tr id="minMaxFields" class="crm-contribution-form-block-minMaxFields"><td>&nbsp;</td><td>
<table class="form-layout-compressed">
<tr class="crm-contribution-form-block-min_amount"><th scope="row" class="label">{$form.min_amount.label}</th>
<td>{$form.min_amount.html|crmMoney}</td></tr>
<tr class="crm-contribution-form-block-max_amount"><th scope="row" class="label">{$form.max_amount.label}</th>
<td>{$form.max_amount.html|crmMoney}<br />
<span class="description">{ts 1=5|crmMoney}If you have chosen to <strong>Allow Other Amounts</strong>, you can use the fields above to control minimum and/or maximum acceptable values (e.g. don't allow contribution amounts less than %1).{/ts}</span></td></tr>
</table>
</td></tr>
<tr><td colspan="2">
<fieldset><legend>{ts}Fixed Contribution Options{/ts}</legend>
{ts}Use the table below to enter up to ten fixed contribution amounts. These will be presented as a list of radio button options. Both the label and dollar amount will be displayed.{/ts}{if $isQuick}{ts} Click <a id='quickconfig' href='#'>here</a> if you want to configure the Fixed Contribution Options below as part of a Price Set, with the added flexibility and complexity that entails.{/ts}{/if}<br />
<table id="map-field-table">
<tr class="columnheader" ><th scope="column">{ts}Contribution Label{/ts}</th><th scope="column">{ts}Amount{/ts}</th><th scope="column">{ts}Default?{/ts}<br />{$form.default.0.html}</th></tr>
{section name=loop start=1 loop=11}
{assign var=idx value=$smarty.section.loop.index}
<tr><td class="even-row">{$form.label.$idx.html}</td><td>{$form.value.$idx.html|crmMoney}</td><td class="even-row">{$form.default.$idx.html}</td></tr>
{/section}
</table>
</fieldset>
</td></tr>
</table>
</div>
<div class="crm-submit-buttons">{include file="CRM/common/formButtons.tpl" location="bottom"}</div>
</div>
{literal}
<script type="text/javascript">
var futurePaymentProcessorMapper = [];
{/literal}{if $futurePaymentProcessor}
{foreach from=$futurePaymentProcessor item="futurePaymentProcessor" key="index"}{literal}
futurePaymentProcessorMapper[{/literal}{$index}{literal}] = '{/literal}{$futurePaymentProcessor}{literal}';
{/literal}{/foreach}
{literal}
CRM.$(function($) {
var defId = $('input[name="pledge_default_toggle"][value="contribution_date"]').attr('id');
var calId = $('input[name="pledge_default_toggle"][value="calendar_date"]').attr('id');
var monId = $('input[name="pledge_default_toggle"][value="calendar_month"]').attr('id');
$("label[for='" + calId + "']").append($('#pledge_calendar_date_field'));
$("label[for='" + monId + "']").append($('#pledge_calendar_month_field'));
setDateDefaults();
$("#" + defId).click( function() {
if ($(this).is(':checked')) {
$('#pledge_calendar_month').prop('disabled', 'disabled');
$('#pledge_calendar_date').prop('disabled', 'disabled');
$("#pledge_calendar_date").next('input').prop('disabled', 'disabled');
}
});
$("#" + calId).click( function() {
if ($(this).is(':checked')) {
$('#pledge_calendar_month').prop('disabled', 'disabled');
$('#pledge_calendar_date').prop('disabled', false);
$("#pledge_calendar_date").next('input').prop('disabled', false);
}
});
$("#" + monId).click( function() {
if ($(this).is(':checked')) {
$('#pledge_calendar_month').prop('disabled', false);
$("#pledge_calendar_date").next('input').prop('disabled', 'disabled');
$('#pledge_calendar_date').prop('disabled', 'disabled');
}
});
});
{/literal}{/if}{literal}
var paymentProcessorMapper = [];
{/literal}
{if $recurringPaymentProcessor}
{foreach from=$recurringPaymentProcessor item="paymentProcessor" key="index"}{literal}
paymentProcessorMapper[{/literal}{$index}{literal}] = '{/literal}{$paymentProcessor}{literal}';
{/literal}{/foreach}
{/if}
{literal}
CRM.$(function($) {
var psid = $('#price_set_id').val();
showHideAmountBlock(psid, 'price_set_id');
function checked_payment_processors() {
var ids = [];
$('.crm-contribution-contributionpage-amount-form-block-payment_processor input[type="checkbox"]').each(function(){
if($(this).prop('checked')) {
var id = $(this).attr('id').split('_')[2];
ids.push(id);
}
});
return ids;
}
// show/hide recurring block
$('.crm-contribution-contributionpage-amount-form-block-payment_processor input[type="checkbox"]').change(function(){
showRecurring( checked_payment_processors() );
showAdjustRecurring( checked_payment_processors() );
});
showRecurring( checked_payment_processors() );
showAdjustRecurring( checked_payment_processors() );
});
var element_other_amount = document.getElementsByName('is_allow_other_amount');
if (! element_other_amount[0].checked) {
cj('#minMaxFields').hide();
}
var amount_block = document.getElementsByName('amount_block_is_active');
var priceSetID = {/literal}'{$priceSetID}'{literal};
if ( ! amount_block[0].checked || priceSetID ) {
if ( !priceSetID ) {
cj('#priceSet').hide();
if (CRM.memberPriceset) {
cj(".crm-contribution-contributionpage-amount-form-block-amount_block_is_active td").html('<span class="description">{/literal}{ts}You cannot enable the Contribution Amounts section when a Membership Price Set is in use. (See the Memberships tab above.) Membership Price Sets may include additional fields for non-membership options that require an additional fee (e.g. magazine subscription) or an additional voluntary contribution.</span>{/ts}{literal}');
}
}
cj('#amountFields').hide();
}
CRM.$(function($) {
payLater('is_pay_later');
});
cj('#is_pay_later').click( function() {
payLater('is_pay_later');
});
function minMax(chkbox) {
if (chkbox.checked) {
cj('#minMaxFields').show();
} else {
cj('#minMaxFields').hide();
document.getElementById("min_amount").value = '';
document.getElementById("max_amount").value = '';
}
}
function payLater(chkbox) {
var elementId = 'payLaterFields';
if (cj('#' + chkbox).prop('checked')) {
cj('#' + elementId).show();
} else {
cj('#' + elementId).hide();
}
}
function showHideAmountBlock(element, elementName) {
// show / hide when amount section is active check/uncheck.
var priceSetID = {/literal}'{$priceSetID}'{literal};
switch (elementName) {
case 'price_set_id':
if (element) {
cj('#amountFields').hide();
}
else {
cj('#amountFields').show();
}
break;
case 'is_pledge_active':
case 'is_allow_other_amount':
if (element.checked) {
if (priceSetID) cj( "#price_set_id" ).val('');
cj('#amountFields').show();
}
cj("#amount_block_is_active").prop('checked', true );
break;
case 'amount_block_is_active':
if (element.checked) {
if (priceSetID) {
cj('#amountFields').hide();
cj( "#price_set_id" ).val(priceSetID);
}
else {
cj('#amountFields').show();
cj( "#price_set_id" ).val('');
}
cj('#priceSet, #recurringFields').show();
}
else {
cj( "#price_set_id" ).val('');
cj('#amountFields, #priceSet, #recurringFields').hide();
}
break;
}
}
function showRecurring( paymentProcessorIds ) {
var display = true;
cj.each(paymentProcessorIds, function(k, id){
if( cj.inArray(id, paymentProcessorMapper) == -1 ) {
display = false;
}
});
if(display) {
cj( '#recurringContribution' ).show( );
} else {
if ( cj( '#is_recur' ).prop('checked' ) ) {
cj( '#is_recur' ).prop('checked', false);
cj( '#recurFields' ).hide( );
}
cj( '#recurringContribution' ).hide( );
}
}
function showAdjustRecurring( paymentProcessorIds ) {
var display = true;
cj.each(paymentProcessorIds, function(k, id){
if( cj.inArray(id, futurePaymentProcessorMapper) == -1 ) {
display = false;
}
});
if(display) {
cj( '#adjustRecurringFields' ).show( );
} else {
if ( cj( '#adjust_recur_start_date' ).prop('checked' ) ) {
cj( '#adjust_recur_start_date' ).prop('checked', false);
cj( '#recurDefaults' ).hide( );
}
cj( '#adjustRecurringFields' ).hide( );
}
}
{/literal}{if $futurePaymentProcessor}{literal}
function setDateDefaults() {
{/literal}{if !$pledge_calendar_date}{literal}
cj('#pledge_calendar_date').prop('disabled', 'disabled');
cj("#pledge_calendar_date").next('input').prop('disabled', 'disabled');
{/literal}{/if}
{if !$pledge_calendar_month}{literal}
cj('#pledge_calendar_month').prop('disabled', 'disabled');
{/literal}{/if}{literal}
}
{/literal}{/if}{literal}
</script>
{/literal}
{if $form.is_recur}
{include file="CRM/common/showHideByFieldValue.tpl"
trigger_field_id ="is_recur"
trigger_value ="true"
target_element_id ="recurFields"
target_element_type ="table-row"
field_type ="radio"
invert = "false"
}
{/if}
{if $form.adjust_recur_start_date}
{include file="CRM/common/showHideByFieldValue.tpl"
trigger_field_id ="adjust_recur_start_date"
trigger_value ="true"
target_element_id ="recurDefaults"
target_element_type ="table-row"
field_type ="radio"
invert = "false"
}
{/if}
{if $civiPledge}
{include file="CRM/common/showHideByFieldValue.tpl"
trigger_field_id = "is_pledge_active"
trigger_value = "true"
target_element_id = "pledgeFields"
target_element_type = "table-row"
field_type = "radio"
invert = "false"
}
{/if}
{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_contribution_page&id=$contributionPageID" }';
{literal}
$.getJSON(dataUrl).done(function(result) {window.location = CRM.url("civicrm/admin/price/field", {reset: 1, action: 'browse', sid: result});});
});
});
});
</script>
{/literal}
{/if}
{/crmRegion}
{crmRegion name="contribute-form-contributionpage-amount-post"}
{/crmRegion}

View file

@ -0,0 +1,48 @@
{*
+--------------------------------------------------------------------+
| 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="contrib-profile-title"}
{ts}Contributor Profiles{/ts}
{/htxt}
{htxt id="contrib-profile"}
<p>
{ts}If you want collect additional information from contributors, you can include one or two CiviCRM Profiles&mdash;which are collections of standard or custom fields&mdash;in this contribution page. For example, you may need to collect information about the person (e.g. name and address if these are not already required by your payment processor, interest in subscribing to a newsletter or volunteering). You might also want to collect information specific to this contribution (e.g. target one or several projects or funds to support with this contribution).{/ts}
</p>
<p>
{ts}Your site may already have profile(s) which were previously created for this purpose, in which case you can re-use them for any number of online contribution pages.{/ts}
{ts}If you haven't already configured custom fields and a profile to collect data you need for this form, you can create them here using the steps below.{/ts}
</p>
<ol>
<li>{ts}Create a new profile by clicking the 'Create' button next to 'Include Profile' field below. Name your new profile (e.g. 'Contribution Information').{/ts}</li>
<li>{ts}Add any existing fields needed by dragging them into the profile form builder.{/ts}</li>
<li>{ts}If you need to create new custom fields, you can also do that within the profile editor. Then add the new custom field(s) to this profile by dragging them into the form builder.{/ts}</li>
<li>{ts}Save your profile to return to this screen. You can preview it from here by clicking the Preview (microsope) button.{/ts}</li>
</ol>
{capture assign=docLinkCustom}{docURL page="user/organising-your-data/custom-fields" text="custom fields"}{/capture}
{capture assign=docLinkProfile}{docURL page="user/organising-your-data/profiles" text="profiles"}{/capture}
<p>
{ts 1=$docLinkCustom 2=$docLinkProfile}Refer to the online documentation for more details on creating %1 and %2.{/ts}
</p>
{/htxt}

View file

@ -0,0 +1,52 @@
{*
+--------------------------------------------------------------------+
| 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 |
+--------------------------------------------------------------------+
*}
{crmRegion name="contribute-form-contributionpage-custom-main"}
<div class="crm-block crm-form-block crm-contribution-contributionpage-custom-form-block">
<div class="help">
<p>{ts}You may want to collect information from contributors beyond what is required to make a contribution. For example, you may want to inquire about volunteer availability and skills. Add any number of fields to your contribution form by selecting CiviCRM Profiles (collections of fields) to include at the beginning of the page, and/or at the bottom.{/ts} {help id="contrib-profile"}</p>
</div>
<div class="crm-submit-buttons">{include file="CRM/common/formButtons.tpl" location="top"}</div>
<table class="form-layout-compressed">
<tr class="crm-contribution-contributionpage-custom-form-block-custom_pre_id">
<td class="label">{$form.custom_pre_id.label}
</td>
<td class="html-adjust">{$form.custom_pre_id.html}
<span class="description">{ts}Profile to be included above the billing information (but after the introductory message, amounts, and honoree section).{/ts}</span>
</td>
</tr>
<tr class="crm-contribution-contributionpage-custom-form-block-custom_post_id">
<td class="label">{$form.custom_post_id.label}
</td>
<td class="html-adjust">{$form.custom_post_id.html}
<span class="description">{ts}Profile to be included at the bottom of the page.{/ts}</span>
</td>
</tr>
</table>
<div class="crm-submit-buttons">{include file="CRM/common/formButtons.tpl" location="bottom"}</div>
</div>
{/crmRegion}
{crmRegion name="contribute-form-contributionpage-custom-post"}
{/crmRegion}

View file

@ -0,0 +1,37 @@
{*
+--------------------------------------------------------------------+
| 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 a group *}
<div class="messages status no-popup">
<div class="icon inform-icon"></div>
{if $relatedContributions}
{ts 1=$title}You cannot delete this Contribution Page because it has already been used to submit a contribution or membership payment. It is recommended that your disable the page instead of deleting it, to preserve the integrity of your contribution records. If you do want to completely delete this contribution page, you first need to search for and delete all of the contribution transactions associated with this page in CiviContribute.{/ts}
{else}
{ts}WARNING: Are you sure you want to Delete the selected Contribution Page? A Delete operation cannot be undone. Do you want to continue?{/ts}
{/if}
</div>
<div class="form-item">
{include file="CRM/common/formButtons.tpl"}
</div>

View file

@ -0,0 +1,76 @@
{*
+--------------------------------------------------------------------+
| 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-pcp_intro_help-title"}
{ts}Personal Campaign Page{/ts}
{/htxt}
{htxt id="id-pcp_intro_help"}
{ts}When Personal Campaign Pages are enabled, constituents will see a link inviting them to create their own fundraising page after making a contribution.{/ts}
{/htxt}
{htxt id="id-approval_needed-title"}
{ts}Approval Needed{/ts}
{/htxt}
{htxt id="id-approval_needed"}
<p>{ts}If checked, an administrator will need to approve new personal campaign pages before they are available to the public. We recommend using the "Notify Email" feature if you are requiring approval to ensure that the appropriate staff person is informed when a new Personal Campaign page is 'Waiting Review'.{/ts}</p>
<p>{ts}The person who created the personal campaign page will be automatically notified via email when their page is approved so that they can begin promoting the campaign.{/ts}</p>
{/htxt}
{htxt id="id-notify-title"}
{ts}Notification Email{/ts}
{/htxt}
{htxt id="id-notify"}
<p>{ts}Notification will be sent to this email address whenever a Personal Campaign Page linked to this contribution page is either created or updated. The notification will include links to view the campaign page as well as the contact record of the creator of the page.{/ts}</p>
<p>{ts}If you want Administrator of your organization to receive each PCP Notification receipt, enter one or more email addresses here. Multiple email addresses should be separated by a comma (e.g. jane@example.org, paula@example.org) First Email will be sent to PCP user for support.{/ts}</p>
{/htxt}
{htxt id="id-supporter_profile-title"}
{ts}Supporter Profile{/ts}
{/htxt}
{htxt id="id-supporter_profile"}
{capture assign="createProfileURL"}{crmURL p="civicrm/admin/uf/group" q="reset=1"}{/capture}
{ts 1=$createProfileURL}This is used to collect or update basic information (e.g. name and email address) from users while they are creating a Personal Campaign Page. The profile you select must be configured with 'Account creation required' (under Profile Settings &raquo; Advanced Settings). You must include an Email address field&mdash;and you may include any number of other fields in the profile. If you don't yet have an appropriate Profile configured, you will need to <a href='%1'>create one first</a>, and then return to this form to select it.{/ts}
{/htxt}
{htxt id="id-is_tellfriend-title"}
{ts}Tell-a-Friend{/ts}
{/htxt}
{htxt id="id-is_tellfriend"}
{ts}Can the 'owner' of a Personal Campaign Page use the Tell-a-Friend function to send emails to people inviting them to visit their page and make a contribution? NOTE: Tell a Friend emails will automatically include a link to the sender's campaign page.{/ts}
{/htxt}
{htxt id="id-tellfriend_limit-title"}
{ts}Tell-a-Friend Limit{/ts}
{/htxt}
{htxt id="id-tellfriend_limit"}
{ts}How many recipients can they send emails to at one time? You may want to limit this to prevent large mail blasts from being sent.{/ts}
{/htxt}
{htxt id="id-link_text-title"}
{ts}Personal Contribution Link{/ts}
{/htxt}
{htxt id="id-link_text"}
{ts}Text for the link inviting constituents to create a Personal Contribution Page. This link will appear on the Contribution Thank-you page as well as on each Personal Campaign Page. Leave blank if you do not want constituents to be prompted to create their own Personal Campaign Pages.{/ts}
{/htxt}

View file

@ -0,0 +1,166 @@
{*
+--------------------------------------------------------------------+
| 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 |
+--------------------------------------------------------------------+
*}
{crmRegion name="contribute-form-contributionpage-premium-main"}
<div class="help">
{ts}Edit <strong>Premiums Settings</strong> to customize the title and introductory message (e.g ...in appreciation of your support, you will be able to select from a number of exciting thank-you gifts...). You can optionally provide a contact email address and/or phone number for inquiries.{/ts}
{ts}Then select and review the premiums that you want to offer on this contribution page.{/ts}
</div>
<div id="id_Premiums" class="crm-block crm-form-block crm-contribution-contributionpage-premium-form-block">
<div class="crm-submit-buttons">{include file="CRM/common/formButtons.tpl" location="top"}</div>
<table class="form-layout-compressed">
<tr class="crm-contribution-contributionpage-premium-form-block-premiums_active">
<td class="label">{$form.premiums_active.label}</td>
<td class="html-adjust">{$form.premiums_active.html}<br/>
<span class="description">{ts}Is the Premiums section enabled for this Online Contributions page?{/ts}</span>
</td>
</tr>
</table>
<div id="premiumSettings">
<div class="crm-accordion-wrapper crm-premium-settings-accordion collapsed">
<div class="crm-accordion-header">
{ts}Premiums Settings{/ts}
</div>
<div class="crm-accordion-body">
<table class="form-layout-compressed">
<tr class="crm-contribution-contributionpage-premium-form-block-premiums_intro_title">
<td class="label">
{$form.premiums_intro_title.label}
{if $action == 2}
{include file='CRM/Core/I18n/Dialog.tpl' table='civicrm_premiums'
field='premiums_intro_title' id=$contributionPageID}
{/if}
</td>
<td class="html-adjust">{$form.premiums_intro_title.html}<br/>
<span class="description">{ts}Title to appear at the top of the Premiums section.{/ts}</span>
</td>
</tr>
<tr class="crm-contribution-contributionpage-premium-form-block-premiums_intro_text">
<td class="label">
{$form.premiums_intro_text.label}
{if $action == 2}
{include file='CRM/Core/I18n/Dialog.tpl' table='civicrm_premiums'
field='premiums_intro_text' id=$contributionPageID}
{/if}
</td>
<td class="html-adjust">{$form.premiums_intro_text.html}<br/>
<span class="description">
{ts}Enter content for the introductory message. This will be displayed below the Premiums section title. You may include HTML formatting tags. You can also include images, as long as they are already uploaded to a server&mdash;reference them using complete URLs.{/ts}
</span>
</td>
</tr>
<tr class="crm-contribution-contributionpage-premium-form-block-premiums_contact_email">
<td class="label">
{$form.premiums_contact_email.label}
</td>
<td class="html-adjust">{$form.premiums_contact_email.html}<br/>
<span class="description">
{ts}This email address is included in automated contribution receipts if the contributor has selected a premium. It should be an appropriate contact mailbox for inquiries about premium fulfillment/shipping.{/ts}
</span>
</td>
</tr>
<tr class="crm-contribution-contributionpage-premium-form-block-premiums_contact_phone">
<td class="label">
{$form.premiums_contact_phone.label}
</td>
<td class="html-adjust">{$form.premiums_contact_phone.html}<br/>
<span class="description">
{ts}This phone number is included in automated contribution receipts if the contributor has selected a premium. It should be an appropriate phone number for inquiries about premium fulfillment/shipping.{/ts}
</span>
</td>
</tr>
<tr class="crm-contribution-contributionpage-premium-form-block-premiums_display_min_contribution">
<td class="label">
{$form.premiums_display_min_contribution.label}
</td>
<td class="html-adjust">{$form.premiums_display_min_contribution.html}<br/>
<span class="description">
{ts}Should the minimum contribution amount be automatically displayed after each premium description?{/ts}
</span>
</td>
</tr>
<tr class="crm-contribution-contributionpage-premium-form-block-premiums_nothankyou_label">
<td class="label">
{$form.premiums_nothankyou_label.label}<span class="crm-marker"> *</span>
</td>
<td class="html-adjust">{$form.premiums_nothankyou_label.html}<br/>
<span class="description">{ts}You can change the text for the 'No thank-you' radio button.{/ts}</span>
</td>
</tr>
<tr class="crm-contribution-contributionpage-premium-form-block-premiums_nothankyou_position">
<td class="label">
{$form.premiums_nothankyou_position.label}
</td>
<td class="html-adjust">{$form.premiums_nothankyou_position.html}<br/>
<span class="description">
{ts}Place the 'No thank-you' radio button before OR after the list of premiums offered on this page.{/ts}
</span>
</td>
</tr>
</table>
</div>
<!-- /.crm-accordion-body -->
</div>
<!-- /.crm-accordion-wrapper -->
{* include premium product templates *}
{include file="CRM/Contribute/Page/Premium.tpl"}
</div>
<div class="crm-submit-buttons">{include file="CRM/common/formButtons.tpl" location="bottom"}</div>
</div>
<script type="text/javascript">
{literal}
CRM.$(function($) {
// bind click event to premiums_active checkbox
$('#premiums_active').click(function () {
premiumBlock();
});
// hide premium setting if premium block is not enabled
if (!$('#premiums_active').prop('checked')) {
$('#premiumSettings').hide();
}
});
// function to show/hide premium settings
function premiumBlock() {
if (cj('#premiums_active').prop('checked')) {
cj('#premiumSettings').show();
}
else {
cj('#premiumSettings').hide();
}
return false;
}
{/literal}
</script>
{/crmRegion}
{crmRegion name="contribute-form-contributionpage-premium-post}
{/crmRegion}

View file

@ -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 |
+--------------------------------------------------------------------+
*}
{htxt id="id-financial_type-title"}
{ts}Financial Type{/ts}
{/htxt}
{htxt id="id-financial_type"}
<p>{ts}Select the corresponding financial type for contributions made using this page (e.g. donation, capital campaign, etc.). Financial types (and associated accounting codes) are included when contributions are exported, so it can helpful to set up specific types for accounting purposes. You can add or modify contribution available types from Administer &gt; CiviContribute &gt; Financial Types.{/ts}</p>
<p>{ts}NOTE: If you are using this contribution page for membership signup and renewals, the financial type configured in the membership type settings will be used when recording the membership payment. The financial type selected here will only be used if you are also collecting additional contributions (as configured on the Membership Settings page).{/ts}</p>
{/htxt}
{htxt id="id-intro_msg-title"}
{ts}Intro Content{/ts}
{/htxt}
{htxt id="id-intro_msg"}
{ts}Enter content for the introductory message. This will be displayed below the page title. You can include images, as long as they are already uploaded to a server: click the "Image" button in the button bar.{/ts}
{/htxt}
{htxt id="id-footer_msg-title"}
{ts}Footer Content{/ts}
{/htxt}
{htxt id="id-footer_msg"}
{ts}If you want content displayed at the bottom of the contribution page, enter it here.{/ts}
{/htxt}
{htxt id="id-goal_amount-title"}
{ts}Goal Amount{/ts}
{/htxt}
{htxt id="id-goal_amount"}
{ts}Enter an optional goal amount for this contribution page (e.g. for this 'campaign'). If you enable a contribution widget for this page, the widget will track progress against this goal. Otherwise, the goal will display as 'no limit'.{/ts}
{/htxt}
{htxt id="id-start_date-title"}
{ts}Date Range{/ts}
{/htxt}
{htxt id="id-start_date"}
{ts}You can optionally set an "active date range" for this contribution page. These dates are currently used by the "Contribution Widget" and "Personal Campaign Pages". The widget will give a "Campaign is over" message if it is accessed outside of the specified range. The "Donate" button will be hidden on Personal Campaign Pages if accessed outside of the specified range.{/ts}
{/htxt}
{htxt id="id-honoree_section-title"}
{ts}Honoree{/ts}
{/htxt}
{htxt id="id-honoree_section"}
{ts}If you want to allow contributors to specify a person whom they are honoring with their gift, check this box. An optional Honoree section will be included in the form. Honoree information is automatically saved and linked with the contribution record.{/ts}
{/htxt}
{htxt id="id-is_organization-title"}
{ts}Organization{/ts}
{/htxt}
{htxt id="id-is_organization"}
<p>{ts}When enabled, this feature allows users to identify an organization as the donor or member. Logged in users will be given a choice of selecting from a list of organizations that they have a permissioned relationship with OR entering a new organization. Anonymous users are prompted to enter the organization name. If a matching organization is found using your site's configured unsupervised duplicate matching rules for Organizations, the contribution or membership will be linked to that organization. Otherwise a new organization contact record is created.{/ts}</p>
{capture assign="profileURL"}{crmURL p='civicrm/admin/uf/group' q='reset=1'}{/capture}
<p>{ts 1=$profileURL}The organization data collected from users is controlled by the Organization Profile selected below. You can use the default "On Behalf Of Organization" profile, or any other profile with type 'Contact' and/or 'Organization' (<a href="%1">Administer > Customize Data and Screens > Profiles</a>). The profile must include Organization Name and Email Address.{/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 online contribution page 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 Contribution Thank-you page, Tell-a-Friend page (if enabled), and in contribution receipt emails.{/ts}</p>
{/htxt}

View file

@ -0,0 +1,208 @@
{*
+--------------------------------------------------------------------+
| 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 |
+--------------------------------------------------------------------+
*}
{crmRegion name="contribute-form-contributionpage-settings-main"}
<div class="crm-block crm-form-block crm-contribution-contributionpage-settings-form-block">
<div class="help">
{if $action eq 0}
<p>{ts}This is the first step in creating a new online Contribution Page. You can create one or more different Contribution Pages for different purposes, audiences, campaigns, etc. Each page can have it's own introductory message, pre-configured contribution amounts, custom data collection fields, etc.{/ts}</p>
<p>{ts}In this step, you will configure the page title, financial type (donation, campaign contribution, etc.), goal amount, and introductory message. You will be able to go back and modify all aspects of this page at any time after completing the setup wizard.{/ts}</p>
{else}
{ts}Use this form to edit the page title, financial type (e.g. donation, campaign contribution, etc.), goal amount, introduction, and status (active/inactive) for this online contribution page.{/ts}
{/if}
</div>
<div class="crm-submit-buttons">{include file="CRM/common/formButtons.tpl" location="top"}</div>
<table class="form-layout-compressed">
<tr class="crm-contribution-contributionpage-settings-form-block-title"><td class="label">{$form.title.label} {if $action == 2}{include file='CRM/Core/I18n/Dialog.tpl' table='civicrm_contribution_page' field='title' id=$contributionPageID}{/if}</td><td>{$form.title.html}<br/>
<span class="description">{ts}This title will be displayed at the top of the page.<br />Please use only alphanumeric, spaces, hyphens and dashes for Title.{/ts}</td>
</tr>
<tr class="crm-contribution-contributionpage-settings-form-block-financial_type_id"><td class="label">{$form.financial_type_id.label}</td><td>{$form.financial_type_id.html}<br />
<span class="description">{ts}Select the corresponding financial type for contributions made using this page.{/ts}</span> {help id="id-financial_type"}</td>
</tr>
{* CRM-7362 --add campaign to contribution page *}
{include file="CRM/Campaign/Form/addCampaignToComponent.tpl"
campaignTrClass="crm-contribution-contributionpage-settings-form-block-campaign_id"}
<tr class="crm-contribution-contributionpage-settings-form-block-is_organization"><td>&nbsp;</td><td>{$form.is_organization.html} {$form.is_organization.label} {help id="id-is_organization"}</td></tr>
<tr id="for_org_option" class="crm-contribution-form-block-is_organization">
<td>&nbsp;</td>
<td>
<table class="form-layout-compressed">
<tr class="crm-contribution-for_organization_help">
<td class="description" colspan="2">
{capture assign="profileURL"}{crmURL p='civicrm/admin/uf/group' q='reset=1'}{/capture}
{if $invalidProfiles}
{ts 1=$profileURL}You must <a href="%1">configure a valid organization profile</a> in order to allow individuals to contribute on behalf of an organization. Valid profiles include Contact and / or Organization fields, and may include Contribution and Membership fields.{/ts}
{else}
{ts 1=$profileURL}To change the organization data collected use the "On Behalf Of Organization" profile (<a href="%1">Administer > Customize Data and Screens > Profiles</a>).{/ts}
{/if}
</td>
</tr>
{if !$invalidProfiles}
<tr class="crm-contribution-onbehalf_profile_id">
<td class="label">{$form.onbehalf_profile_id.label}</td>
<td>{$form.onbehalf_profile_id.html}</td>
</tr>
{/if}
<tr id="for_org_text" class="crm-contribution-contributionpage-settings-form-block-for_organization">
<td class="label">{$form.for_organization.label}</td>
<td>{$form.for_organization.html}<br />
<span class="description">{ts}Text displayed next to the checkbox on the contribution form.{/ts}</span>
</td>
</tr>
<tr class="crm-contribution-contributionpage-settings-form-block-is_for_organization">
<td>&nbsp;</td>
<td>{$form.is_for_organization.html}<br />
<span class="description">{ts}Check 'Required' to force ALL users to contribute/signup on behalf of an organization.{/ts}</span>
</td>
</tr>
</table>
</td>
</tr>
<tr class="crm-contribution-contributionpage-settings-form-block-intro_text">
<td class ="label">{$form.intro_text.label}<br /> {if $action == 2}{include file='CRM/Core/I18n/Dialog.tpl' table='civicrm_contribution_page' field='intro_text' id=$contributionPageID}{/if} {help id="id-intro_msg"}</td><td>{$form.intro_text.html}</td>
</tr>
<tr class="crm-contribution-contributionpage-settings-form-block-footer_text">
<td class ="label">{$form.footer_text.label}<br /> {if $action == 2}{include file='CRM/Core/I18n/Dialog.tpl' table='civicrm_contribution_page' field='footer_text' id=$contributionPageID}{/if} {help id="id-footer_msg"}</td><td>{$form.footer_text.html}</td>
</tr>
<tr class="crm-contribution-contributionpage-settings-form-block-goal_amount">
<td class ="label">{$form.goal_amount.label}</td><td>{$form.goal_amount.html} {help id="id-goal_amount"}</td>
</tr>
<tr class="crm-contribution-contributionpage-settings-form-block-start_date">
<td class ="label">{$form.start_date.label} {help id="id-start_date"}</td>
<td>
{include file="CRM/common/jcalendar.tpl" elementName=start_date}
</td>
</tr>
<tr class="crm-contribution-contributionpage-settings-form-block-end_date">
<td class ="label">{$form.end_date.label}</td>
<td>
{include file="CRM/common/jcalendar.tpl" elementName=end_date}
</td>
</tr>
<tr class="crm-contribution-contributionpage-settings-form-block-honor_block_is_active">
<td>&nbsp;</td><td>{$form.honor_block_is_active.html}{$form.honor_block_is_active.label} {help id="id-honoree_section"}</td>
</tr>
</table>
<table class="form-layout-compressed" id="honor">
<tr class="crm-contribution-contributionpage-settings-form-block-honor_block_title">
<td class="label">
{$form.honor_block_title.label}
</td>
<td>
{$form.honor_block_title.html}<br />
<span class="description">{ts}Title for the Honoree section (e.g. &quot;Honoree Information&quot;).{/ts}</span>
</td>
</tr>
<tr class="crm-contribution-contributionpage-settings-form-block-honor_block_text">
<td class="label">
{crmAPI var='result' entity='OptionGroup' action='get' sequential=1 name='soft_credit_type'}
{$form.honor_block_text.label}
</td>
<td>
{$form.honor_block_text.html}<br />
<span class="description">{ts}Optional explanatory text for the Honoree section (displayed above the Honoree fields).{/ts}</span>
</td>
</tr>
<tr class="crm-contribution-contributionpage-settings-form-block-honor_soft_credit_types">
<td class="label">
{$form.soft_credit_types.label}
</td>
<td>
{$form.soft_credit_types.html}
</td>
</tr>
<tr class="crm-contribution-contributionpage-custom-form-block-custom_pre_id">
<td class="label">
{$form.honoree_profile.label}
</td>
<td class="html-adjust">
{$form.honoree_profile.html}
<span class="description">{ts}Profile to be included in the honoree section{/ts}</span>
</td>
</tr>
</table>
<table class="form-layout-compressed">
<tr class="crm-contribution-contributionpage-settings-form-block-is_confirm_enabled">
<td>&nbsp;</td>
<td>{$form.is_confirm_enabled.html} {$form.is_confirm_enabled.label}<br />
<span class="description">{ts}If you disable this contributions will be processed immediately after submitting the contribution form.{/ts}</span></td>
</tr>
<tr class="crm-contribution-contributionpage-settings-form-block-is_share">
<td>&nbsp;</td>
<td>{$form.is_share.html} {$form.is_share.label} {help id="id-is_share"}</td>
</tr>
<tr class="crm-contribution-contributionpage-settings-form-block-is_active"><td>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</td><td>{$form.is_active.html} {$form.is_active.label}<br />
{if $contributionPageID}
<span class="description">
{if $config->userSystem->is_drupal || $config->userFramework EQ 'WordPress'}
{ts}When your page is active, you can link people to the page by copying and pasting the following URL:{/ts}<br />
<strong>{crmURL a=1 fe=1 p='civicrm/contribute/transact' q="reset=1&id=`$contributionPageID`"}</strong>
{elseif $config->userFramework EQ 'Joomla'}
{ts 1=$title}When your page is active, create front-end links to the contribution page using the Menu Manager. Select <strong>Administer CiviCRM &raquo; CiviContribute &raquo; Manage Contribution Pages</strong> and select <strong>%1</strong> for the contribution page.{/ts}
{/if}
</span>
{/if}
</td>
</tr>
</table>
<div class="crm-submit-buttons">{include file="CRM/common/formButtons.tpl" location="bottom"}</div>
</div>
{include file="CRM/common/showHideByFieldValue.tpl"
trigger_field_id ="is_organization"
trigger_value = 1
target_element_id ="for_org_text"
target_element_type ="table-row"
field_type ="radio"
invert = 0
}
{include file="CRM/common/showHideByFieldValue.tpl"
trigger_field_id ="is_organization"
trigger_value = 1
target_element_id ="for_org_option"
target_element_type ="table-row"
field_type ="radio"
invert = 0
}
<script type="text/javascript">
showHonor();
{literal}
function showHonor() {
var checkbox = document.getElementsByName("honor_block_is_active");
if (checkbox[0].checked) {
document.getElementById("honor").style.display = "block";
} else {
document.getElementById("honor").style.display = "none";
}
}
{/literal}
</script>
{/crmRegion}
{crmRegion name="contribute-form-contributionpage-settings-post"}
{/crmRegion}

View file

@ -0,0 +1,79 @@
{*
+--------------------------------------------------------------------+
| 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-contrib-pages-title"}
{ts}Contribution Page Configuration{/ts}
{/htxt}
{htxt id="id-configure-contrib-pages"}
<table>
<tr>
<td><a href="{crmURL p='civicrm/admin/contribute/settings' q="reset=1&action=update&id=`$contributionPageID`"}" id="idContribPageSettings">&raquo; {ts}Title and Settings{/ts}</a></td>
<td>{ts}Use this form to edit the page title, financial type (e.g. donation, campaign contribution, etc.), goal amount, introduction, and status (active/inactive) for this online contribution page.{/ts}</td>
</tr>
<tr>
<td><a href="{crmURL p='civicrm/admin/contribute/amount' q="reset=1&action=update&id=`$contributionPageID`"}" id="idAmount">&raquo; {ts}Amount{/ts}</a></td>
<td>{ts}Use this form to configure Contribution Amount options. You can give contributors the ability to enter their own contribution amounts and/or provide a fixed list of amounts. For fixed amounts, you can enter a label for each 'level' of contribution (e.g. Friend, Sustainer, etc.). If you allow people to enter their own dollar amounts, you can also set minimum and maximum values. Depending on your choice of Payment Processor, you may be able to offer a recurring contribution option.{/ts}</td>
</tr>
<tr>
<td><a href="{crmURL p='civicrm/admin/contribute/membership' q="reset=1&action=update&id=`$contributionPageID`"}" id="idMembership">&raquo; {ts}Memberships{/ts}</a></td>
<td>{ts}Use this form to enable and configure a Membership Signup and Renewal section for this Online Contribution Page. If you're not using this page for membership signup, leave the Enabled box un-checked.{/ts}</td>
</tr>
<tr>
<td><a href="{crmURL p='civicrm/admin/contribute/thankYou' q="reset=1&action=update&id=`$contributionPageID`"}" id="idThanks">&raquo; {ts}Thank-you and Receipting{/ts}</a></td>
<td>{ts}Use this form to configure the thank-you message and receipting options. Contributors will see a confirmation and thank-you page after whenever an online contribution is successfully processed. You provide the content and layout of the thank-you section below. You also control whether an electronic receipt is automatically emailed to each contributor, and you can add a custom message to that receipt.{/ts}</td>
</tr>
<tr>
<td><a href="{crmURL p='civicrm/admin/contribute/friend' q="reset=1&action=update&id=`$contributionPageID`"}" id="idFriend">&raquo; {ts}Tell a Friend{/ts}</a></td>
<td>{ts}Tell a Friend gives your contributors an easy way to spread the word about this fundraising campaign. The contribution thank-you page will include a link to a form where they can enter their friends' email addresses, along with a personalized message. CiviCRM will record these solicitation activities, and will add the friends to your database.{/ts}</td>
</tr>
<tr>
<td><a href="{crmURL p='civicrm/admin/contribute/custom' q="reset=1&action=update&id=`$contributionPageID`"}" id="idCustom">&raquo; {ts}Include Profiles{/ts}</a></td>
<td>{ts}You may want to collect information from contributors beyond what is required to make a contribution. For example, you may want to inquire about volunteer availability and skills. Add any number of fields to your contribution form by selecting CiviCRM Profiles (collections of fields) to include at the beginning of the page, and/or at the bottom.{/ts}<br />
{capture assign=adminGroupURL}{crmURL p="civicrm/admin/uf/group" q="reset=1&action=browse"}{/capture}
{ts 1=$adminGroupURL}You can use existing CiviCRM Profiles on your page or create profile(s) specifically for use in Online Contribution pages. Go to <a href="%1"><strong>Administer CiviCRM Profiles</strong></a> if you need to review, modify or create profiles (you can come back at any time to select or update the Profile(s) used for this page).{/ts}</td>
</tr>
<tr>
<td><a href="{crmURL p='civicrm/admin/contribute/premium q="reset=1&action=update&id=`$contributionPageID`"}" id="idPremium">&raquo; {ts}Premiums{/ts}</a></td>
<td>{ts}Enable the Premiums section for this Online Contribution Page, and customize the title and introductory message (e.g ...in appreciation of your support, you will be able to select from a number of exciting thank-you gifts...). You can optionally provide a contact email address and/or phone number for inquiries. Then select and review the premiums that you want to offer on this contribution page.{/ts}</td>
</tr>
<tr>
<td><a href="{crmURL p='civicrm/admin/contribute/widget' q="reset=1&action=update&id=`$contributionPageID`"}" id="idWidget">&raquo; {ts}Widget{/ts}</a></td>
<td>{ts}Widgets allow you and your supporters to easily promote this fund-raising campaign. Widget code can be added to any web page. They will provide a real-time display of current contribution results, and a direct link to this contribution page.{/ts}</td>
</tr>
<tr>
<td><a href="{crmURL p='civicrm/admin/contribute/pcp' q="reset=1&action=update&id=`$contributionPageID`"}" id="idPCP">&raquo; {ts}Personal Campaign Pages{/ts}</a></td>
<td>{ts}Allow constituents to create their own personal fundraising pages linked to this contribution page.{/ts}</td>
</tr>
<tr>
<td><a href="{crmURL p='civicrm/contribute/transact' q="reset=1&action=preview&id=`$contributionPageID`"}" id="idTest">&raquo; {ts}Online Contribution{/ts}</a><br /> ({ts}Test-drive{/ts})</td>
<td>{ts}Test-drive the entire contribution process&mdash;including custom fields, confirmation, thank-you page, and receipting. Transactions will be directed to your payment processor's test server. No live financial transactions will be submitted. However, a contact record will be created or updated and a test contribution record will be saved to the database. Use obvious test contact names so you can review and delete these records as needed. Test contributions are not visible on the Contributions tab, but can be viewed by searching for 'Test Contributions' in the CiviContribute search form.{/ts}</td>
</tr>
<tr>
<td><a href="{crmURL p='civicrm/contribute/transact' q="reset=1&id=`$contributionPageID`"}" id="idLive">&raquo; {ts}Online Contribution{/ts}</a><br /> ({ts}Live{/ts})</td>
<td>{ts}Review your customized <strong>LIVE</strong> online contribution 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/contribute/transact" q="reset=1&id=`$contributionPageID`"}</strong></td>
</tr>
</table>
{/htxt}

View file

@ -0,0 +1,63 @@
{*
+--------------------------------------------------------------------+
| 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 |
+--------------------------------------------------------------------+
*}
{* TabHeader.tpl provides a tabbed interface well as title for current step *}
<div class="crm-actions-ribbon crm-contribpage-tab-actions-ribbon">
<ul id="actions">
<li><div id="crm-contribpage-links-wrapper">
{crmButton id="crm-contribpage-links-link" href="#" icon="bars"}{ts}Contribution Links{/ts}{/crmButton}
<div class="ac_results" id="crm-contribpage-links-list">
<div class="crm-contribpage-links-list-inner">
<ul>
<li><a class="crm-contribpage-contribution" href="{crmURL p='civicrm/contribute/add' q="reset=1&action=add&context=standalone"}">{ts}New Contribution{/ts}</a></li>
<li><a class="crm-contribution-test" href="{crmURL p='civicrm/contribute/transact' q="reset=1&action=preview&id=`$contributionPageID`"}">{ts}Online Contribution (Test-drive){/ts}</a></li>
<li><a class="crm-contribution-live" href="{crmURL p='civicrm/contribute/transact' q="reset=1&id=`$contributionPageID`" fe='true'}" target="_blank">{ts}Online Contribution (Live){/ts}</a></li>
</ul>
</div>
</div>
</div></li>
<div>
{help id="id-configure-contrib-pages"}
</div>
</ul>
<div class="clear"></div>
</div>
{include file="CRM/common/TabHeader.tpl"}
{literal}
<script>
cj('body').click(function() {
cj('#crm-contribpage-links-list').hide();
});
cj('#crm-contribpage-links-link').click(function(event) {
cj('#crm-contribpage-links-list').toggle();
event.stopPropagation();
return false;
});
</script>
{/literal}

View 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 |
+--------------------------------------------------------------------+
*}
{htxt id="id_thank-title"}
{ts}Thank-you and Receipting{/ts}
{/htxt}
{htxt id="id_thank"}
<p>{ts}Use this form to configure the thank-you message and receipting options for this online contribution page. Contributors will see a thank-you page whenever an online contribution is successfully processed. You provide the content and layout of the thank-you section below. You also control whether an electronic receipt is automatically emailed to each contributor, and you can add a custom message to that receipt.{/ts}</p>
{/htxt}
{htxt id="id_thankyou-title-title"}
{ts}Thank-you Page Title{/ts}
{/htxt}
{htxt id="id_thankyou-title"}
<p>{ts}This title will be displayed at the top of the thank-you / transaction confirmation page.{/ts}</p>
{/htxt}
{htxt id="id_thankyou-text-title"}
{ts}Thank-you Message{/ts}
{/htxt}
{htxt id="id_thankyou-text"}
<p>{ts}Enter text (and optional HTML layout) for the thank-you block that will appear at the top of the Thank-you page.{/ts}</p>
{/htxt}
{htxt id="id_footer-text-title"}
{ts}Thank-you Page Footer{/ts}
{/htxt}
{htxt id="id_footer-text"}
<p>{ts}Enter link(s) and/or text that you want to appear at the bottom of the thank-you page. You can use this content area to encourage contributors to visit a tell-a-friend page or take some other action.{/ts}<p>
<p>{ts}NOTE: Social media links will be automatically included if you have enabled 'Social media sharing' for this page (see the 'Title' tab).{/ts}</p>
{/htxt}
{capture assign=msgUrl}{crmURL p='civicrm/admin/messageTemplates' q="reset=1"}{/capture}
{htxt id="id_is-email-receipt-title"}
{ts}Automatic Receipting{/ts}
{/htxt}
{htxt id="id_is-email-receipt"}
<p>{ts}Check this box if you want an electronic receipt to be sent automatically to the contributor's email address.{/ts}</p>
<p>{ts 1=$msgUrl}The "Contributions - Receipt (on-line)" System Workflow Message Template provides content and formatting for the receipt.
You can modify it from <a href="%1">Administer > Communications > Message Templates > System Workflow Messages</a>. You can also provide
specific messaging for contributions received via this contribution page using the "Receipt Message" field below.{/ts}</p>
{/htxt}
{htxt id="id_receipt-from-name-title"}
{ts}Name of Receipt Sender{/ts}
{/htxt}
{htxt id="id_receipt-from-name"}
<p>{ts}Enter the FROM name to be used in receipt emails.{/ts}</p>
{/htxt}
{htxt id="id_receipt-from-email-title"}
{ts}Email Address of Receipt Sender{/ts}
{/htxt}
{htxt id="id_receipt-from-email"}
<p>{ts}Enter the FROM email address to be used in receipt emails.{/ts}</p>
{/htxt}
{htxt id="id_receipt-text-title"}
{ts}Additional Receipt Message{/ts}
{/htxt}
{htxt id="id_receipt-text"}
<p>{ts}Enter a message you want included at the beginning of emailed receipts. This message will be inserted at the top of the "Contributions - Receipt (on-line)" System Workflow Message.{/ts}</p>
<p>{ts}IMPORTANT: Keep in mind that this message will be included in ALL of the following types of receipts related to this online contribution page{/ts}:
<ul>
<li>{ts}One-time online contributions{/ts}</li>
<li>{ts}Recurring online contributions (if enabled for this page){/ts}</li>
<li>{ts}Automatically renewing membership payments (if enabled for this page){/ts}</li>
</ul>
</p>
<p>{ts}NOTE: The text entered here will be used for both TEXT and HTML versions of receipt emails so we do not recommend including HTML tags / formatting here.{/ts}</p>
{/htxt}
{htxt id="id_receipt-cc-title"}
{ts}CC Receipts{/ts}
{/htxt}
{htxt id="id_receipt-cc"}
<p>{ts}If you want member(s) of your organization to receive a carbon copy of each emailed receipt, enter one or more email addresses here. Multiple email addresses should be separated by a comma (e.g. jane@example.org, paula@example.org).{/ts}</p>
{/htxt}
{htxt id="id_receipt-bcc-title"}
{ts}BCC Receipts{/ts}
{/htxt}
{htxt id="id_receipt-bcc"}
<p>{ts}If you want member(s) of your organization to receive a BLIND carbon copy of each emailed receipt, enter one or more email addresses here. Multiple email addresses should be separated by a comma (e.g. jane@example.org, paula@example.org).{/ts}</p>
{/htxt}

View file

@ -0,0 +1,94 @@
{*
+--------------------------------------------------------------------+
| CiviCRM version 4.7 |
+--------------------------------------------------------------------+
| Copyright CiviCRM LLC (c) 2004-2017 |
+--------------------------------------------------------------------+
| This file is a part of CiviCRM. |
| |
| CiviCRM is free software; you can copy, modify, and distribute it |
| under the terms of the GNU Affero General Public License |
| Version 3, 19 November 2007 and the CiviCRM Licensing Exception. |
| |
| CiviCRM is distributed in the hope that it will be useful, but |
| WITHOUT ANY WARRANTY; without even the implied warranty of |
| MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
| See the GNU Affero General Public License for more details. |
| |
| You should have received a copy of the GNU Affero General Public |
| License and the CiviCRM Licensing Exception along |
| with this program; if not, contact CiviCRM LLC |
| at info[AT]civicrm[DOT]org. If you have questions about the |
| GNU Affero General Public License or the licensing of CiviCRM, |
| see the CiviCRM license FAQ at http://civicrm.org/licensing |
+--------------------------------------------------------------------+
*}
{crmRegion name="contribute-form-contributionpage-thankyou-main"}
<div class="crm-block crm-form-block crm-contribution-contributionpage-thankyou-form-block">
<div class="help">
<p>{ts}Use this form to configure the thank-you message and receipting options.{/ts} {help id="id_thank"}</p>
</div>
<div class="crm-submit-buttons">{include file="CRM/common/formButtons.tpl" location="top"}</div>
<table class="form-layout">
<tr class="crm-contribution-contributionpage-thankyou-form-block-thankyou_title">
<td class="label">{$form.thankyou_title.label}{if $action == 2}{include file='CRM/Core/I18n/Dialog.tpl' table='civicrm_contribution_page' field='thankyou_title' id=$contributionPageID}{/if} {help id="id_thankyou-title"}</td>
<td class="html-adjust">{$form.thankyou_title.html}
</td>
</tr>
<tr class="crm-contribution-contributionpage-thankyou-form-block-thankyou_text">
<td class="label">{$form.thankyou_text.label}{if $action == 2}{include file='CRM/Core/I18n/Dialog.tpl' table='civicrm_contribution_page' field='thankyou_text' id=$contributionPageID}{/if}<br />{help id="id_thankyou-text"}</td>
<td class="html-adjust">{$form.thankyou_text.html}<br /></td>
</tr>
<tr class="crm-contribution-contributionpage-thankyou-form-block-thankyou_footer">
<td class="label">{$form.thankyou_footer.label}{if $action == 2}{include file='CRM/Core/I18n/Dialog.tpl' table='civicrm_contribution_page' field='thankyou_footer' id=$contributionPageID}{/if} {help id="id_footer-text"}</td>
<td class="html-adjust">{$form.thankyou_footer.html}<br /></td>
</tr>
<tr class="crm-contribution-contributionpage-thankyou-form-block-is_email_receipt">
<td class="label"></td>
<td class="html-adjust">{$form.is_email_receipt.html}{$form.is_email_receipt.label} {help id="id_is-email-receipt"}
</td>
</tr>
</table>
<table id="receiptDetails" class="form-layout">
<tr class="crm-contribution-contributionpage-thankyou-form-block-receipt_from_name">
<td class="label">{$form.receipt_from_name.label}{if $action == 2}{include file='CRM/Core/I18n/Dialog.tpl' table='civicrm_contribution_page' field='receipt_from_name' id=$contributionPageID}{/if} {help id="id_receipt-from-name"}
</td>
<td class="html-adjust">{$form.receipt_from_name.html}
</td>
</tr>
<tr class="crm-contribution-contributionpage-thankyou-form-block-receipt_from_email">
<td class="label">{$form.receipt_from_email.label} <span class="crm-marker" title="{ts}This field is required.{/ts}">*</span> {help id="id_receipt-from-email"}</td>
<td class="html-adjust">{$form.receipt_from_email.html}</td>
</tr>
<tr class="crm-contribution-contributionpage-thankyou-form-block-receipt_text">
<td class="label">{$form.receipt_text.label}{if $action == 2}{include file='CRM/Core/I18n/Dialog.tpl' table='civicrm_contribution_page' field='receipt_text' id=$contributionPageID}{/if} {help id="id_receipt-text"}</td>
<td class="html-adjust">{$form.receipt_text.html}<br /></td>
</tr>
<tr class="crm-contribution-contributionpage-thankyou-form-block-cc_receipt">
<td class="label">{$form.cc_receipt.label} {help id="id_receipt-cc"}</td>
<td class="html-adjust">{$form.cc_receipt.html}</td>
</tr>
<tr class="crm-contribution-contributionpage-thankyou-form-block-bcc_receipt">
<td class="label">{$form.bcc_receipt.label} {help id="id_receipt-bcc"}</td>
<td class="html-adjust">{$form.bcc_receipt.html}</td>
</tr>
</table>
<div class="crm-submit-buttons">{include file="CRM/common/formButtons.tpl" location="bottom"}</div>
</div>
<script type="text/javascript">
showReceipt();
{literal}
function showReceipt() {
var checkbox = document.getElementsByName("is_email_receipt");
if (checkbox[0].checked) {
document.getElementById("receiptDetails").style.display = "block";
} else {
document.getElementById("receiptDetails").style.display = "none";
}
}
{/literal}
</script>
{/crmRegion}
{crmRegion name="contribute-form-contributionpage-thankyou-post}
{/crmRegion}

View file

@ -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-intro-title"}
{ts}Widget{/ts}
{/htxt}
{htxt id="id-intro"}
<p>{ts}Enabling a widget for this contribution page allows you and your supporters to easily promote a fund-raising campaign by embedding a chunk of dynamic content in any web page. CiviContribute widgets display real-time progress toward your fund-raising goals, and include a 'Contribute' button which links people directly to the associated online contribution page.{/ts}</p>
<p>{ts}Use the form below to configure a Widget Title (with optional logo), your contribute button text, a short description of this fund-raising campaign, and a link to your organizations home page (for folks who want to learn more). You can also modify the default color-scheme by expanding the 'Edit Widget Colors' section of the form.{/ts}</p>
<p>{ts}Check the 'Enable Widget' box. Then review and modify the form values as needed. Save your settings and preview the current appearance of the widget by clicking the 'Save and Preview' button. Then 'Select' and copy the 'Widget Code' into any web page.{/ts}</p>
<p>{ts}If this campaign has specific start and end dates, embedded widgets will display the link to your Home Page instead of the Contribute button once the campaign is over.{/ts}</p>
{/htxt}

View file

@ -0,0 +1,142 @@
{*
+--------------------------------------------------------------------+
| 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 |
+--------------------------------------------------------------------+
*}
{crmRegion name="contribute-form-contributionpage-widget-main"}
<h3>{ts}Configure Widget{/ts}</h3>
{if $showStatus}
<div class="messages status no-popup">
<div class="icon inform-icon"></div>
{ts}It looks like you may have posted and / or distributed the flash version of the Contribution widget. We won't be supporting the flash version in next release. You should try and get all sites using the flash widget to update to the improved HTML widget code below as soon as possible.{/ts}
</div>
{/if}
<div id="form" class="crm-block crm-form-block crm-contribution-contributionpage-widget-form-block">
<div class="help">
{ts}CiviContribute widgets allow you and your supporters to easily promote this fund-raising campaign. Widget code can be added to any web page. It will provide a real-time display of current contribution results and a direct link to this contribution page.{/ts} {help id="id-intro"}
</div>
<div class="crm-submit-buttons">{include file="CRM/common/formButtons.tpl" location="top"}</div>
<table class="form-layout-compressed">
<tr class="crm-contribution-contributionpage-widget-form-block-is_active"><td style="width: 12em;">&nbsp;</td><td style="font-size: 10pt;">{$form.is_active.html}&nbsp;{$form.is_active.label}</td></tr>
</table>
<div class="spacer"></div>
<div id="widgetFields">
<table class="form-layout-compressed">
<tr class="crm-contribution-contributionpage-widget-form-block-title"><td class="label">{$form.title.label}<span class="crm-marker"> *</span></td><td>{$form.title.html}</td></tr>
<tr class="crm-contribution-form-block-url_logo"><td class="label">{$form.url_logo.label}</span></td><td>{$form.url_logo.html}</td></tr>
<tr class="crm-contribution-contributionpage-widget-form-block-button_title"><td class="label">{$form.button_title.label}</td><td>{$form.button_title.html}</td></tr>
<tr class="crm-contribution-contributionpage-widget-form-block-about"><td class="label">{$form.about.label}<span class="crm-marker"> *</span></td><td>{$form.about.html}
<br /><span class="description">{ts}Enter content for the about message. You may include HTML formatting tags. You can also include images, as long as they are already uploaded to a server&mdash;reference them using complete URLs.{/ts}</span>
</td></tr>
</table>
<div id="id-get_code">
<fieldset>
<legend>{ts}Preview Widget and Get Code{/ts}</legend>
<div class="col1">
{if $widget_id}
<div class="description">
{ts}Click <strong>Save & Preview</strong> to save any changes to your settings, and preview the widget again on this page.{/ts}
</div>
{include file="CRM/Contribute/Page/Widget.tpl" widgetId=$widget_id cpageId=$cpageId}<br />
{else}
<div class="description">
{ts}Click <strong>Save & Preview</strong> to save your settings and preview the widget on this page.{/ts}<br />
</div>
{/if}
<div style="text-align: center;width:260px">{$form._qf_Widget_refresh.html}</div>
</div>
<div class="col2">
{* Include "get widget code" section if widget has been created for this page and is_active. *}
{if $widget_id}
<div class="description">
{ts}Add this widget to any web page by copying and pasting the code below.{/ts}
</div>
<textarea rows="8" cols="50" name="widget_code" id="widget_code">{include file="CRM/Contribute/Page/Widget.tpl" widgetId=$widget_id cpageId=$cpageId}</textarea>
<br />
<strong><a href="#" onclick="Widget.widget_code.select(); return false;">&raquo; {ts}Select Code{/ts}</a></strong>
{else}
<div class="description">
{ts}The code for adding this widget to web pages will be displayed here after you click <strong>Save and Preview</strong>.{/ts}
</div>
{/if}
</div>
</fieldset>
</div>
<div class="crm-accordion-wrapper collapsed crm-case-roles-block">
<div class="crm-accordion-header">
{ts}Edit Widget Colors{/ts}
</div><!-- /.crm-accordion-header -->
<div class="crm-accordion-body">
<div class="description">
{ts}Enter colors in hexadecimal format prefixed with <em>#</em>. EXAMPLE: <em>#FF0000</em> = Red. You can do a web search on 'hexadecimal colors' to find a chart of color codes.{/ts}
</div>
<table class="form-layout-compressed">
{foreach from=$colorFields item=field key=fieldName}
<tr><td class="label">{$form.$fieldName.label}<span class="crm-marker"> *</span></td><td>{$form.$fieldName.html}</td></tr>
{/foreach}
</table>
</div><!-- /.crm-accordion-body -->
</div><!-- /.crm-accordion-wrapper -->
</div>
<div id="crm-submit-buttons">
<table id="preview" class"form-layout-compressed">
<tr>
<td>{$form._qf_Widget_refresh.html}</td>
</td>
</tr>
</table>
</div>
<div class="crm-submit-buttons">{include file="CRM/common/formButtons.tpl" location="bottom"}</div>
</div>
{literal}
<script type="text/javascript">
var is_act = document.getElementsByName('is_active');
if ( ! is_act[0].checked) {
cj('#widgetFields').hide();
cj('#preview').hide();
}
function widgetBlock(chkbox) {
if (chkbox.checked) {
cj('#widgetFields').show();
cj('#preview').show();
return;
} else {
cj('#widgetFields').hide();
cj('#preview').hide();
return;
}
}
</script>
{/literal}
{/crmRegion}
{crmRegion name="contribute-form-contributionpage-widget-post}
{/crmRegion}

View file

@ -0,0 +1,367 @@
{*
+--------------------------------------------------------------------+
| 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-content-block crm-contribution-view-form-block">
<div class="action-link">
<div class="crm-submit-buttons">
{if (call_user_func(array('CRM_Core_Permission','check'), 'edit contributions') && call_user_func(array('CRM_Core_Permission', 'check'), "edit contributions of type $financial_type") && $canEdit) ||
(call_user_func(array('CRM_Core_Permission','check'), 'edit contributions') && $noACL)}
{assign var='urlParams' value="reset=1&id=$id&cid=$contact_id&action=update&context=$context"}
{if ( $context eq 'fulltext' || $context eq 'search' ) && $searchKey}
{assign var='urlParams' value="reset=1&id=$id&cid=$contact_id&action=update&context=$context&key=$searchKey"}
{/if}
<a class="button" href="{crmURL p='civicrm/contact/view/contribution' q=$urlParams}" accesskey="e"><span>
<i class="crm-i fa-pencil"></i> {ts}Edit{/ts}</span>
</a>
{if $paymentButtonName}
<a class="button" href='{crmURL p="civicrm/payment" q="action=add&reset=1&component=`$component`&id=`$id`&cid=`$contact_id`"}'><i class="crm-i fa-plus-circle"></i> {ts}{$paymentButtonName}{/ts}</a>
{/if}
{/if}
{if (call_user_func(array('CRM_Core_Permission','check'), 'delete in CiviContribute') && call_user_func(array('CRM_Core_Permission', 'check'), "delete contributions of type $financial_type") && $canDelete) || (call_user_func(array('CRM_Core_Permission','check'), 'delete in CiviContribute') && $noACL)}
{assign var='urlParams' value="reset=1&id=$id&cid=$contact_id&action=delete&context=$context"}
{if ( $context eq 'fulltext' || $context eq 'search' ) && $searchKey}
{assign var='urlParams' value="reset=1&id=$id&cid=$contact_id&action=delete&context=$context&key=$searchKey"}
{/if}
<a class="button" href="{crmURL p='civicrm/contact/view/contribution' q=$urlParams}"><span>
<i class="crm-i fa-trash"></i> {ts}Delete{/ts}</span>
</a>
{/if}
{include file="CRM/common/formButtons.tpl" location="top"}
{assign var='pdfUrlParams' value="reset=1&id=$id&cid=$contact_id"}
{assign var='emailUrlParams' value="reset=1&id=$id&cid=$contact_id&select=email"}
{if $invoicing}
<div class="css_right">
<a class="button no-popup" href="{crmURL p='civicrm/contribute/invoice' q=$pdfUrlParams}">
<i class="crm-i fa-print"></i>
{if $contribution_status != 'Refunded' && $contribution_status != 'Cancelled' }
{ts}Print Invoice{/ts}</a>
{else}
{ts}Print Invoice and Credit Note{/ts}</a>
{/if}
<a class="button" href="{crmURL p='civicrm/contribute/invoice/email' q=$emailUrlParams}">
<i class="crm-i fa-paper-plane"></i>
{ts}Email Invoice{/ts}</a>
</div>
{/if}
</div>
</div>
<table class="crm-info-panel">
<tr>
<td class="label">{ts}From{/ts}</td>
<td class="bold">{$displayName}</td>
</tr>
<tr>
<td class="label">{ts}Financial Type{/ts}</td>
<td>{$financial_type}{if $is_test} {ts}(test){/ts} {/if}</td>
</tr>
{if $displayLineItems}
<tr>
<td class="label">{ts}Contribution Amount{/ts}</td>
<td>{include file="CRM/Price/Page/LineItem.tpl" context="Contribution"}
{if $contribution_recur_id}
<strong>{ts}Recurring Contribution{/ts}</strong>
<br/>
{ts}Installments{/ts}: {if $recur_installments}{$recur_installments}{else}{ts}(ongoing){/ts}{/if}, {ts}Interval{/ts}: {$recur_frequency_interval} {$recur_frequency_unit}(s)
{/if}
</td>
</tr>
{else}
<tr>
<td class="label">{ts}Total Amount{/ts}</td>
<td><strong><a class="nowrap bold crm-expand-row" title="{ts}view payments{/ts}"
href="{crmURL p='civicrm/payment' q="view=transaction&component=contribution&action=browse&cid=`$contact_id`&id=`$contribution_id`&selector=1"}">
&nbsp; {$total_amount|crmMoney:$currency}
</strong></a>&nbsp;
{if $contribution_recur_id}
<strong>{ts}Recurring Contribution{/ts}</strong>
<br/>
{ts}Installments{/ts}: {if $recur_installments}{$recur_installments}{else}{ts}(ongoing){/ts}{/if}, {ts}Interval{/ts}: {$recur_frequency_interval} {$recur_frequency_unit}(s)
{/if}
</td>
</tr>
{/if}
{if $invoicing && $tax_amount}
<tr>
<td class="label">{ts 1=$taxTerm}Total %1 Amount{/ts}</td>
<td>{$tax_amount|crmMoney:$currency}</td>
</tr>
{/if}
{if $non_deductible_amount}
<tr>
<td class="label">{ts}Non-deductible Amount{/ts}</td>
<td>{$non_deductible_amount|crmMoney:$currency}</td>
</tr>
{/if}
{if $fee_amount}
<tr>
<td class="label">{ts}Fee Amount{/ts}</td>
<td>{$fee_amount|crmMoney:$currency}</td>
</tr>
{/if}
{if $net_amount}
<tr>
<td class="label">{ts}Net Amount{/ts}</td>
<td>{$net_amount|crmMoney:$currency}</td>
</tr>
{/if}
{if $isDeferred AND $revenue_recognition_date}
<tr>
<td class="label">{ts}Revenue Recognition Date{/ts}</td>
<td>{$revenue_recognition_date|crmDate:"%B, %Y"}</td>
</tr>
{/if}
<tr>
<td class="label">{ts}Received{/ts}</td>
<td>{if $receive_date}{$receive_date|crmDate}{else}({ts}not available{/ts}){/if}</td>
</tr>
{if $to_financial_account }
<tr>
<td class="label">{ts}Received Into{/ts}</td>
<td>{$to_financial_account}</td>
</tr>
{/if}
<tr>
<td class="label">{ts}Contribution Status{/ts}</td>
<td {if $contribution_status_id eq 3} class="font-red bold"{/if}>{$contribution_status}
{if $contribution_status_id eq 2} {if $is_pay_later}: {ts}Pay Later{/ts} {else} : {ts}Incomplete Transaction{/ts} {/if}{/if}</td>
</tr>
{if $cancel_date}
<tr>
<td class="label">{ts}Cancelled / Refunded Date{/ts}</td>
<td>{$cancel_date|crmDate}</td>
</tr>
{if $cancel_reason}
<tr>
<td class="label">{ts}Cancellation / Refund Reason{/ts}</td>
<td>{$cancel_reason}</td>
</tr>
{/if}
{if $refund_trxn_id}
<tr>
<td class="label">{ts}Refund Transaction ID{/ts}</td>
<td>{$refund_trxn_id}</td>
</tr>
{/if}
{/if}
<tr>
<td class="label">{ts}Payment Method{/ts}</td>
<td>{$payment_instrument}{if $payment_processor_name} ({$payment_processor_name}){/if}</td>
</tr>
{if $payment_instrument eq 'Check'|ts}
<tr>
<td class="label">{ts}Check Number{/ts}</td>
<td>{$check_number}</td>
</tr>
{/if}
<tr>
<td class="label">{ts}Source{/ts}</td>
<td>{$source}</td>
</tr>
{if $campaign}
<tr>
<td class="label">{ts}Campaign{/ts}</td>
<td>{$campaign}</td>
</tr>
{/if}
{if $contribution_page_title}
<tr>
<td class="label">{ts}Online Contribution Page{/ts}</td>
<td>{$contribution_page_title}</td>
</tr>
{/if}
{if $receipt_date}
<tr>
<td class="label">{ts}Receipt Sent{/ts}</td>
<td>{$receipt_date|crmDate}</td>
</tr>
{/if}
{foreach from=$note item="rec"}
{if $rec }
<tr>
<td class="label">{ts}Note{/ts}</td>
<td>{$rec}</td>
</tr>
{/if}
{/foreach}
{if $trxn_id}
<tr>
<td class="label">{ts}Transaction ID{/ts}</td>
<td>{$trxn_id}</td>
</tr>
{/if}
{if $invoice_number}
<tr>
<td class="label">{ts}Invoice Number{/ts}</td>
<td>{$invoice_number}&nbsp;</td>
</tr>
{/if}
{if $invoice_id}
<tr>
<td class="label">{ts}Invoice Reference{/ts}</td>
<td>{$invoice_id}&nbsp;</td>
</tr>
{/if}
{if $thankyou_date}
<tr>
<td class="label">{ts}Thank-you Sent{/ts}</td>
<td>{$thankyou_date|crmDate}</td>
</tr>
{/if}
{if $addRecordPayment}
<tr>
<td class='label'>{ts}Fees{/ts}</td>
<td id='payment-info'></td>
</tr>
{/if}
</table>
{if count($softContributions)} {* We show soft credit name with PCP section if contribution is linked to a PCP. *}
<div class="crm-accordion-wrapper crm-soft-credit-pane">
<div class="crm-accordion-header">
{ts}Soft Credit{/ts}
</div>
<div class="crm-accordion-body">
<table class="crm-info-panel crm-soft-credit-listing">
{foreach from=$softContributions item="softCont"}
<tr>
<td>
<a href="{crmURL p="civicrm/contact/view" q="reset=1&cid=`$softCont.contact_id`"}"
title="{ts}View contact record{/ts}">{$softCont.contact_name}
</a>
</td>
<td>{$softCont.amount|crmMoney:$currency}
{if $softCont.soft_credit_type_label}
({$softCont.soft_credit_type_label})
{/if}
</td>
</tr>
{/foreach}
</table>
</div>
</div>
{/if}
{if $premium}
<div class="crm-accordion-wrapper ">
<div class="crm-accordion-header">
{ts}Premium Information{/ts}
</div>
<div class="crm-accordion-body">
<table class="crm-info-panel">
<td class="label">{ts}Premium{/ts}</td>
<td>{$premium}</td>
<td class="label">{ts}Option{/ts}</td>
<td>{$option}</td>
<td class="label">{ts}Fulfilled{/ts}</td>
<td>{$fulfilled|truncate:10:''|crmDate}</td>
</table>
</div>
</div>
{/if}
{if $pcp_id}
<div id='PCPView' class="crm-accordion-wrapper ">
<div class="crm-accordion-header">
{ts}Personal Campaign Page Contribution Information{/ts}
</div>
<div class="crm-accordion-body">
<table class="crm-info-panel">
<tr>
<td class="label">{ts}Personal Campaign Page{/ts}</td>
<td><a href="{crmURL p="civicrm/pcp/info" q="reset=1&id=`$pcp_id`"}">{$pcp_title}</a><br/>
<span class="description">{ts}Contribution was made through this personal campaign page.{/ts}</span>
</td>
</tr>
<tr>
<td class="label">{ts}Soft Credit To{/ts}</td>
<td><a href="{crmURL p="civicrm/contact/view" q="reset=1&cid=`$pcp_soft_credit_to_id`"}" id="view_contact"
title="{ts}View contact record{/ts}">{$pcp_soft_credit_to_name}</a></td>
</tr>
<tr>
<td class="label">{ts}In Public Honor Roll?{/ts}</td>
<td>{if $pcp_display_in_roll}{ts}Yes{/ts}{else}{ts}No{/ts}{/if}</td>
</tr>
{if $pcp_roll_nickname}
<tr>
<td class="label">{ts}Honor Roll Name{/ts}</td>
<td>{$pcp_roll_nickname}</td>
</tr>
{/if}
{if $pcp_personal_note}
<tr>
<td class="label">{ts}Personal Note{/ts}</td>
<td>{$pcp_personal_note}</td>
</tr>
{/if}
</table>
</div>
</div>
{/if}
{include file="CRM/Custom/Page/CustomDataView.tpl"}
{if $billing_address}
<fieldset>
<legend>{ts}Billing Address{/ts}</legend>
<div class="form-item">
{$billing_address|nl2br}
</div>
</fieldset>
{/if}
{if $addRecordPayment}
{include file="CRM/Contribute/Page/PaymentInfo.tpl" show='payments'}
{/if}
<div class="crm-submit-buttons">
{if (call_user_func(array('CRM_Core_Permission','check'), 'edit contributions') && call_user_func(array('CRM_Core_Permission', 'check'), "edit contributions of type $financial_type") && $canEdit) ||
(call_user_func(array('CRM_Core_Permission','check'), 'edit contributions') && $noACL)}
{assign var='urlParams' value="reset=1&id=$id&cid=$contact_id&action=update&context=$context"}
{if ( $context eq 'fulltext' || $context eq 'search' ) && $searchKey}
{assign var='urlParams' value="reset=1&id=$id&cid=$contact_id&action=update&context=$context&key=$searchKey"}
{/if}
<a class="button" href="{crmURL p='civicrm/contact/view/contribution' q=$urlParams}" accesskey="e"><span><i class="crm-i fa-pencil"></i> {ts}Edit{/ts}</span></a>
{if $paymentButtonName}
<a class="button" href='{crmURL p="civicrm/payment" q="action=add&reset=1&component=`$component`&id=`$id`&cid=`$contact_id`"}'><i class="crm-i fa-plus-circle"></i> {ts}{$paymentButtonName}{/ts}</a>
{/if}
{/if}
{if (call_user_func(array('CRM_Core_Permission','check'), 'delete in CiviContribute') && call_user_func(array('CRM_Core_Permission', 'check'), "delete contributions of type $financial_type") && $canDelete) || (call_user_func(array('CRM_Core_Permission','check'), 'delete in CiviContribute') && $noACL)}
{assign var='urlParams' value="reset=1&id=$id&cid=$contact_id&action=delete&context=$context"}
{if ( $context eq 'fulltext' || $context eq 'search' ) && $searchKey}
{assign var='urlParams' value="reset=1&id=$id&cid=$contact_id&action=delete&context=$context&key=$searchKey"}
{/if}
<a class="button" href="{crmURL p='civicrm/contact/view/contribution' 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>
{crmScript file='js/crm.expandRow.js'}

View file

@ -0,0 +1,181 @@
{*
+--------------------------------------------------------------------+
| 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 premium *}
<div class="crm-block crm-form-block crm-contribution-manage_premiums-form-block">
{if $action eq 8}
<div class="messages status no-popup">
<div class="icon inform-icon"></div>
{ts}Are you sure you want to delete this premium?{/ts} {ts}This action cannot be undone.{/ts} {ts}This will also remove the premium from any contribution pages that currently include it.{/ts}
</div>
{elseif $action eq 1024}
{include file="CRM/Contribute/Form/Contribution/PremiumBlock.tpl" context="previewPremium"}
{else}
<div class="crm-submit-buttons">{include file="CRM/common/formButtons.tpl" location="top"}</div>
{crmRegion name="contribute-form-managepremiums-standard-fields"}
<table class="form-layout-compressed">
<tr class="crm-contribution-form-block-name">
<td class="label">{$form.name.label} {if $action == 2}{include file='CRM/Core/I18n/Dialog.tpl' table='civicrm_product' field='name' id=$productId}{/if}
</td>
<td class="html-adjust">{$form.name.html}<br />
<span class="description">{ts}Name of the premium (product, service, subscription, etc.) as it will be displayed to contributors.{/ts}</span>
</td>
</tr>
<tr>
<td class="label">{$form.description.label} {if $action == 2}{include file='CRM/Core/I18n/Dialog.tpl' table='civicrm_product' field='description' id=$productId}{/if}
</td>
<td class="html-adjust">{$form.description.html}
</td>
<tr class="crm-contribution-form-block-sku">
<td class="label">{$form.sku.label}
</td>
<td class="html-adjust">{$form.sku.html}<br />
<span class="description">{ts}Optional product SKU or code. If used, this value will be included in contributor receipts.{/ts}</span>
</td>
</tr>
<tr class="crm-contribution-form-block-imageOption" >
<td class="label">{$form.imageOption.label}</td>
<td>
<fieldset><div class="description">
<p>{ts}You can give this premium a picture that will be displayed on the contribution page. Both a 50 x 50 pixel thumbnail image and a 200 x 200 pixel larger image will be displayed. Images must be in GIF, JPEG, or PNG format.{/ts}</p>
<p>{ts}You can upload an image from your computer OR enter a URL for an image already on the Web. If you chose to upload an image file, a 'thumbnail' version will be automatically created for you. If you don't have an image available at this time, you may also choose to display a 'No Image Available' icon by selecting the 'default image'.{/ts}</p>
</div>
<table class="form-layout-compressed">
{if $thumbnailUrl}<tr class="odd-row"><td class="describe-image" colspan="2"><strong>Current Image Thumbnail</strong><br /><img src="{$thumbnailUrl}" /></td></tr>{/if}
<tr class="crm-contribution-form-block-imageOption"><td>{$form.imageOption.image.html}</td><td>{$form.uploadFile.html}</td></tr>
<tr class="crm-contribution-form-block-imageOption-thumbnail"><td colspan="2">{$form.imageOption.thumbnail.html}</td></tr>
<tr id="imageURL"{if $action neq 2} class="hiddenElement"{/if}>
<td class="label">{$form.imageUrl.label}</td><td>{$form.imageUrl.html|crmAddClass:huge}</td>
</tr>
<tr id="thumbnailURL"{if $action neq 2} class="hiddenElement"{/if}>
<td class="label">{$form.thumbnailUrl.label}</td><td>{$form.thumbnailUrl.html|crmAddClass:huge}</td>
</tr>
<tr><td colspan="2">{$form.imageOption.default_image.html}</td></tr>
<tr><td colspan="2">{$form.imageOption.noImage.html}</td></tr>
</table>
</fieldset>
</td>
</tr>
<tr class="crm-contribution-form-block-min_contribution">
<td class="label">{$form.min_contribution.label}</td>
<td class="html-adjust">{$form.min_contribution.html|crmMoney}<br />
<span class="description">{ts}The minimum contribution amount required to be eligible to select this premium. If you want to offer it to all contributors regardless of contribution amount, enter '0'. If display of minimum contribution amounts is enabled then this text is displayed:{/ts} <em>{ts}(Contribute at least X to be eligible for this gift.){/ts}</em></span>
</td>
</tr>
<tr class="crm-contribution-form-block-price">
<td class="label">{$form.price.label}</td>
<td class="html-adjust">{$form.price.html|crmMoney}<br />
<span class="description">{ts}The market value of this premium (e.g. retail price). For tax-deductible contributions, this amount will be used to set the non-deductible amount in the contribution record and receipt.{/ts}</span>
</td>
</tr>
<tr class="crm-contribution-form-block-cost">
<td class="label">{$form.cost.label}</td>
<td class="html-adjust">{$form.cost.html|crmMoney}<br />
<span class="description">{ts}You may optionally record the actual cost of this premium to your organization. This may be useful when evaluating net return for this incentive.{/ts}</span>
</td>
</tr>
<tr class="crm-contribution-form-block-financial_type">
<td class="label">{$form.financial_type_id.label}</td>
<td class="html-adjust">
{if !$financialType}
{capture assign=ftUrl}{crmURL p='civicrm/admin/financial/financialType' q="reset=1"}{/capture}
{ts 1=$ftUrl}There are no financial types configured with linked 'Cost of Sales Premiums' and 'Premiums Inventory Account' accounts. If you want to generate accounting transactions which track the cost of premiums used <a href='%1'>click here</a> to configure financial types and accounts.{/ts}
{else}
{$form.financial_type_id.html}<br />
<span class="description">{ts}Select a financial type that is linked to both a 'Cost of Sales Premiums Account' and a 'Premiums Inventory Account' if you want to generate accounting transactions to track the cost of premiums used.{/ts}</span>
{/if}
</td>
</tr>
<tr class="crm-contribution-form-block-options">
<td class="label">{$form.options.label} {if $action == 2}{include file='CRM/Core/I18n/Dialog.tpl' table='civicrm_product' field='options' id=$productId}{/if}</td>
<td class="html-adjust">{$form.options.html}<br />
<span class="description">{ts}Enter a comma-delimited list of color, size, etc. options for the product if applicable. Contributors will be presented a drop-down menu of these options when they select this product.{/ts}</span>
</td>
</tr>
<tr class="crm-contribution-form-block-is_active">
<td class="label">{$form.is_active.label}</td>
<td class="html-adjust">{$form.is_active.html}</td>
</tr>
</table>
{/crmRegion}
{crmRegion name="contribute-form-managepremiums-other-fields"}
<fieldset id="time-delimited" class="crm-collapsible {if empty($showSubscriptions)}collapsed{/if}">
<legend class="collapsible-title">{ts}Subscription or Service Settings{/ts}</legend>
<div>
<table class="form-layout-compressed">
<tr class="crm-contribution-form-block-period_type">
<td class="label">{$form.period_type.label}</td>
<td class="html-adjust">{$form.period_type.html}<br />
<span class="description">{ts}Select 'Rolling' if the subscription or service starts on the current day. Select 'Fixed' if the start date is a fixed month and day within the current year (set this value in the next field).{/ts}</span>
</td>
</tr>
<tr class="crm-contribution-form-block-fixed_period_start_day">
<td class="label">{$form.fixed_period_start_day.label}</td>
<td class="html-adjust">{$form.fixed_period_start_day.html}<br />
<span class="description">{ts}Month and day (MMDD) on which a fixed period subscription or service will start. EXAMPLE: A fixed period subscription with Start Day set to 0101 means that the subscription period would be 1/1/06 - 12/31/06 for anyone signing up during 2006.{/ts}</span>
</td>
</tr>
<tr class="crm-contribution-form-block-duration_interval">
<td class="label">{$form.duration_interval.label}</td>
<td class="html-adjust">{$form.duration_interval.html} &nbsp; {$form.duration_unit.html}<br />
<span class="description">{ts}Duration of subscription or service (e.g. 12-month subscription).{/ts}</span>
</td>
</tr>
<tr class="crm-contribution-form-block-frequency_interval">
<td class="label">{$form.frequency_interval.label}</td>
<td class="html-adjust">{$form.frequency_interval.html} &nbsp; {$form.frequency_unit.html}<br />
<span class="description">{ts}Frequency of subscription or service (e.g. journal delivered every two months).{/ts}</span>
</td>
</tr>
</table>
</div>
</fieldset>
{/crmRegion}
{/if}
<div class="crm-submit-buttons">{include file="CRM/common/formButtons.tpl" location="bottom"}</div>
</div>
{if $action eq 1 or $action eq 2 }
<script type="text/javascript">
{literal}
function add_upload_file_block(parms) {
if (parms =='thumbnail') {
document.getElementById("imageURL").style.display="table-row";
document.getElementById("thumbnailURL").style.display="table-row";
} else {
document.getElementById("imageURL").style.display="none";
document.getElementById("thumbnailURL").style.display="none";
}
}
{/literal}
</script>
{/if}

View file

@ -0,0 +1,58 @@
{*
+--------------------------------------------------------------------+
| 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 |
+--------------------------------------------------------------------+
*}
{literal}
<script type="text/javascript">
CRM.$(function($) {
var $form = $("form.{/literal}{$form.formClass}{literal}");
// FIXME: This could be much simpler as an entityRef field but pcp doesn't have a searchable api :(
var pcpURL = CRM.url('civicrm/ajax/rest', 'className=CRM_Contact_Page_AJAX&fnName=getPCPList&json=1&context=contact&reset=1');
$('input[name=pcp_made_through_id]', $form).crmSelect2({
minimumInputLength: 1,
ajax: {
url: pcpURL,
data: function(term, page) {
return {term: term, page_num: page};
},
results: function(response) {
return response;
}
},
initSelection: function(el, callback) {
callback({id: $(el).val(), text: $('[name=pcp_made_through]', $form).val()});
}
})
// This is just a cheap trick to store the name when the form reloads
.on('change', function() {
var fieldNameVal = $(this).select2('data');
if (!fieldNameVal) {
fieldNameVal = '';
}
$('[name=pcp_made_through]', $form).val(fieldNameVal.text);
});
});
</script>
{/literal}

View file

@ -0,0 +1,89 @@
{*
+--------------------------------------------------------------------+
| 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="help">
{ts}Personalize the contents and appearance of your fundraising page here. You will be able to return to this page and make changes at any time.{/ts}
</div>
<fieldset>
<div class="crm-block crm-contribution-campaign-form-block">
<table class="form-layout-compressed" width="100%">
<tr class="crm-contribution-form-block-title">
<td class="label">{$form.title.label}</td>
<td>{$form.title.html|crmAddClass:big}</td>
</tr>
<tr class="crm-contribution-form-block-intro_text">
<td class="label">{$form.intro_text.label}</td>
<td>
{$form.intro_text.html|crmAddClass:big}<br />
<span class="description">{ts}Introduce the campaign and why you're supporting it. This text will appear at the top of your personal page AND at the top of the main campaign contribution page when people make a contribution through your page.{/ts}</span>
</td>
</tr>
<tr class="crm-contribution-form-block-goal_amount">
<td class="label">{$form.goal_amount.label}</td>
<td>{$form.goal_amount.html|crmAddClass:six}<br />
<span class="description">{ts}Total amount you would like to raise for this campaign.{/ts}</span>
</td>
</tr>
<tr class="crm-contribution-form-block-is_thermometer">
<td class="label">{$form.is_thermometer.label}</td>
<td>{$form.is_thermometer.html}
<span class="description">{ts}If this option is checked, a "thermometer" showing progress toward your goal will be included on the page.{/ts}</span>
</td>
</tr>
<tr class="crm-contribution-form-block-donate_link_text">
<td class="label">{$form.donate_link_text.label}</td>
<td>{$form.donate_link_text.html}<br />
<span class="description">{ts}The text for the contribute button.{/ts}</span>
</td>
</tr>
<tr class="crm-contribution-form-block-page_text">
<td class="label" width="15%">{$form.page_text.label}</td>
<td width="85%">
<span class="description">{ts}Tell people why this campaign is important to you.{/ts}</span><br />
{$form.page_text.html|crmAddClass:huge}
</td>
</tr>
</table>
{include file="CRM/Form/attachment.tpl" context="pcpCampaign"}
<table class="form-layout-compressed">
<tr class="crm-contribution-form-block-is_honor_roll">
<td class="label">{$form.is_honor_roll.label}</td>
<td>{$form.is_honor_roll.html}
<span class="description">{ts}If this option is checked, an "honor roll" will be displayed with the names (or nicknames) of the people who donated through your fundraising page. (Donors will have the option to remain anonymous. Their names will NOT be listed.){/ts}</span></td>
</tr>
<tr class="crm-contribution-form-block-is_active">
<td class="label">{$form.is_active.label}</td>
<td>{$form.is_active.html}
<span class="description">{ts}Is your Personal Campaign Page active? You can activate/de-activate it any time during it's lifecycle.{/ts}</span></td>
</tr>
</table>
</div>
<div class="crm-submit-buttons">{include file="CRM/common/formButtons.tpl" location="bottom"}</div>
</fieldset>
<script type="text/javascript">
// Always open attachment div by default for this form
cj('#attachments').show();
</script>

View file

@ -0,0 +1,35 @@
{*
+--------------------------------------------------------------------+
| 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 a group *}
<fieldset><legend>{ts}Delete Campaign Page {/ts}</legend>
<div class="messages status no-popup">
<div class="icon inform-icon"></div>
{ts 1=$title}Are you sure you want to delete Campaign Page '%1'?{/ts}<br />
{ts}This action cannot be undone.{/ts}
</div>
<div class="form-item">{$form.buttons.html}</div>
</fieldset>

View file

@ -0,0 +1,40 @@
{*
+--------------------------------------------------------------------+
| CiviCRM version 4.7 |
+--------------------------------------------------------------------+
| Copyright CiviCRM LLC (c) 2004-2017 |
+--------------------------------------------------------------------+
| This file is a part of CiviCRM. |
| |
| CiviCRM is free software; you can copy, modify, and distribute it |
| under the terms of the GNU Affero General Public License |
| Version 3, 19 November 2007 and the CiviCRM Licensing Exception. |
| |
| CiviCRM is distributed in the hope that it will be useful, but |
| WITHOUT ANY WARRANTY; without even the implied warranty of |
| MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
| See the GNU Affero General Public License for more details. |
| |
| You should have received a copy of the GNU Affero General Public |
| License and the CiviCRM Licensing Exception along |
| with this program; if not, contact CiviCRM LLC |
| at info[AT]civicrm[DOT]org. If you have questions about the |
| GNU Affero General Public License or the licensing of CiviCRM, |
| see the CiviCRM license FAQ at http://civicrm.org/licensing |
+--------------------------------------------------------------------+
*}
{if $action eq 8}
{include file="CRM/Contribute/Form/PCP/Delete.tpl"}
{else}
<div id="pcp" class="crm-block crm-form-block crm-pcp-search-form-block">
<h3>{ts}Find Campaign Pages{/ts}</h3>
<table class="form-layout-compressed">
<tr>
<td>{$form.status_id.label}<br />{$form.status_id.html}</td>
<td>{$form.contibution_page_id.label}<br />{$form.contibution_page_id.html}</td>
<td>{$form.event_id.label}<br />{$form.event_id.html}</td>
</tr>
</table>
<div class="crm-submit-buttons">{$form.buttons.html}</div>
</div>
{/if}

View file

@ -0,0 +1,49 @@
{*
+--------------------------------------------------------------------+
| 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 account creation and supporter profile form (step 1 in creating a personal campaign page as well as Update Contact info). *}
{if $action EQ 1}
<div class="help">
{ts}Creating your own fundraising page is simple. Fill in some basic information below, which will allow you to manage your page and invite friends to make a contribution. Then click 'Continue' to personalize and announce your page.{/ts}
</div>
{/if}
{if $profileDisplay}
<div class="messages status no-popup">
<i class="crm-i fa-exclamation-triangle"></i>
<strong>{ts}Profile is not configured with Email address.{/ts}</strong>
</div>
{else}
<div class="form-item">
{include file="CRM/common/CMSUser.tpl"}
{include file="CRM/UF/Form/Block.tpl" fields=$fields}
{if $isCaptcha}
{include file='CRM/common/ReCAPTCHA.tpl'}
{/if}
</div>
<div class="crm-submit-buttons">
{include file="CRM/common/formButtons.tpl" location="bottom"}
</div>
{/if}

View file

@ -0,0 +1,58 @@
{*
+--------------------------------------------------------------------+
| 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 |
+--------------------------------------------------------------------+
*}
{crmRegion name="payment-info-block"}
{if !empty($payments)}
<table class="selector row-highlight">
<tr>
<th>{ts}Amount{/ts}</th>
<th>{ts}Type{/ts}</th>
<th>{ts}Payment Method{/ts}</th>
<th>{ts}Received{/ts}</th>
<th>{ts}Transaction ID{/ts}</th>
<th>{ts}Status{/ts}</th>
<th></th>
</tr>
{foreach from=$payments item=payment}
<tr class="{cycle values="odd-row,even-row"}">
<td>{$payment.total_amount|crmMoney:$payment.currency}</td>
<td>{$payment.financial_type}</td>
<td>{$payment.payment_instrument}{if $payment.check_number} (#{$payment.check_number}){/if}</td>
<td>{$payment.receive_date|crmDate}</td>
<td>{$payment.trxn_id}</td>
<td>{$payment.status}</td>
<td>{$payment.action}</td>
</tr>
{/foreach}
</table>
{else}
{if $component eq 'event'}
{assign var='entity' value='participant'}
{else}
{assign var='entity' value=$component}
{/if}
{ts 1=$entity}No payments found for this %1 record{/ts}
{/if}
{/crmRegion}

View file

@ -0,0 +1,44 @@
{*
+--------------------------------------------------------------------+
| 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 Payment-Method *}
<div class="crm-block crm-form-block crm-contribution-payment_instrument-form-block">
<fieldset><legend>{if $action eq 1}{ts}New Payment Method{/ts}{elseif $action eq 2}{ts}Edit Payment Method{/ts}{else}{ts}Delete Payment Method{/ts}{/if}</legend>
<div class="crm-submit-buttons">{include file="CRM/common/formButtons.tpl" location="top"}</div>
{if $action eq 8}
<div class="messages status no-popup">
<div class="icon inform-icon"></div>
{ts}WARNING: Deleting this option will result in the loss of all contribution records which use this option.{/ts} {ts}This may mean the loss of a substantial amount of data, and the action cannot be undone.{/ts} {ts}Do you want to continue?{/ts}
</div>
{else}
<table>
<tr class="crm-contribution-form-block-name"><td class="label">{$form.name.label}</td><td class="html-adjust">{$form.name.html}</td></tr>
<tr class="crm-contribution-form-block-description"><td class="label">{$form.description.label}</td><td class="html-adjust">{$form.description.html}</td></tr>
<tr class="crm-contribution-form-block-is_active"><td class="label">{$form.is_active.label}</td><td class="html-adjust">{$form.is_active.html}</td></tr>
</table>
{/if}
<div class="crm-submit-buttons">{include file="CRM/common/formButtons.tpl" location="bottom"}</div>
</fieldset>
</div>

View file

@ -0,0 +1,103 @@
{*
+--------------------------------------------------------------------+
| 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-contribution-preview-form-block">
<fieldset><legend>{ts}Contribution Page{/ts}</legend>
<div class="crm-submit-buttons">{include file="CRM/common/formButtons.tpl" location="top"}</div>
<table class="form-layout-compressed">
<tr class="crm-contribution-form-block-intro_text">
<td class="label">{$form.intro_text.label}</td>
<td class="html-adjust">{$form.intro_text.html}</td>
</tr>
<tr class="crm-contribution-form-block-amount">
<td class="label">{$form.amount.label}</td>
<td class="html-adjust">{$form.amount.html}</td>
</tr>
{if $is_allow_other_amount}
<tr class="crm-contribution-form-block-amount_other">
<td class="label">{$form.amount_other.label}</td>
<td class="html-adjust">{$form.amount_other.html}</td>
</tr>
{/if}
<tr class="crm-contribution-form-block-email">
<td class="label">{$form.email.label}</td>
<td class="html-adjust">{$form.email.html}</td>
</tr>
{include file="CRM/UF/Form/Block.tpl" fields=$customPre}
<tr class="crm-contribution-form-block-_qf_Preview_next_express"><td></td><td>{$form._qf_Preview_next_express.html}</td>
</tr>
<tr class="crm-contribution-form-block-first_name">
<td class="label">{$form.first_name.label}</td>
<td class="html-adjust">{$form.first_name.html}</td>
</tr>
<tr class="crm-contribution-form-block-middle_name">
<td class="label">{$form.middle_name.label}</td>
<td class="html-adjust">{$form.middle_name.html}</td>
</tr>
<tr class="crm-contribution-form-block-last_name">
<td class="label">{$form.last_name.label}</td>
<td class="html-adjust">{$form.last_name.html}</td>
</tr>
<tr class="crm-contribution-form-block-street1">
<td class="label">{$form.street1.label}</td>
<td class="html-adjust">{$form.street1.html}</td>
</tr>
<tr class="crm-contribution-form-block-city">
<td class="label">{$form.city.label}</td>
<td class="html-adjust">{$form.city.html}</td>
</tr>
<tr class="crm-contribution-form-block-state_province">
<td class="label">{$form.state_province.label}</td>
<td class="html-adjust">{$form.state_province.html}</td>
</tr>
<tr class="crm-contribution-form-block-postal_code">
<td class="label">{$form.postal_code.label}</td>
<td class="html-adjust">{$form.postal_code.html}</td>
</tr>
<tr class="crm-contribution-form-block-country_id">
<td class="label">{$form.country_id.label}</td>
<td class="html-adjust">{$form.country_id.html}</td>
</tr>
<tr class="crm-contribution-form-block-credit_card_number">
<td class="label">{$form.credit_card_number.label}</td>
<td class="html-adjust">{$form.credit_card_number.html}</td>
</tr>
<tr class="crm-contribution-form-block-cvv2">
<td class="label">{$form.cvv2.label}</td>
<td class="html-adjust">{$form.cvv2.html}</td>
</tr>
<tr class="crm-contribution-form-block-credit_card_type">
<td class="label">{$form.credit_card_type.label}</td>
<td class="html-adjust">{$form.credit_card_type.html}</td>
</tr>
<tr class="crm-contribution-form-block-credit_card_exp_date">
<td class="label">{$form.credit_card_exp_date.label}</td>
<td class="html-adjust">{$form.credit_card_exp_date.html}</td>
</tr>
{include file="CRM/UF/Form/Block.tpl" fields=$customPost}
</table>
<div class="crm-submit-buttons">{include file="CRM/common/formButtons.tpl" location="bottom"}</div>
</fieldset>
</div>

View file

@ -0,0 +1,93 @@
{*
+--------------------------------------------------------------------+
| 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 Contributions *}
{assign var="showBlock" value="'searchForm'"}
{assign var="hideBlock" value="'searchForm_show'"}
<div class="crm-block crm-form-block crm-contribution-search-form-block">
<div class="crm-accordion-wrapper crm-contribution_search_form-accordion {if $rows}collapsed{/if}">
<div class="crm-accordion-header crm-master-accordion-header">
{ts}Edit Search Criteria{/ts}
</div><!-- /.crm-accordion-header -->
<div class="crm-accordion-body">
{strip}
<table class="form-layout">
<tr>
<td class="font-size12pt" colspan="2"> {$form.sort_name.label}&nbsp;&nbsp;{$form.sort_name.html|crmAddClass:'twenty'}&nbsp;&nbsp;&nbsp;{$form.buttons.html}
</td>
</tr>
<tr>
{if $form.contact_tags}
<td><label>{ts}Contributor Tag(s){/ts}</label>
{$form.contact_tags.html}
</td>
{else}
<td>&nbsp;</td>
{/if}
{if $form.group}
<td><label>{ts}Contributor Group(s){/ts}</label>
{$form.group.html}
</td>
{else}
<td>&nbsp;</td>
{/if}
</tr>
{include file="CRM/Contribute/Form/Search/Common.tpl"}
<tr>
<td colspan="2">{$form.buttons.html}</td>
</tr>
</table>
{/strip}
</div><!-- /.crm-accordion-body -->
</div><!-- /.crm-accordion-wrapper -->
</div><!-- /.crm-form-block -->
{if $rowsEmpty || $rows}
<div class="crm-content-block">
{if $rowsEmpty}
<div class="crm-results-block crm-results-block-empty">
{include file="CRM/Contribute/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="Contribution"}
</div>
{* This section displays the rows along and includes the paging controls *}
<div id="contributionSearch" class="crm-search-results">
{include file="CRM/Contribute/Form/Selector.tpl" context="Search"}
</div>
{* END Actions/Results section *}
</div>
{/if}
</div>
{/if}

View file

@ -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 $validCiviContribute}
<div id="contributeForm" class="crm-contribution-search-advanced_search-form-block">
<table class="form-layout">
{include file="CRM/Contribute/Form/Search/Common.tpl"}
</table>
</div>
{/if}

View file

@ -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 |
+--------------------------------------------------------------------+
*}
<tr><td><label>{ts}Date Received{/ts}</label></td></tr>
<tr>
{include file="CRM/Core/DateRange.tpl" fieldName="contribution_date" from='_low' to='_high'}
</tr>
<tr>
<td><label>{ts}Contribution Amounts{/ts}</label> <br />
{$form.contribution_amount_low.label}
{$form.contribution_amount_low.html} &nbsp;&nbsp;
{$form.contribution_amount_high.label}
{$form.contribution_amount_high.html} </td>
<td><label>{$form.contribution_status_id.label}</label> <br />
{$form.contribution_status_id.html} </td>
</tr>
<tr>
<td>
<div class="float-left">
<label>{$form.payment_instrument_id.label}</label> <br />
{$form.payment_instrument_id.html|crmAddClass:twenty}
</div>
<div class="float-left" id="contribution_check_number_wrapper">
{$form.contribution_check_number.label} <br />
{$form.contribution_check_number.html}
</div>
<div class="float-left" id="financial_trxn_card_type_id_wrapper">
{$form.financial_trxn_card_type_id.label} <br />
{$form.financial_trxn_card_type_id.html}
</div>
<div class="float-left" id="pan_truncation_wrapper">
{$form.financial_trxn_pan_truncation.label} <br />
{$form.financial_trxn_pan_truncation.html}
</div>
</td>
<td>
{$form.contribution_trxn_id.label} <br />
{$form.contribution_trxn_id.html}
</td>
</tr>
<tr>
<td>
{$form.contribution_or_softcredits.label} <br />
{$form.contribution_or_softcredits.html}<br />
<div class="float-left" id="contribution_soft_credit_type_wrapper">
{$form.contribution_soft_credit_type_id.label} <br />
{$form.contribution_soft_credit_type_id.html|crmAddClass:twenty}
</div>
</td>
<td>
{$form.invoice_number.label} <br />
{$form.invoice_number.html}
</td>
</tr>
<tr>
<td>
<table style="width:auto">
<tbody>
<tr>
<td>{$form.contribution_thankyou_date_is_not_null.label}</td>
<td>
{$form.contribution_thankyou_date_is_not_null.html}
</td>
</tr>
<tr>
<td>{$form.contribution_receipt_date_is_not_null.label}</td>
<td>
{$form.contribution_receipt_date_is_not_null.html}
</td>
</tr>
<tr>
<td>{$form.contribution_test.label} {help id="is-test" file="CRM/Contact/Form/Search/Advanced"}</td>
<td>
{$form.contribution_test.html}
</td>
</tr>
</tbody>
</table>
</td>
<td>
<table style="width:auto">
<tbody>
<tr>
<td>{$form.contribution_pay_later.label}</td>
<td>
{$form.contribution_pay_later.html}
</td>
</tr>
<tr>
<td>{$form.contribution_recurring.label}</td>
<td>
{$form.contribution_recurring.html}
</td>
</tr>
</tbody>
</table>
</td>
</tr>
<tr>
<td>
<label>{ts}Financial Type{/ts}</label> <br />
{$form.financial_type_id.html|crmAddClass:twenty}
</td>
<td>
<label>{ts}Contribution Page{/ts}</label> <br />
{$form.contribution_page_id.html|crmAddClass:twenty}
</td>
</tr>
<tr>
<td>
{$form.contribution_source.label} <br />
{$form.contribution_source.html|crmAddClass:twenty}
</td>
<td>
{$form.contribution_product_id.label} <br />
{$form.contribution_product_id.html|crmAddClass:twenty}
</td>
</tr>
<tr>
<td>
{$form.contribution_pcp_made_through_id.label} <br />
{$form.contribution_pcp_made_through_id.html}
{include file="CRM/Contribute/Form/PCP.js.tpl"}
</td>
<td>
{$form.contribution_pcp_display_in_roll.label}
{$form.contribution_pcp_display_in_roll.html}
</td>
</tr>
<tr>
<td>
<label>{ts}Currency{/ts}</label> <br />
{$form.contribution_currency_type.html|crmAddClass:twenty}
</td>
{if $form.contribution_batch_id.html }
<td>
{$form.contribution_batch_id.label}<br />
{$form.contribution_batch_id.html}
</td>
{/if}
</tr>
{* campaign in contribution search *}
{include file="CRM/Campaign/Form/addCampaignToComponent.tpl" campaignContext="componentSearch"
campaignTrClass='' campaignTdClass=''}
{* contribution recurring search *}
<tr>
<td colspan="2">
{include file="CRM/Contribute/Form/Search/ContributionRecur.tpl"}
</td>
</tr>
{if $contributionGroupTree}
<tr>
<td colspan="2">
{include file="CRM/Custom/Form/Search.tpl" groupTree=$contributionGroupTree showHideLinks=false}</td>
</tr>
{/if}
{literal}
<script type="text/javascript">
cj('#contribution_payment_instrument_id').change(function() {
if (cj(this).val() == '4') {
cj('#contribution_check_number_wrapper').show();
}
else {
cj('#contribution_check_number_wrapper').hide();
cj('#contribution_check_number').val('');
}
}).change();
cj('#contribution_or_softcredits').change(function() {
if (cj(this).val() == 'only_contribs') {
cj('#contribution_soft_credit_type_wrapper').hide();
cj('#contribution_soft_credit_type_id').val('');
}
else {
cj('#contribution_soft_credit_type_wrapper').show();
}
}).change();
</script>
{/literal}

View file

@ -0,0 +1,92 @@
{*
+--------------------------------------------------------------------+
| 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-accordion-wrapper crm-contactDetails-accordion
{if empty($contribution_recur_pane_open)} collapsed{/if}" id="contribution_recur">
<div class="crm-accordion-header">
{ts}Recurring Contributions{/ts}
</div>
<div class="crm-accordion-body">
<table class="form-layout-compressed">
<tr>
<td colspan="4">{$form.contribution_recur_payment_made.html}</td>
</tr>
<tr>
<td>{ts}Start Date{/ts}</td>
<td>
{include file="CRM/Core/DateRange.tpl" fieldName="contribution_recur_start_date" from='_low' to='_high'}
</td>
</tr>
<tr>
<td>{ts}End Date{/ts}</td>
<td>
{include file="CRM/Core/DateRange.tpl" fieldName="contribution_recur_end_date" from='_low' to='_high'}
</td>
</tr>
<tr>
<td>{ts}Modified Date{/ts}</td>
<td>
{include file="CRM/Core/DateRange.tpl" fieldName="contribution_recur_modified_date" from='_low' to='_high'}
</td>
</tr>
<tr>
<td>{ts}Next Scheduled{/ts}</td>
<td>
{include file="CRM/Core/DateRange.tpl" fieldName="contribution_recur_next_sched_contribution_date" from='_low' to='_high'}
</td>
</tr>
<tr>
<td>{ts}Retry Date{/ts}</td>
<td>
{include file="CRM/Core/DateRange.tpl" fieldName="contribution_recur_failure_retry_date" from='_low' to='_high'}
</td>
</tr>
<tr>
<td>{ts}Cancel Date{/ts}</td>
<td>
{include file="CRM/Core/DateRange.tpl" fieldName="contribution_recur_cancel_date" from='_low' to='_high'}
</td>
</tr>
<tr>
<td>{ts}Recurring Contribution Status{/ts}</td>
<td></td>
<td col='span2'>
{$form.contribution_recur_contribution_status_id.html|crmAddClass:twenty}
</td>
</tr>
{if $contributionRecurGroupTree}
<tr>
<td colspan="4">
{include file="CRM/Custom/Form/Search.tpl" groupTree=$contributionRecurGroupTree showHideLinks=false}
</td>
</tr>
{/if}
</table>
</div>
<!-- /.crm-accordion-body -->
</div><!-- /.crm-accordion-wrapper -->

View file

@ -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> &nbsp;
{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 contributor 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 or amount 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>

View file

@ -0,0 +1,54 @@
{*
+--------------------------------------------------------------------+
| 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-contribution-search_contribution-form-block">
<h3>{ts}Find Contribution Pages{/ts}</h3>
<table class="form-layout-compressed">
<tr>
<td>{$form.title.html}
<div class="description font-italic">
{ts}Complete OR partial Contribution Page title.{/ts}
</div>
<div class="crm-submit-buttons">{include file="CRM/common/formButtons.tpl"}</div>
</td>
<td>
<label>{ts}Financial Type{/ts}</label>
<div class="listing-box">
{foreach from=$form.financial_type_id item="contribution_val"}
<div class="{cycle values="odd-row,even-row"}">
{$contribution_val.html}
</div>
{/foreach}
</div>
</td>
</tr>
{* campaign in contribution page search *}
{include file="CRM/Campaign/Form/addCampaignToComponent.tpl"
campaignContext="componentSearch" campaignTrClass='' campaignTdClass=''}
</table>
</div>

View file

@ -0,0 +1,113 @@
{*
+--------------------------------------------------------------------+
| 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/common/pager.tpl" location="top"}
{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>
<p class="description">
{ts}Click arrow to view payment details.{/ts}
</p>
{counter start=0 skip=1 print=false}
{foreach from=$rows item=row}
<tr id="rowid{$row.contribution_id}" class="{cycle values="odd-row,even-row"} {if $row.cancel_date} cancelled{/if} crm-contribution_{$row.contribution_id}">
{if !$single }
{if $context eq 'Search' }
{assign var=cbName value=$row.checkbox}
<td>{$form.$cbName.html}</td>
{/if}
<td>{$row.contact_type} &nbsp; <a href="{crmURL p='civicrm/contact/view' q="reset=1&cid=`$row.contact_id`"}">{$row.sort_name}</a></td>
{/if}
<td class="crm-contribution-amount">
{if !$row.contribution_soft_credit_amount}
<a class="nowrap bold crm-expand-row" title="{ts}view payments{/ts}" href="{crmURL p='civicrm/payment' q="view=transaction&component=contribution&action=browse&cid=`$row.contact_id`&id=`$row.contribution_id`&selector=1"}">
&nbsp; {$row.total_amount|crmMoney:$row.currency}
</a>
{/if}
{if $row.amount_level }<br/>({$row.amount_level}){/if}
{if $row.contribution_recur_id}<br/>{ts}(Recurring){/ts}{/if}
</td>
{if $softCreditColumns}
<td class="right bold crm-contribution-soft_credit_amount">
<span class="nowrap">{$row.contribution_soft_credit_amount|crmMoney:$row.currency}</span>
</td>
{/if}
{foreach from=$columnHeaders item=column}
{assign var='columnName' value=$column.field_name}
{if !$columnName}{* if field_name has not been set skip, this helps with not changing anything not specifically edited *}
{elseif $columnName === 'total_amount'}{* rendered above as soft credit columns = confusing *}
{elseif $column.type === 'actions'}{* rendered below as soft credit column handling = not fixed *}
{elseif $columnName == 'contribution-status'}
<td class="crm-contribution-status">
{$row.contribution_status}<br/>
{if $row.cancel_date}
{$row.cancel_date|crmDate}
{/if}
</td>
{else}
{if $column.type == 'date'}
<td class="crm-contribution-{$columnName}">
{$row.$columnName|crmDate}
</td>
{else}
<td class="crm-{$columnName} crm-{$columnName}_{$row.columnName}">
{$row.$columnName}
</td>
{/if}
{/if}
{/foreach}
{if $softCreditColumns}
<td class="crm-contribution-soft_credit_name">
<a href="{crmURL p='civicrm/contact/view' q="reset=1&cid=`$row.contribution_soft_credit_contact_id`"}">{$row.contribution_soft_credit_name}</a>
</td>
<td class="crm-contribution-soft_credit_type">{$row.contribution_soft_credit_type}</td>
{/if}
<td>{$row.action|replace:'xx':$row.contribution_id}</td>
</tr>
{/foreach}
</table>
{/strip}
{include file="CRM/common/pager.tpl" location="bottom"}
{crmScript file='js/crm.expandRow.js'}

View file

@ -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 |
+--------------------------------------------------------------------+
*}
{* template for adding form elements for soft credit form*}
<table class="form-layout-compressed crm-soft-credit-block">
{section name='i' start=1 loop=$rowCount}
{assign var='rowNumber' value=$smarty.section.i.index}
<tr id="soft-credit-row-{$rowNumber}"
class="crm-contribution-form-block-soft_credit_to {if $rowNumber gte $showSoftCreditRow}hiddenElement{/if}">
<td>
{$form.soft_credit_contact_id.$rowNumber.label}&nbsp;{$form.soft_credit_contact_id.$rowNumber.html|crmAddClass:twenty}
</td>
<td>
{$form.soft_credit_amount.$rowNumber.label}&nbsp;{$form.soft_credit_amount.$rowNumber.html|crmAddClass:eight}
</td>
<td>
{$form.soft_credit_type.$rowNumber.label}&nbsp;{$form.soft_credit_type.$rowNumber.html}
&nbsp;<a class="crm-hover-button soft-credit-delete-link" href="#"><span class="icon delete-icon"></span></a>
</td>
</tr>
{/section}
<tr>
<td>
<a href="#" class="crm-hover-button" id="addMoreSoftCredit"><i class="crm-i fa-plus-circle"></i> {ts}another soft credit{/ts}</a>
</td>
</tr>
</table>
{literal}
<script type="text/javascript">
CRM.$(function($) {
var $form = $("form.{/literal}{$form.formClass}{literal}");
$('#showPCP, #showSoftCredit').click(function(){
return showHideSoftCreditAndPCP();
});
function showHideSoftCreditAndPCP() {
$('.crm-contribution-pcp-block').toggle();
$('.crm-contribution-pcp-block-link').toggle();
$('.crm-contribution-form-block-soft_credit_to').toggle();
return false;
}
$('#addMoreSoftCredit').on('click', function () {
if ($('tr.crm-contribution-form-block-soft_credit_to').hasClass("hiddenElement")) {
$('.crm-contribution-form-block-soft_credit_to tr.hiddenElement').filter(':first').show().removeClass('hiddenElement');
}
if ($('.crm-soft-credit-block tr.hiddenElement').length < 1) {
$('#addMoreSoftCredit').hide();
}
return false;
});
$('.crm-soft-credit-block tr span').each(function () {
if ($(this).hasClass('crm-error')) {
$(this).parents('tr').show();
}
});
$('.soft-credit-delete-link').click(function(){
$(this).closest('tr').find('input').val('');
$(this).closest('tr').addClass('hiddenElement').removeAttr('style');
$('#addMoreSoftCredit').show();
return false;
});
$('input[name^="soft_credit_contact_"]').on('change', function(){
var rowNum = $(this).prop('id').replace('soft_credit_contact_id_','');
var totalAmount = $('#total_amount').val();
//assign total amount as default soft credit amount
$('#soft_credit_amount_'+ rowNum).val(totalAmount);
var thousandMarker = {/literal}{$config->monetaryThousandSeparator|json_encode}{literal};
$('#soft_credit_type_'+ rowNum).select2('val', $('#sct_default_id').val());
totalAmount = Number(totalAmount.replace(thousandMarker,''));
if (rowNum > 1) {
var scAmount = Number($('#soft_credit_amount_'+ (rowNum - 1)).val().replace(thousandMarker,''));
if (scAmount < totalAmount) {
//if user enters less than the total amount and adds another soft credit row,
//the soft credit amount default will be left empty
$('#soft_credit_amount_'+ rowNum).val('');
}
}
});
});
</script>
{/literal}

View file

@ -0,0 +1,41 @@
{*
+--------------------------------------------------------------------+
| CiviCRM version 4.7 |
+--------------------------------------------------------------------+
| Copyright CiviCRM LLC (c) 2004-2017 |
+--------------------------------------------------------------------+
| This file is a part of CiviCRM. |
| |
| CiviCRM is free software; you can copy, modify, and distribute it |
| under the terms of the GNU Affero General Public License |
| Version 3, 19 November 2007 and the CiviCRM Licensing Exception. |
| |
| CiviCRM is distributed in the hope that it will be useful, but |
| WITHOUT ANY WARRANTY; without even the implied warranty of |
| MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
| See the GNU Affero General Public License for more details. |
| |
| You should have received a copy of the GNU Affero General Public |
| License and the CiviCRM Licensing Exception along |
| with this program; if not, contact CiviCRM LLC |
| at info[AT]civicrm[DOT]org. If you have questions about the |
| GNU Affero General Public License or the licensing of CiviCRM, |
| see the CiviCRM license FAQ at http://civicrm.org/licensing |
+--------------------------------------------------------------------+
*}
{ts 1=$totalSelectedContributions}Number of selected contributions: %1{/ts}
{if $rows }
<div class="crm-block crm-form-block crm-contribution-task-form-block">
<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}

View file

@ -0,0 +1,62 @@
{*
+--------------------------------------------------------------------+
| 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 form-item">
<fieldset>
<div class="help">
{ts}Update field values for each contribution as needed. Click <strong>Update Contributions</strong> below to save all your changes. To set a field to the same value for ALL rows, enter that value for the first contribution and then click the <strong>Copy icon</strong> (next to the column title).{/ts}
</div>
<table class="crm-copy-fields">
<thead class="sticky">
<tr class="columnheader">
{foreach from=$readOnlyFields item=fTitle key=fName}
<th>{$fTitle}</th>
{/foreach}
{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=cid}
<tr class="{cycle values="odd-row,even-row"}" entity_id="{$cid}">
{foreach from=$readOnlyFields item=fTitle key=fName}
<td>{$contactDetails.$cid.$fName}</td>
{/foreach}
{foreach from=$fields item=field key=fieldName}
{assign var=n value=$field.name}
<td class="compressed">{$form.field.$cid.$n.html}</td>
{/foreach}
</tr>
{/foreach}
</tr>
</table>
<div class="crm-submit-buttons">{if $fields}{$form._qf_Batch_refresh.html}{/if} &nbsp; {$form.buttons.html}</div>
</fieldset>
</div>
{*include batch copy js js file*}
{include file="CRM/common/batchCopy.tpl"}

View file

@ -0,0 +1,35 @@
{*
+--------------------------------------------------------------------+
| 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 contribution deletes *}
<div class="messages status no-popup">
<div class="icon inform-icon"></div>
<p>{ts}Are you sure you want to delete the selected contributions? This delete operation cannot be undone and will delete all transactions and activity associated with these contributions.{/ts}</p>
<p>{include file="CRM/Contribute/Form/Task.tpl"}</p>
</div>
<p>
<div class="form-item">
{$form.buttons.html}
</div>

View file

@ -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"}

View file

@ -0,0 +1,63 @@
{*
+--------------------------------------------------------------------+
| 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-from_email-title"}
{ts}From Address{/ts}
{/htxt}
{htxt id ="id-from_email"}
<p>{ts}Select the "FROM" Email Address for this mailing from the dropdown list. Available email addresses are configurable by users with Administer CiviCRM permission. EXAMPLE: "Client Services" &lt;clientservices@example.org&gt;{/ts}</p>
{if $params.isAdmin}
{capture assign="fromConfig"}{crmURL p="civicrm/admin/options/from_email_address" q="reset=1"}{/capture}
<p>{ts 1=$fromConfig}Go to <a href='%1'>Administer CiviCRM &raquo; Communications &raquo; FROM Email Addresses</a> to add or edit email addresses. Make sure these email addresses are valid email accounts with your email service provider.{/ts}</p>
{else}
{ts}Contact your site administrator if you need to use a "FROM" Email Address which is not in the dropdown list.{/ts}
{/if}
{/htxt}
{htxt id="content-intro-title"}
{ts}Message Formats{/ts}
{/htxt}
{htxt id="content-intro"}
<p>{ts}You can choose to send BOTH an <strong>HTML</strong> and a plain <strong>TEXT</strong> version of your mailing, OR you can send a <strong>TEXT</strong> version only.{/ts}</p>
<p>{ts}If you create only an <strong>HTML</strong> version, CiviMail will automatically create a <strong>TEXT</strong> version for your recipients who have chosen NOT to receive HTML email.{/ts}</p>
<h1>{ts}Required Elements{/ts}</h1>
<p>{ts}CiviMail email messages must include an <strong>opt-out</strong> link ("Opt out via web page"), and the <strong>postal address</strong> of your organization. These elements help reduce the chances of your email being categorized as SPAM. They can be included in the main message body OR in a re-usable <strong>message footer</strong>. Refer to the online documentation for details on how to include required links and contact information as well as sample messages.{/ts} {docURL page="Sample CiviMail Messages" resource="wiki"}</p>
{/htxt}
{htxt id="upload-compose-title"}
{ts}Upload or Compose On-screen{/ts}
{/htxt}
{htxt id="upload-compose"}
<p>{ts}You can use your favorite editor to create content on your local computer and then <strong>Upload</strong> the files. OR you can <strong>Compose</strong> content directly on the screen.{/ts}</p>
<p>{ts}If you choose to compose on the screen, a basic WYSIWYG (what-you-see-is-what-you-get) editor is provided which you can use create simple HTML messages. However, if you are planning on creating HTML messages with complex layouts, it is best to use an HTML editor on your local computer. Then locate and upload the saved file(s) by clicking the <strong>Browse</strong> button.{/ts}</p>
{/htxt}
{htxt id="id-message-text-title"}
{ts}Text Message{/ts}
{/htxt}
{htxt id="id-message-text"}
<p>{ts}You can send your email as a simple text-only message, as an HTML formatted message, or both. Text-only messages are sufficient for most email communication, and some recipients may prefer not to receive HTML formatted messages.{/ts}</p>
<p>{ts}HTML messages have more visual impact, allow you to include images, and may be more readable if you are including links to website pages. However, different email programs may interpret HTML formats differently, so use this option cautiously unless you have a template format that has been tested with different web and desktop email programs.{/ts}</p>
{/htxt}

View file

@ -0,0 +1,90 @@
{*
+--------------------------------------------------------------------+
| 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="messages status no-popup">
<div class="icon inform-icon"></div>
{include file="CRM/Contribute/Form/Task.tpl"}
</div>
{if $selectedOutput ne 'email'}
<div class="help">
{ts}You may choose to email invoice to contributors OR download a PDF file containing one invoice per page to your local computer by clicking <strong>Process Invoice(s)</strong> . Your browser may display the file for you automatically, or you may need to open it for printing using any PDF reader (such as Adobe&reg; Reader).{/ts}
</div>
{/if}
<table class="form-layout-compressed">
{if $selectedOutput ne 'email'}
<tr>
<td>{$form.output.email_invoice.html}</td>
</tr>
{/if}
<tr class="crm-email-element">
<td>{$form.from_email_address.label}{$form.from_email_address.html}{help id ="id-from_email" isAdmin=$isAdmin}</td>
</tr>
<tr class="crm-email-element">
<td>{$form.email_comment.label}{$form.email_comment.html}</td>
</tr>
{if $selectedOutput ne 'email'}
<tr>
<td>{$form.output.pdf_invoice.html}</td>
</tr>
{/if}
<tr class="crm-pdf-element">
<td>{$form.pdf_format_id.html} {$form.pdf_format_id.label} </td>
</tr>
</table>
<div class="spacer"></div>
<div class="crm-submit-buttons">
{$form.buttons.html}
</div>
<script type="text/javascript">
{literal}
CRM.$(function ($) {
var o = $('input[name="output"]');
if (o.length > 1) {
$('.crm-email-element').hide();
showhideEmailElements();
o.on('click', showhideEmailElements);
}
else {
$('.crm-email-element').show();
}
function showhideEmailElements() {
if ($('input[name="output"]:checked').val() == 'email_invoice') {
$('.crm-email-element').show();
$('.crm-pdf-element').hide();
}
else {
$('.crm-pdf-element').show();
$('.crm-email-element').hide();
}
}
});
{/literal}
</script>

View file

@ -0,0 +1,58 @@
{*
+--------------------------------------------------------------------+
| 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="messages status no-popup">
<div class="icon inform-icon"></div>
{include file="CRM/Contribute/Form/Task.tpl"}
</div>
<div class="help">
{ts}You may choose to email receipts to contributors OR download a PDF file containing one receipt per page to your local computer by clicking <strong>Process Receipt(s)</strong>. Your browser may display the file for you automatically, or you may need to open it for printing using any PDF reader (such as Adobe&reg; Reader).{/ts}
</div>
<table class="form-layout-compressed">
<tr>
<td>{$form.output.email_receipt.html}</td>
</tr>
<tr id="selectEmailFrom" style="display: none">
<td>{$form.fromEmailAddress.label}: {$form.fromEmailAddress.html}</td>
</tr>
<tr>
<td>{$form.output.pdf_receipt.html}</td>
</tr>
<tr id="selectPdfFormat" style="display: none;">
<td>{$form.pdf_format_id.html} {$form.pdf_format_id.label} {help id="id-contribution-receipt" file="CRM/Contact/Form/Task/PDFLetterCommon.hlp"}</td>
</tr>
<tr>
<td>{$form.receipt_update.html} {$form.receipt_update.label}</td>
</tr>
<tr>
<td>{$form.override_privacy.html} {$form.override_privacy.label}</td>
</tr>
</table>
<div class="spacer"></div>
<div class="form-item">
{$form.buttons.html}
</div>

View file

@ -0,0 +1,41 @@
{*
+--------------------------------------------------------------------+
| CiviCRM version 4.7 |
+--------------------------------------------------------------------+
| Copyright CiviCRM LLC (c) 2004-2017 |
+--------------------------------------------------------------------+
| This file is a part of CiviCRM. |
| |
| CiviCRM is free software; you can copy, modify, and distribute it |
| under the terms of the GNU Affero General Public License |
| Version 3, 19 November 2007 and the CiviCRM Licensing Exception. |
| |
| CiviCRM is distributed in the hope that it will be useful, but |
| WITHOUT ANY WARRANTY; without even the implied warranty of |
| MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
| See the GNU Affero General Public License for more details. |
| |
| You should have received a copy of the GNU Affero General Public |
| License and the CiviCRM Licensing Exception along |
| with this program; if not, contact CiviCRM LLC |
| at info[AT]civicrm[DOT]org. If you have questions about the |
| GNU Affero General Public License or the licensing of CiviCRM, |
| see the CiviCRM license FAQ at http://civicrm.org/licensing |
+--------------------------------------------------------------------+
*}
{htxt id="id-contribution-grouping-title"}
{ts}Contribution Grouping{/ts}
{/htxt}
{htxt id="id-contribution-grouping"}
<p>{ts}You can choose to show contribution data for multiple contributions from the same contact in one location in the body of your letter. This option can be useful for end-of-year thank-you letters, or other situations where you want to acknowledge multiple gifts.{/ts}</p>
<p>{ts}If you use this option, you may want to use a table layout to format the output from the contribution token(s). In this case select the 'Table Cell' separator, and each contribution instance will be placed in it's own table cell. Alternatively, you can use the simple 'Comma' separator which will simply separate the contribution amounts and / or dates with commas (e.g. 'Thank you for your generous contributions of $150.00, $200.00, $450.00 this year.').{/ts}
</p>
{/htxt}
{htxt id="id-contribution-email-print-title"}
{ts}Print and Email Options{/ts}
{/htxt}
{htxt id="id-contribution-email-print"}
<p>{ts}You can choose to send thank-you letters as emails to contacts who are able to receive email. If you choose to do this, you can also decide whether to only print PDF's for the remaining contacts OR generate PDF's for all.{/ts}</p>
{/htxt}

View file

@ -0,0 +1,59 @@
{*
+--------------------------------------------------------------------+
| CiviCRM version 4.7 |
+--------------------------------------------------------------------+
| Copyright CiviCRM LLC (c) 2004-2017 |
+--------------------------------------------------------------------+
| This file is a part of CiviCRM. |
| |
| CiviCRM is free software; you can copy, modify, and distribute it |
| under the terms of the GNU Affero General Public License |
| Version 3, 19 November 2007 and the CiviCRM Licensing Exception. |
| |
| CiviCRM is distributed in the hope that it will be useful, but |
| WITHOUT ANY WARRANTY; without even the implied warranty of |
| MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
| See the GNU Affero General Public License for more details. |
| |
| You should have received a copy of the GNU Affero General Public |
| License and the CiviCRM Licensing Exception along |
| with this program; if not, contact CiviCRM LLC |
| at info[AT]civicrm[DOT]org. If you have questions about the |
| GNU Affero General Public License or the licensing of CiviCRM, |
| see the CiviCRM license FAQ at http://civicrm.org/licensing |
+--------------------------------------------------------------------+
*}
<div class="crm-form-block crm-block crm-contact-task-pdf-form-block">
<h3>{ts}Thank-you Letter for Contributions (PDF){/ts}</h3>
{if $single eq false}
<div class="messages status no-popup">{include file="CRM/Contribute/Form/Task.tpl"}</div>
{/if}
<div class="crm-accordion-wrapper crm-html_email-accordion ">
<div class="crm-accordion-header">
{$form.more_options_header.html}
</div><!-- /.crm-accordion-header -->
<div class="crm-accordion-body">
<table class="form-layout-compressed">
<tr><td class="label-left">{$form.thankyou_update.html} {$form.thankyou_update.label}</td><td></td></tr>
<tr><td class="label-left">{$form.receipt_update.html} {$form.receipt_update.label}</td><td></td></tr>
<tr>
<td class="label-left">{$form.group_by.label} {help id="id-contribution-grouping"}</td>
<td>{$form.group_by.html}</td>
</tr>
<tr>
<td class="label-left">{$form.group_by_separator.label}</td>
<td>{$form.group_by_separator.html}</td>
</tr>
<tr>
<td class="label-left">{$form.email_options.label} {help id="id-contribution-email-print"}</td>
<td>{$form.email_options.html}</td>
</tr>
</table>
</div><!-- /.crm-accordion-body -->
</div><!-- /.crm-accordion-wrapper -->
{include file="CRM/Contact/Form/Task/PDFLetterCommon.tpl"}
<div class="crm-submit-buttons">{include file="CRM/common/formButtons.tpl" location="bottom"}</div>
</div>

View file

@ -0,0 +1,39 @@
{*
+--------------------------------------------------------------------+
| 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="form-item crm-block crm-form-block crm-contribution-form-block">
<table class="form-layout-compressed">
<tr class="crm-contribution-form-block-uf_group_id">
<td class="label">{$form.uf_group_id.label}</td>
<td class="html-adjust">{$form.uf_group_id.html}</td>
</tr>
<tr>
<td class="label"></td>
<td> {include file="CRM/Contribute/Form/Task.tpl"}</td>
</tr>
</table>
<div class="crm-submit-buttons">{$form.buttons.html}</td></div>
</div>

View file

@ -0,0 +1,74 @@
{*
+--------------------------------------------------------------------+
| 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="form-item crm-block crm-form-block crm-contribution-form-block">
<span class="element-right">{$form.buttons.html}</span>
</div>
<div class="spacer"></div>
<br />
<p>
<table>
<tr class="columnheader">
<th>{ts}Name{/ts}</th>
<th>{ts}Amount{/ts}</th>
<th>{ts}Type{/ts}</th>
<th>{ts}Source{/ts}</th>
<th>{ts}Received{/ts}</th>
<th>{ts}Thank-you Sent{/ts}</th>
<th>{ts}Status{/ts}</th>
<th>{ts}Premium{/ts}</th>
</tr>
{foreach from=$rows item=row}
<tr class="{cycle values="odd-row,even-row"} crm-contribution">
<td class="crm-contribution-sort_name">{$row.sort_name}</td>
<td class="right bold crm-contribution-total_amount" nowrap>{$row.total_amount|crmMoney}</td>
<td class="crm-contribution-type crm-contribution-{$row.financial_type} crm-financial-type crm-contribution-{$row.financial_type}">{$row.financial_type}</td>
<td class="crm-contribution-contribution_source">{$row.contribution_source}</td>
<td class="crm-contribution-receive_date">{$row.receive_date|truncate:10:''|crmDate}</td>
<td class="crm-contribution-thankyou_date">{$row.thankyou_date|truncate:10:''|crmDate}</td>
<td class="crm-contribution-status crm-contribution-status_{$row.contribution_status_id}">
{$row.contribution_status_id}<br />
{if $row.cancel_date}
{$row.cancel_date|truncate:10:''|crmDate}
{/if}
</td>
<td class="crm-contribution-product_name">{$row.product_name}</td>
</tr>
{/foreach}
</table>
<div class="form-item">
<span class="element-right">{$form.buttons.html}</span>
</div>
{else}
<div class="messages status no-popup">
<div class="icon inform-icon"/>
{ts}There are no records selected for Print.{/ts}
</div>
{/if}

View file

@ -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='spacer'></div>
<div class="form-item crm-block crm-form-block crm-contribution-form-block">
<p>
{$form.buttons.html}
</p>
</div>

View file

@ -0,0 +1,38 @@
{if $rows}
<div class="form-item crm-block crm-form-block crm-contribution-form-block">
<span class="element-right">{$form.buttons.html}</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}Source{/ts}</th>
<th>{ts}Receive Date{/ts}</th>
</tr>
{foreach from=$rows item=row}
<tr class="{cycle values="odd-row,even-row"}">
<td>{$row.display_name}</td>
<td>{$row.amount}</td>
<td>{$row.source}</td>
<td>{$row.receive_date}</td>
</tr>
{/foreach}
</table>
</div>
<div class="form-item">
<span class="element-right">{$form.buttons.html}</span>
</div>
{else}
<div class="messages status no-popup">
<div class="icon inform-icon"></div>
{ts}There are no records selected.{/ts}
</div>
{/if}

View file

@ -0,0 +1,68 @@
{*
+--------------------------------------------------------------------+
| CiviCRM version 4.7 |
+--------------------------------------------------------------------+
| Copyright CiviCRM LLC (c) 2004-2017 |
+--------------------------------------------------------------------+
| This file is a part of CiviCRM. |
| |
| CiviCRM is free software; you can copy, modify, and distribute it |
| under the terms of the GNU Affero General Public License |
| Version 3, 19 November 2007 and the CiviCRM Licensing Exception. |
| |
| CiviCRM is distributed in the hope that it will be useful, but |
| WITHOUT ANY WARRANTY; without even the implied warranty of |
| MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
| See the GNU Affero General Public License for more details. |
| |
| You should have received a copy of the GNU Affero General Public |
| License and the CiviCRM Licensing Exception along |
| with this program; if not, contact CiviCRM LLC |
| at info[AT]civicrm[DOT]org. If you have questions about the |
| GNU Affero General Public License or the licensing of CiviCRM, |
| see the CiviCRM license FAQ at http://civicrm.org/licensing |
+--------------------------------------------------------------------+
*}
<div class="form-item crm-block crm-form-block crm-contribution-form-block">
<div class="help">
{ts}Use this form to record received payments for 'pay later' online contributions, membership signups and event registrations. You can use the Transaction ID field to record account+check number, bank transfer identifier, or other unique payment identifier.{/ts}
</div>
<fieldset>
<legend>{ts}Update Contribution Status{/ts}</legend>
<table class="form-layout-compressed">
<tr class="crm-contribution-form-block-contribution_status_id"><td class="label">{$form.contribution_status_id.label}</td><td class="html-adjust">{$form.contribution_status_id.html}<br />
<span class="description">{ts}Assign the selected status to all contributions listed below.{/ts}</td></tr>
</table>
<table>
<tr class="columnheader">
<th>{ts}Name{/ts}</th>
<th class="right">{ts}Amount{/ts}&nbsp;&nbsp;</th>
<th>{ts}Source{/ts}</th>
<th>{ts}Fee Amount{/ts}</th>
<th>{ts}Payment Method{/ts}</th>
<th>{ts}Check{/ts} #</th>
<th>{ts}Transaction ID{/ts}</th>
<th>{ts}Transaction Date{/ts}</th>
</tr>
{foreach from=$rows item=row}
<tr class="{cycle values="odd-row,even-row"}">
<td>{$row.display_name}</td>
<td class="right nowrap">{$row.amount|crmMoney}&nbsp;&nbsp;</td>
<td>{$row.source}</td>
{assign var="element_name" value="fee_amount_"|cat:$row.contribution_id}
<td>{$form.$element_name.html}</td>
{assign var="element_name" value="payment_instrument_id_"|cat:$row.contribution_id}
<td class="form-text four">{$form.$element_name.html}</td>
{assign var="element_name" value="check_number_"|cat:$row.contribution_id}
<td class="form-text four">{$form.$element_name.html|crmAddClass:four}</td>
{assign var="element_name" value="trxn_id_"|cat:$row.contribution_id}
<td>{$form.$element_name.html|crmAddClass:eight}</td>
{assign var="element_name" value="trxn_date_"|cat:$row.contribution_id}
<td>{include file="CRM/common/jcalendar.tpl" elementName=$element_name}</td>
</tr>
{/foreach}
</table>
<div class="crm-submit-buttons">{$form.buttons.html}</div>
</fieldset>
</div>

View file

@ -0,0 +1,41 @@
{*
+--------------------------------------------------------------------+
| CiviCRM version 4.7 |
+--------------------------------------------------------------------+
| Copyright CiviCRM LLC (c) 2004-2017 |
+--------------------------------------------------------------------+
| This file is a part of CiviCRM. |
| |
| CiviCRM is free software; you can copy, modify, and distribute it |
| under the terms of the GNU Affero General Public License |
| Version 3, 19 November 2007 and the CiviCRM Licensing Exception. |
| |
| CiviCRM is distributed in the hope that it will be useful, but |
| WITHOUT ANY WARRANTY; without even the implied warranty of |
| MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
| See the GNU Affero General Public License for more details. |
| |
| You should have received a copy of the GNU Affero General Public |
| License and the CiviCRM Licensing Exception along |
| with this program; if not, contact CiviCRM LLC |
| at info[AT]civicrm[DOT]org. If you have questions about the |
| GNU Affero General Public License or the licensing of CiviCRM, |
| see the CiviCRM license FAQ at http://civicrm.org/licensing |
+--------------------------------------------------------------------+
*}
<div class="help">
<div class="icon inform-icon"></div>&nbsp;
{if $mode eq 'auto_renew'}
{ts}Use this form to update the credit card and billing name and address used with the auto-renewal option for your {$membershipType} membership.{/ts}
{else}
<strong>{ts 1=$amount|crmMoney 2=$frequency_interval 3=$frequency_unit}Recurring Contribution Details: %1 every %2 %3{/ts}
{if $installments}
{ts 1=$installments}for %1 installments{/ts}.
{/if}</strong>
<div class="content">{ts}Use this form to update the credit card and billing name and address used for this recurring contribution.{/ts}</div>
{/if}
</div>
{include file="CRM/Core/BillingBlockWrapper.tpl"}
<div class="crm-submit-buttons">{include file="CRM/common/formButtons.tpl" location="bottom"}</div>

View file

@ -0,0 +1,51 @@
{*
+--------------------------------------------------------------------+
| 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-recurcontrib-form-block">
{if $changeHelpText}
<div class="help">
{$changeHelpText}
</div>
{/if}
<div class="crm-submit-buttons">{include file="CRM/common/formButtons.tpl" location="top"}</div>
<table class="form-layout">
<tr>
<td class="label">{$form.amount.label}</td>
<td>{$form.currency.html|crmAddClass:eight}&nbsp;{$form.amount.html|crmAddClass:eight} ({ts}every{/ts} {$frequency_interval} {$frequency_unit})</td>
</tr>
<tr><td class="label">{$form.installments.label}</td><td>{$form.installments.html}<br />
<span class="description">{ts}Total number of payments to be made. Set this to 0 if this is an open-ended commitment i.e. no set end date.{/ts}</span></td></tr>
{foreach from=$editableScheduleFields item='field'}
<tr><td class="label">{$form.$field.label}</td><td>{$form.$field.html}</td></tr>
{/foreach}
{if !$self_service}
<tr><td class="label">{$form.is_notify.label}</td><td>{$form.is_notify.html}</td></tr>
<tr><td class="label">{$form.campaign_id.label}</td><td>{$form.campaign_id.html}</td></tr>
<tr><td class="label">{$form.financial_type_id.label}</td><td>{$form.financial_type_id.html}</td></tr>
{/if}
</table>
<div class="crm-submit-buttons">{include file="CRM/common/formButtons.tpl" location="bottom"}</div>
</div>