First commit
This commit is contained in:
commit
c6e2478c40
13918 changed files with 2303184 additions and 0 deletions
|
@ -0,0 +1,69 @@
|
|||
{*
|
||||
+--------------------------------------------------------------------+
|
||||
| CiviCRM version 4.7 |
|
||||
+--------------------------------------------------------------------+
|
||||
| Copyright CiviCRM LLC (c) 2004-2017 |
|
||||
+--------------------------------------------------------------------+
|
||||
| This file is a part of CiviCRM. |
|
||||
| |
|
||||
| CiviCRM is free software; you can copy, modify, and distribute it |
|
||||
| under the terms of the GNU Affero General Public License |
|
||||
| Version 3, 19 November 2007 and the CiviCRM Licensing Exception. |
|
||||
| |
|
||||
| CiviCRM is distributed in the hope that it will be useful, but |
|
||||
| WITHOUT ANY WARRANTY; without even the implied warranty of |
|
||||
| MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
|
||||
| See the GNU Affero General Public License for more details. |
|
||||
| |
|
||||
| You should have received a copy of the GNU Affero General Public |
|
||||
| License and the CiviCRM Licensing Exception along |
|
||||
| with this program; if not, contact CiviCRM LLC |
|
||||
| at info[AT]civicrm[DOT]org. If you have questions about the |
|
||||
| GNU Affero General Public License or the licensing of CiviCRM, |
|
||||
| see the CiviCRM license FAQ at http://civicrm.org/licensing |
|
||||
+--------------------------------------------------------------------+
|
||||
*}
|
||||
{* this template is used for updating pledge payment*}
|
||||
<div class="crm-block crm-form-block crm-pledge-payment-form-block">
|
||||
<table class="form-layout-compressed">
|
||||
<tr>
|
||||
<td class="label">{ts}Status{/ts}</td>
|
||||
<td class="form-layout">{$status}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="label">{$form.scheduled_date.label}</td>
|
||||
<td>{include file="CRM/common/jcalendar.tpl" elementName=scheduled_date}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="label">{$form.scheduled_amount.label}</td>
|
||||
<td class="form-layout">
|
||||
{$form.currency.html} {$form.scheduled_amount.html}
|
||||
{if !$pledgePayment}
|
||||
<a href="#" class="crm-hover-button action-item adjust-pledge-payment">
|
||||
{ts}Adjust scheduled amount{/ts}
|
||||
</a>
|
||||
{help id="adjust-payment-amount"}
|
||||
{/if}
|
||||
</td>
|
||||
</tr>
|
||||
<tr id="adjust-option-type" class="crm-contribution-form-block-option_type">
|
||||
<td class="label"></td> <td>{$form.option_type.html}</td>
|
||||
</tr>
|
||||
</table>
|
||||
<div class="crm-submit-buttons">{include file="CRM/common/formButtons.tpl" location="bottom"}</div>
|
||||
</fieldset>
|
||||
</div>
|
||||
{literal}
|
||||
<script type="text/javascript">
|
||||
CRM.$(function($) {
|
||||
$('#adjust-option-type').hide();
|
||||
|
||||
$('a.adjust-pledge-payment').click(function(e) {
|
||||
e.preventDefault();
|
||||
$(this).hide();
|
||||
$('#adjust-option-type').show();
|
||||
$("#scheduled_amount").prop("readonly", false);
|
||||
});
|
||||
});
|
||||
</script>
|
||||
{/literal}
|
298
sites/all/modules/civicrm/templates/CRM/Pledge/Form/Pledge.tpl
Normal file
298
sites/all/modules/civicrm/templates/CRM/Pledge/Form/Pledge.tpl
Normal file
|
@ -0,0 +1,298 @@
|
|||
{*
|
||||
+--------------------------------------------------------------------+
|
||||
| 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 pledge *}
|
||||
{if $showAdditionalInfo and $formType }
|
||||
{include file="CRM/Contribute/Form/AdditionalInfo/$formType.tpl"}
|
||||
{else}
|
||||
{if !$email and $action neq 8 and $context neq 'standalone'}
|
||||
<div class="messages status no-popup">
|
||||
<div class="icon inform-icon"></div>
|
||||
<p>{ts}You will not be able to send an acknowledgment for this pledge because there is no email address recorded for this contact. If you want a acknowledgment to be sent when this pledge is recorded, click Cancel and then click Edit from the Summary tab to add an email address before recording the pledge.{/ts}</p>
|
||||
</div>
|
||||
{/if}
|
||||
{if $action EQ 2}
|
||||
{* Check if current Total Pledge Amount is different from original pledge amount. *}
|
||||
{math equation="x / y" x=$amount y=$installments format="%.2f" assign="currentInstallment"}
|
||||
{* Check if current Total Pledge Amount is different from original pledge amount. *}
|
||||
{if $currentInstallment NEQ $eachPaymentAmount}
|
||||
{assign var=originalPledgeAmount value=`$installments*$eachPaymentAmount`}
|
||||
{/if}
|
||||
{/if}
|
||||
<div class="crm-block crm-form-block crm-pledge-form-block">
|
||||
<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>
|
||||
<span class="font-red bold">{ts}WARNING: Deleting this pledge will also delete any related pledge payments.{/ts} {ts}This action cannot be undone.{/ts}</span>
|
||||
<p>{ts}Consider cancelling the pledge instead if you want to maintain an audit trail and avoid losing payment data. To set the pledge status to Cancelled and cancel any not-yet-paid pledge payments, first click Cancel on this form. Then click the more > link from the pledge listing, and select the Cancel action.{/ts}</p>
|
||||
</div>
|
||||
{else}
|
||||
<table class="form-layout-compressed">
|
||||
{if $context eq 'standalone'}
|
||||
<tr class="crm-pledge-form-contact-id">
|
||||
<td class="label">{$form.contact_id.label}</td>
|
||||
<td>{$form.contact_id.html}</td>
|
||||
</tr>
|
||||
{else}
|
||||
<tr class="crm-pledge-form-block-displayName">
|
||||
<td class="font-size12pt right"><strong>{ts}Pledge by{/ts}</strong></td>
|
||||
<td class="font-size12pt"><strong>{$displayName}</strong></td>
|
||||
</tr>
|
||||
{/if}
|
||||
<tr class="crm-pledge-form-block-amount">
|
||||
<td class="label">{$form.amount.label}</td>
|
||||
<td><span>{$form.currency.html|crmAddClass:eight} {$form.amount.html|crmAddClass:eight}</span>
|
||||
{if $originalPledgeAmount}<div class="messages status no-popup"><div class="icon inform-icon"></div> {ts 1=$originalPledgeAmount|crmMoney:$currency} Pledge total has changed due to payment adjustments. Original pledge amount was %1.{/ts}</div>{/if}
|
||||
</td>
|
||||
</tr>
|
||||
<tr class="crm-pledge-form-block-installments">
|
||||
<td class="label">{$form.installments.label}</td>
|
||||
<td>{$form.installments.html} {ts}installments of{/ts}
|
||||
<span class='currency-symbol'>
|
||||
{if $action eq 1 or $isPending}
|
||||
{$form.eachPaymentAmount.html|crmMoney:$currency}
|
||||
{elseif $action eq 2 and !$isPending}
|
||||
{$eachPaymentAmount|crmMoney:$currency}
|
||||
{/if}
|
||||
</span> {ts}every{/ts} {$form.frequency_interval.html} {$form.frequency_unit.html}</td></tr>
|
||||
<tr class="crm-pledge-form-block-frequency_day">
|
||||
<td class="label nowrap">{$form.frequency_day.label}</td>
|
||||
<td>{$form.frequency_day.html} {ts}day of the period{/ts}<br />
|
||||
<span class="description">{ts}This applies to weekly, monthly and yearly payments.{/ts}</td></tr>
|
||||
{if $form.create_date}
|
||||
<tr class="crm-pledge-form-block-create_date">
|
||||
<td class="label">{$form.create_date.label}</td>
|
||||
<td>{include file="CRM/common/jcalendar.tpl" elementName=create_date}<br />
|
||||
{/if}
|
||||
{if $create_date}
|
||||
<tr class="crm-pledge-form-block-create_date">
|
||||
<td class="label">{ts}Pledge Made{/ts}</td>
|
||||
<td class="view-value">{$create_date|truncate:10:''|crmDate}
|
||||
{/if}<br />
|
||||
<span class="description">{ts}Date when pledge was made by the contributor.{/ts}</span></td></tr>
|
||||
|
||||
{if $form.start_date}
|
||||
<tr class="crm-pledge-form-block-start_date">
|
||||
<td class="label">{$form.start_date.label}</td>
|
||||
<td>{include file="CRM/common/jcalendar.tpl" elementName=start_date}<br />
|
||||
{/if}
|
||||
{if $start_date}
|
||||
<tr class="crm-pledge-form-block-start_date">
|
||||
<td class="label">{ts}Payments Start{/ts}</td>
|
||||
<td class="view-value">{$start_date|truncate:10:''|crmDate}
|
||||
{/if}<br />
|
||||
<span class="description">{ts}Date of first pledge payment.{/ts}</span></td></tr>
|
||||
|
||||
{if $email and $outBound_option != 2}
|
||||
{if $form.is_acknowledge }
|
||||
<tr class="crm-pledge-form-block-is_acknowledge">
|
||||
<td class="label">{$form.is_acknowledge.label}</td>
|
||||
<td>{$form.is_acknowledge.html}<br />
|
||||
<span class="description">{ts 1=$email}Automatically email an acknowledgment of this pledge to %1?{/ts}</span></td></tr>
|
||||
{/if}
|
||||
{elseif $context eq 'standalone' and $outBound_option != 2 }
|
||||
<tr id="acknowledgment-receipt" style="display:none;"><td class="label">{$form.is_acknowledge.label}</td><td>{$form.is_acknowledge.html} <span class="description">{ts 1='<span id="email-address"></span>'}Automatically email an acknowledgment of this pledge to %1?{/ts}</span></td></tr>
|
||||
{/if}
|
||||
<tr id="fromEmail" style="display:none;">
|
||||
<td class="label">{$form.from_email_address.label}</td>
|
||||
<td>{$form.from_email_address.html}</td>
|
||||
</tr>
|
||||
<tr id="acknowledgeDate">
|
||||
<td class="label" class="crm-pledge-form-block-acknowledge_date">{$form.acknowledge_date.label}</td>
|
||||
<td>{include file="CRM/common/jcalendar.tpl" elementName=acknowledge_date}<br />
|
||||
<span class="description">{ts}Date when an acknowledgment of the pledge was sent.{/ts}</span></td>
|
||||
</tr>
|
||||
<tr class="crm-pledge-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}Sets the default financial type for payments against this pledge.{/ts}</span></td></tr>
|
||||
|
||||
{* CRM-7362 --add campaign *}
|
||||
{include file="CRM/Campaign/Form/addCampaignToComponent.tpl"
|
||||
campaignTrClass="crm-pledge-form-block-campaign_id"}
|
||||
|
||||
<tr class="crm-pledge-form-block-contribution_page_id">
|
||||
<td class="label">{$form.contribution_page_id.label}</td>
|
||||
<td>{$form.contribution_page_id.html}<br />
|
||||
<span class="description">{ts}Select an Online Contribution page that the user can access to make self-service pledge payments. (Only Online Contribution pages configured to include the Pledge option are listed.){/ts}</span></td>
|
||||
</tr>
|
||||
|
||||
<tr class="crm-pledge-form-block-status">
|
||||
<td class="label">{ts}Pledge Status{/ts}</td>
|
||||
<td class="view-value">{$status}<br />
|
||||
<span class="description">{ts}Pledges are "Pending" until the first payment is received. Once a payment is received, status is "In Progress" until all scheduled payments are completed. Overdue pledges are ones with payment(s) past due.{/ts}</span></td></tr>
|
||||
<tr><td colspan=2>{include file="CRM/Custom/Form/CustomData.tpl"}</td></tr>
|
||||
</table>
|
||||
{literal}
|
||||
<script type="text/javascript">
|
||||
// bind first click of accordion header to load crm-accordion-body with snippet
|
||||
// everything else taken care of by $().crm-accordions()
|
||||
CRM.$(function($) {
|
||||
$('.crm-ajax-accordion .crm-accordion-header').one('click', function() {
|
||||
loadPanes($(this).attr('id'));
|
||||
});
|
||||
$('#currency').on('change', function() {
|
||||
replaceCurrency($('#currency option:selected').text());
|
||||
});
|
||||
$('.crm-ajax-accordion:not(.collapsed) .crm-accordion-header').each(function(index) {
|
||||
loadPanes($(this).attr('id'));
|
||||
});
|
||||
|
||||
function replaceCurrency(val) {
|
||||
var symbol = '';
|
||||
var eachPaymentAmout = $('#eachPaymentAmount');
|
||||
var pos = val.indexOf("(") + 1;
|
||||
if (pos) {
|
||||
symbol = val.slice(pos, val.lastIndexOf(")"));
|
||||
}
|
||||
$('.currency-symbol').text(symbol).append(" ").append(eachPaymentAmout);
|
||||
}
|
||||
|
||||
// load panes function calls for snippet based on id of crm-accordion-header
|
||||
function loadPanes( id ) {
|
||||
var url = "{/literal}{crmURL p='civicrm/contact/view/pledge' q='snippet=4&formType=' h=0}{literal}" + id;
|
||||
{/literal}
|
||||
{if $contributionMode}
|
||||
url = url + "&mode={$contributionMode}";
|
||||
{/if}
|
||||
{literal}
|
||||
if ( ! $('div.'+id).html() ) {
|
||||
var loading = '<img src="{/literal}{$config->resourceBase}i/loading.gif{literal}" alt="{/literal}{ts escape='js'}loading{/ts}{literal}" /> {/literal}{ts escape='js'}Loading{/ts}{literal}...';
|
||||
$('div.'+id).html(loading);
|
||||
$.ajax({
|
||||
url : url,
|
||||
success: function(data) { $('div.'+id).html(data).trigger('crmLoad'); }
|
||||
});
|
||||
}
|
||||
}
|
||||
});
|
||||
</script>
|
||||
{/literal}
|
||||
|
||||
|
||||
<div class="accordion ui-accordion ui-widget ui-helper-reset">
|
||||
{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} {* not delete mode 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_acknowledge').is(':checked')) {
|
||||
var emailAddress = '{/literal}{$email}{literal}';
|
||||
if ( !emailAddress ) {
|
||||
var emailAddress = cj('#email-address').html();
|
||||
}
|
||||
var message = '{/literal}{ts escape="js" 1="%1"}Click OK to save this Pledge record AND send an acknowledgment to %1 now.{/ts}{literal}';
|
||||
return confirm(ts(message, {1: emailAddress}));
|
||||
}
|
||||
}
|
||||
|
||||
function calculatedPaymentAmount( ) {
|
||||
var thousandMarker = {/literal}{crmSetting name="monetaryThousandSeparator" group="CiviCRM Localization"}{literal};
|
||||
var seperator = '{/literal}{$config->monetaryDecimalPoint}{literal}';
|
||||
var amount = document.getElementById("amount").value;
|
||||
// replace all thousandMarker and change the seperator to a dot
|
||||
amount = amount.replace(thousandMarker,'').replace(seperator,'.');
|
||||
var installments = document.getElementById("installments").value;
|
||||
if ( installments != '' && installments != NaN) {
|
||||
amount = amount/installments;
|
||||
var installmentAmount = formatMoney( amount, 2, seperator, thousandMarker );
|
||||
document.getElementById("eachPaymentAmount").value = installmentAmount;
|
||||
}
|
||||
}
|
||||
|
||||
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) : "");
|
||||
};
|
||||
|
||||
{/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) {
|
||||
$("#acknowledgment-receipt", $form).show();
|
||||
$("#email-address", $form).html(data.extra.email);
|
||||
}
|
||||
else {
|
||||
$("#acknowledgment-receipt", $form).hide();
|
||||
}
|
||||
}
|
||||
|
||||
showHideByValue( 'is_acknowledge', '', 'acknowledgeDate', 'table-row', 'radio', true);
|
||||
showHideByValue( 'is_acknowledge', '', 'fromEmail', 'table-row', 'radio', false );
|
||||
});
|
||||
|
||||
{/literal}
|
||||
{/if}
|
||||
</script>
|
||||
|
||||
{if $email and $outBound_option != 2}
|
||||
{include file="CRM/common/showHideByFieldValue.tpl"
|
||||
trigger_field_id ="is_acknowledge"
|
||||
trigger_value =""
|
||||
target_element_id ="acknowledgeDate"
|
||||
target_element_type ="table-row"
|
||||
field_type ="radio"
|
||||
invert = 1
|
||||
}
|
||||
{include file="CRM/common/showHideByFieldValue.tpl"
|
||||
trigger_field_id ="is_acknowledge"
|
||||
trigger_value =""
|
||||
target_element_id ="fromEmail"
|
||||
target_element_type ="table-row"
|
||||
field_type ="radio"
|
||||
invert = 0
|
||||
}
|
||||
{/if}
|
||||
{/if}
|
||||
{* closing of main custom data if *}
|
|
@ -0,0 +1,86 @@
|
|||
{*
|
||||
+--------------------------------------------------------------------+
|
||||
| CiviCRM version 4.7 |
|
||||
+--------------------------------------------------------------------+
|
||||
| Copyright CiviCRM LLC (c) 2004-2017 |
|
||||
+--------------------------------------------------------------------+
|
||||
| This file is a part of CiviCRM. |
|
||||
| |
|
||||
| CiviCRM is free software; you can copy, modify, and distribute it |
|
||||
| under the terms of the GNU Affero General Public License |
|
||||
| Version 3, 19 November 2007 and the CiviCRM Licensing Exception. |
|
||||
| |
|
||||
| CiviCRM is distributed in the hope that it will be useful, but |
|
||||
| WITHOUT ANY WARRANTY; without even the implied warranty of |
|
||||
| MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
|
||||
| See the GNU Affero General Public License for more details. |
|
||||
| |
|
||||
| You should have received a copy of the GNU Affero General Public |
|
||||
| License and the CiviCRM Licensing Exception along |
|
||||
| with this program; if not, contact CiviCRM LLC |
|
||||
| at info[AT]civicrm[DOT]org. If you have questions about the |
|
||||
| GNU Affero General Public License or the licensing of CiviCRM, |
|
||||
| see the CiviCRM license FAQ at http://civicrm.org/licensing |
|
||||
+--------------------------------------------------------------------+
|
||||
*}
|
||||
{math equation="x / y" x=$amount y=$installments format="%.2f" assign="currentInstallment"}
|
||||
{* Check if current Total Pledge Amount is different from original pledge amount. *}
|
||||
{if $currentInstallment NEQ $original_installment_amount}
|
||||
{assign var=originalPledgeAmount value=`$installments*$original_installment_amount`}
|
||||
{/if}
|
||||
|
||||
<div class="crm-block crm-content-block crm-pledge-view-block">
|
||||
<div class="crm-submit-buttons">{include file="CRM/common/formButtons.tpl" location="top"}</div>
|
||||
<table class="crm-info-panel">
|
||||
<tr class="crm-pledge-form-block-displayName"><td class="label">{ts}Pledge By{/ts}</td><td class="bold"><a href="{crmURL p='civicrm/contact/view' q="reset=1&cid=$contactId"}">{$displayName}</a></td></tr>
|
||||
<tr class="crm-pledge-form-block-amount">
|
||||
<td class="label">{ts}Total Pledge Amount{/ts}</td>
|
||||
<td><span class="bold">{$amount|crmMoney:$currency}</span>
|
||||
{if $originalPledgeAmount}<div class="messages status no-popup"><div class="icon inform-icon"></div>{ts 1=$originalPledgeAmount|crmMoney:$currency} Pledge total has changed due to payment adjustments. Original pledge amount was %1.{/ts}</div>{/if}
|
||||
</td>
|
||||
</tr>
|
||||
<tr class="crm-pledge-form-block-installments"><td class="label">{ts}To be paid in{/ts}</td><td>{$installments} {ts}installments of{/ts} {$original_installment_amount|crmMoney:$currency} {ts}every{/ts} {$frequency_interval} {$frequencyUnit}</td></tr>
|
||||
<tr><td class="label">{ts}Payments are due on the{/ts}</td><td>{$frequency_day} day of the period</td></tr>
|
||||
|
||||
{if $start_date}
|
||||
<tr class="crm-pledge-form-block-create_date"><td class="label">{ts}Pledge Made{/ts}</td><td>{$create_date|truncate:10:''|crmDate}</td></tr>
|
||||
<tr class="crm-pledge-form-block-start_date"><td class="label">{ts}Payment Start{/ts}</td><td>{$start_date|truncate:10:''|crmDate}</td></tr>
|
||||
{/if}
|
||||
{if $end_date}
|
||||
<tr class="crm-pledge-form-block-end_date"><td class="label">{ts}End Date{/ts}</td><td>{$end_date|truncate:10:''|crmDate}</td></tr>
|
||||
{/if}
|
||||
{if $cancel_date}
|
||||
<tr class="crm-pledge-form-block-cancel_date"><td class="label">{ts}Cancelled Date{/ts}</td><td>{$cancel_date|truncate:10:''|crmDate}</td></tr>
|
||||
{/if}
|
||||
<tr class="crm-pledge-form-block-contribution_type crm-pledge-form-block-financial_type"><td class="label">{ts}Financial Type{/ts}</td><td>{$financial_type}
|
||||
{if $is_test}
|
||||
{ts}(test){/ts}
|
||||
{/if}
|
||||
</td></tr>
|
||||
|
||||
{if $campaign}
|
||||
<tr class="crm-pledge-form-block-campaign">
|
||||
<td class="label">{ts}Campaign{/ts}</td>
|
||||
<td>{$campaign}</td>
|
||||
</tr>
|
||||
{/if}
|
||||
|
||||
{if $acknowledge_date}
|
||||
<tr class="crm-pledge-form-block-acknowledge_date"><td class="label">{ts}Received{/ts}</td><td>{$acknowledge_date|truncate:10:''|crmDate} </td></tr>
|
||||
{/if}
|
||||
{if $contribution_page}
|
||||
<tr class="crm-pledge-form-block-contribution_page"><td class="label">{ts}Self-service Payments Page{/ts}</td><td>{$contribution_page}</td></tr>
|
||||
{/if}
|
||||
<tr class="crm-pledge-form-block-pledge_status"><td class="label">{ts}Pledge Status{/ts}</td><td{if $status_id eq 3} class="font-red bold"{/if}>{$pledge_status} </td></tr>
|
||||
{if $honor_contact_id}
|
||||
<tr class="crm-pledge-form-block-honor_type"><td class="label">{$honor_type}</td><td>{$honor_display}</td></tr>
|
||||
{/if}
|
||||
<tr class="crm-pledge-form-block-initial_reminder_day"><td class="label">{ts}Initial Reminder Day{/ts}</td><td>{$initial_reminder_day} days prior to schedule date </td></tr>
|
||||
<tr class="crm-pledge-form-block-max_reminders"><td class="label">{ts}Maximum Reminders Send{/ts}</td><td>{$max_reminders} </td></tr>
|
||||
<tr class="crm-pledge-form-block-additional_reminder_day"><td class="label">{ts}Send additional reminders{/ts}</td><td>{$additional_reminder_day} days after the last one sent</td></tr>
|
||||
|
||||
{include file="CRM/Custom/Page/CustomDataView.tpl"}
|
||||
</table>
|
||||
<div class="crm-submit-buttons">{include file="CRM/common/formButtons.tpl" location="bottom"}</div>
|
||||
</div>
|
||||
|
|
@ -0,0 +1,81 @@
|
|||
{*
|
||||
+--------------------------------------------------------------------+
|
||||
| CiviCRM version 4.7 |
|
||||
+--------------------------------------------------------------------+
|
||||
| Copyright CiviCRM LLC (c) 2004-2017 |
|
||||
+--------------------------------------------------------------------+
|
||||
| This file is a part of CiviCRM. |
|
||||
| |
|
||||
| CiviCRM is free software; you can copy, modify, and distribute it |
|
||||
| under the terms of the GNU Affero General Public License |
|
||||
| Version 3, 19 November 2007 and the CiviCRM Licensing Exception. |
|
||||
| |
|
||||
| CiviCRM is distributed in the hope that it will be useful, but |
|
||||
| WITHOUT ANY WARRANTY; without even the implied warranty of |
|
||||
| MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
|
||||
| See the GNU Affero General Public License for more details. |
|
||||
| |
|
||||
| You should have received a copy of the GNU Affero General Public |
|
||||
| License and the CiviCRM Licensing Exception along |
|
||||
| with this program; if not, contact CiviCRM LLC |
|
||||
| at info[AT]civicrm[DOT]org. If you have questions about the |
|
||||
| GNU Affero General Public License or the licensing of CiviCRM, |
|
||||
| see the CiviCRM license FAQ at http://civicrm.org/licensing |
|
||||
+--------------------------------------------------------------------+
|
||||
*}
|
||||
{* Search form and results for Event Participants *}
|
||||
<div class="crm-form-block crm-search-form-block">
|
||||
<div class="crm-accordion-wrapper crm-advanced_search_form-accordion {if $rowsEmpty or $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">
|
||||
|
||||
<div id="searchForm">
|
||||
{strip}
|
||||
<table class="form-layout">
|
||||
<tr>
|
||||
<td class="font-size12pt" colspan="2">
|
||||
{$form.sort_name.label} {$form.sort_name.html|crmAddClass:'twenty'} {$form.buttons.html}
|
||||
</td>
|
||||
</tr>
|
||||
{include file="CRM/Pledge/Form/Search/Common.tpl"}
|
||||
|
||||
<tr>
|
||||
<td colspan="2">{$form.buttons.html}</td>
|
||||
</tr>
|
||||
</table>
|
||||
{/strip}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{if $rowsEmpty || $rows }
|
||||
|
||||
<div class="crm-content-block">
|
||||
|
||||
{if $rowsEmpty}
|
||||
<div class="crm-results-block crm-results-block-empty">
|
||||
{include file="CRM/Pledge/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">
|
||||
{include file="CRM/common/searchResultTasks.tpl"}
|
||||
</div>
|
||||
{* This section displays the rows along and includes the paging controls *}
|
||||
<div class="crm-search-results">
|
||||
{include file="CRM/Pledge/Form/Selector.tpl" context="Search"}
|
||||
</div>
|
||||
{* END Actions/Results section *}
|
||||
</div>
|
||||
{/if}
|
||||
</div>
|
||||
{/if}
|
|
@ -0,0 +1,32 @@
|
|||
{*
|
||||
+--------------------------------------------------------------------+
|
||||
| CiviCRM version 4.7 |
|
||||
+--------------------------------------------------------------------+
|
||||
| Copyright CiviCRM LLC (c) 2004-2017 |
|
||||
+--------------------------------------------------------------------+
|
||||
| This file is a part of CiviCRM. |
|
||||
| |
|
||||
| CiviCRM is free software; you can copy, modify, and distribute it |
|
||||
| under the terms of the GNU Affero General Public License |
|
||||
| Version 3, 19 November 2007 and the CiviCRM Licensing Exception. |
|
||||
| |
|
||||
| CiviCRM is distributed in the hope that it will be useful, but |
|
||||
| WITHOUT ANY WARRANTY; without even the implied warranty of |
|
||||
| MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
|
||||
| See the GNU Affero General Public License for more details. |
|
||||
| |
|
||||
| You should have received a copy of the GNU Affero General Public |
|
||||
| License and the CiviCRM Licensing Exception along |
|
||||
| with this program; if not, contact CiviCRM LLC |
|
||||
| at info[AT]civicrm[DOT]org. If you have questions about the |
|
||||
| GNU Affero General Public License or the licensing of CiviCRM, |
|
||||
| see the CiviCRM license FAQ at http://civicrm.org/licensing |
|
||||
+--------------------------------------------------------------------+
|
||||
*}
|
||||
{if $validCiviPledge}
|
||||
<div id="pledgeForm" class="crm-pledge-advanced_search-form-block">
|
||||
<table class="form-layout">
|
||||
{include file="CRM/Pledge/Form/Search/Common.tpl"}
|
||||
</table>
|
||||
</div>
|
||||
{/if}
|
|
@ -0,0 +1,116 @@
|
|||
{*
|
||||
+--------------------------------------------------------------------+
|
||||
| CiviCRM version 4.7 |
|
||||
+--------------------------------------------------------------------+
|
||||
| Copyright CiviCRM LLC (c) 2004-2017 |
|
||||
+--------------------------------------------------------------------+
|
||||
| This file is a part of CiviCRM. |
|
||||
| |
|
||||
| CiviCRM is free software; you can copy, modify, and distribute it |
|
||||
| under the terms of the GNU Affero General Public License |
|
||||
| Version 3, 19 November 2007 and the CiviCRM Licensing Exception. |
|
||||
| |
|
||||
| CiviCRM is distributed in the hope that it will be useful, but |
|
||||
| WITHOUT ANY WARRANTY; without even the implied warranty of |
|
||||
| MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
|
||||
| See the GNU Affero General Public License for more details. |
|
||||
| |
|
||||
| You should have received a copy of the GNU Affero General Public |
|
||||
| License and the CiviCRM Licensing Exception along |
|
||||
| with this program; if not, contact CiviCRM LLC |
|
||||
| at info[AT]civicrm[DOT]org. If you have questions about the |
|
||||
| GNU Affero General Public License or the licensing of CiviCRM, |
|
||||
| see the CiviCRM license FAQ at http://civicrm.org/licensing |
|
||||
+--------------------------------------------------------------------+
|
||||
*}
|
||||
|
||||
<tr>
|
||||
<td><label>{ts}Payment Scheduled{/ts}</label></td>
|
||||
</tr>
|
||||
<tr>
|
||||
{include file="CRM/Core/DateRange.tpl" fieldName="pledge_payment_date" from='_low' to='_high'}
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="2">
|
||||
<label>{ts}Pledge Payment Status{/ts}</label>
|
||||
<br />{$form.pledge_payment_status_id.html}
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<label>{ts}Pledge Amounts{/ts}</label>
|
||||
<br />
|
||||
{$form.pledge_amount_low.label} {$form.pledge_amount_low.html} {$form.pledge_amount_high.label} {$form.pledge_amount_high.html}
|
||||
</td>
|
||||
<td>
|
||||
<label>{ts}Pledge Status{/ts}</label>
|
||||
<br />{$form.pledge_status_id.html}
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><label>{ts}Pledge Made{/ts}</label></td>
|
||||
</tr>
|
||||
<tr>
|
||||
{include file="CRM/Core/DateRange.tpl" fieldName="pledge_create_date" from='_low' to='_high'}
|
||||
</tr>
|
||||
<tr>
|
||||
<td><label>{ts}Payments Start Date{/ts}</label></td>
|
||||
</tr>
|
||||
<tr>
|
||||
{include file="CRM/Core/DateRange.tpl" fieldName="pledge_start_date" from='_low' to='_high'}
|
||||
</tr>
|
||||
<tr>
|
||||
<td><label>{ts}Payments Ended Date{/ts}</label></td>
|
||||
</tr>
|
||||
<tr>
|
||||
{include file="CRM/Core/DateRange.tpl" fieldName="pledge_end_date" from='_low' to='_high'}
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<label>{ts}Financial Type{/ts}</label>
|
||||
<br />{$form.pledge_financial_type_id.html}
|
||||
</td>
|
||||
<td>
|
||||
<label>{ts}Contribution Page{/ts}</label>
|
||||
<br />{$form.pledge_contribution_page_id.html}
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<br />
|
||||
{$form.pledge_test.label} {help id="is-test" file="CRM/Contact/Form/Search/Advanced"} {$form.pledge_test.html}
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="2">
|
||||
{$form.pledge_frequency_unit.label}
|
||||
<br /> {$form.pledge_frequency_interval.label} {$form.pledge_frequency_interval.html}
|
||||
{$form.pledge_frequency_unit.html}
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="2">
|
||||
{ts}Number of Installments{/ts}
|
||||
{$form.pledge_installments_low.label} {$form.pledge_installments_low.html}
|
||||
{$form.pledge_installments_high.label} {$form.pledge_installments_high.html}
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td colspan="2">
|
||||
<br /> {$form.pledge_acknowledge_date_is_not_null.label} {$form.pledge_acknowledge_date_is_not_null.html}
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
{* campaign in pledge search *}
|
||||
{include file="CRM/Campaign/Form/addCampaignToComponent.tpl"
|
||||
campaignContext="componentSearch" campaignTrClass='' campaignTdClass=''}
|
||||
|
||||
{if $pledgeGroupTree}
|
||||
<tr>
|
||||
<td colspan="2">
|
||||
{include file="CRM/Custom/Form/Search.tpl" groupTree=$pledgeGroupTree showHideLinks=false}
|
||||
</td>
|
||||
</tr>
|
||||
{/if}
|
|
@ -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 |
|
||||
+--------------------------------------------------------------------+
|
||||
*}
|
||||
{* No matches for submitted search request. *}
|
||||
<div class="messages status no-popup">
|
||||
<div class="icon inform-icon"></div>
|
||||
{if $qill}{ts}No matches found for:{/ts}
|
||||
{include file="CRM/common/displaySearchCriteria.tpl"}
|
||||
{else}
|
||||
{ts}None found.{/ts}
|
||||
{/if}
|
||||
{ts}Suggestions:{/ts}
|
||||
<ul>
|
||||
<li>{ts}If you are searching by pledger name, check your 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>
|
|
@ -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 |
|
||||
+--------------------------------------------------------------------+
|
||||
*}
|
||||
{include file="CRM/common/pager.tpl" location="top"}
|
||||
|
||||
<p class="description">
|
||||
{ts}Click arrow to view pledge payments.{/ts}
|
||||
</p>
|
||||
{strip}
|
||||
<table class="selector row-highlight">
|
||||
<thead class="sticky">
|
||||
{if ! $single and $context eq 'Search' }
|
||||
<th scope="col" title="Select Rows">{$form.toggleSelect.html}</th>
|
||||
{/if}
|
||||
{if $single}
|
||||
<th></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}
|
||||
</thead>
|
||||
{counter start=0 skip=1 print=false}
|
||||
{foreach from=$rows item=row}
|
||||
{cycle values="odd-row,even-row" assign=rowClass}
|
||||
<tr id='rowid{$row.pledge_id}' class='{$rowClass} {if $row.pledge_status_name eq 'Overdue' } status-overdue{/if}'>
|
||||
{if $context eq 'Search' }
|
||||
{assign var=cbName value=$row.checkbox}
|
||||
<td>{$form.$cbName.html}</td>
|
||||
{/if}
|
||||
<td>
|
||||
<a class="crm-expand-row" title="{ts}view payments{/ts}" href="{crmURL p='civicrm/pledge/payment' q="action=browse&context=`$context`&pledgeId=`$row.pledge_id`&cid=`$row.contact_id`"}"></a>
|
||||
</td>
|
||||
{if ! $single }
|
||||
<td>
|
||||
{$row.contact_type}
|
||||
<a href="{crmURL p='civicrm/contact/view' q="reset=1&cid=`$row.contact_id`"}">{$row.sort_name}</a>
|
||||
</td>
|
||||
{/if}
|
||||
<td class="right">{$row.pledge_amount|crmMoney:$row.pledge_currency}</td>
|
||||
<td class="right">{$row.pledge_total_paid|crmMoney:$row.pledge_currency}</td>
|
||||
<td class="right">{$row.pledge_amount-$row.pledge_total_paid|crmMoney:$row.pledge_currency}</td>
|
||||
<td>{$row.pledge_financial_type}</td>
|
||||
<td>{$row.pledge_create_date|truncate:10:''|crmDate}</td>
|
||||
<td>{$row.pledge_next_pay_date|truncate:10:''|crmDate}</td>
|
||||
<td class="right">{$row.pledge_next_pay_amount|crmMoney:$row.pledge_currency}</td>
|
||||
<td>{$row.pledge_status}</td>
|
||||
<td>{$row.action|replace:'xx':$row.pledge_id}</td>
|
||||
</tr>
|
||||
{/foreach}
|
||||
|
||||
{* Dashboard only lists 10 most recent pledges. *}
|
||||
{if $context EQ 'dashboard' and $limit and $pager->_totalItems GT $limit }
|
||||
<tr class="even-row">
|
||||
<td colspan="10"><a href="{crmURL p='civicrm/pledge/search' q='reset=1'}">» {ts}Find more pledges{/ts}... </a></td>
|
||||
</tr>
|
||||
{/if}
|
||||
|
||||
</table>
|
||||
{/strip}
|
||||
|
||||
{include file="CRM/common/pager.tpl" location="bottom"}
|
||||
|
||||
{crmScript file='js/crm.expandRow.js'}
|
41
sites/all/modules/civicrm/templates/CRM/Pledge/Form/Task.tpl
Normal file
41
sites/all/modules/civicrm/templates/CRM/Pledge/Form/Task.tpl
Normal file
|
@ -0,0 +1,41 @@
|
|||
{*
|
||||
+--------------------------------------------------------------------+
|
||||
| CiviCRM version 4.7 |
|
||||
+--------------------------------------------------------------------+
|
||||
| Copyright CiviCRM LLC (c) 2004-2017 |
|
||||
+--------------------------------------------------------------------+
|
||||
| This file is a part of CiviCRM. |
|
||||
| |
|
||||
| CiviCRM is free software; you can copy, modify, and distribute it |
|
||||
| under the terms of the GNU Affero General Public License |
|
||||
| Version 3, 19 November 2007 and the CiviCRM Licensing Exception. |
|
||||
| |
|
||||
| CiviCRM is distributed in the hope that it will be useful, but |
|
||||
| WITHOUT ANY WARRANTY; without even the implied warranty of |
|
||||
| MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
|
||||
| See the GNU Affero General Public License for more details. |
|
||||
| |
|
||||
| You should have received a copy of the GNU Affero General Public |
|
||||
| License and the CiviCRM Licensing Exception along |
|
||||
| with this program; if not, contact CiviCRM LLC |
|
||||
| at info[AT]civicrm[DOT]org. If you have questions about the |
|
||||
| GNU Affero General Public License or the licensing of CiviCRM, |
|
||||
| see the CiviCRM license FAQ at http://civicrm.org/licensing |
|
||||
+--------------------------------------------------------------------+
|
||||
*}
|
||||
{ts 1=$totalSelectedPledges}Number of selected pledges: %1{/ts}
|
||||
|
||||
{if $rows }
|
||||
<div class="crm-block crm-form-block crm-pledge-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}
|
|
@ -0,0 +1,33 @@
|
|||
{*
|
||||
+--------------------------------------------------------------------+
|
||||
| CiviCRM version 4.7 |
|
||||
+--------------------------------------------------------------------+
|
||||
| Copyright CiviCRM LLC (c) 2004-2017 |
|
||||
+--------------------------------------------------------------------+
|
||||
| This file is a part of CiviCRM. |
|
||||
| |
|
||||
| CiviCRM is free software; you can copy, modify, and distribute it |
|
||||
| under the terms of the GNU Affero General Public License |
|
||||
| Version 3, 19 November 2007 and the CiviCRM Licensing Exception. |
|
||||
| |
|
||||
| CiviCRM is distributed in the hope that it will be useful, but |
|
||||
| WITHOUT ANY WARRANTY; without even the implied warranty of |
|
||||
| MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
|
||||
| See the GNU Affero General Public License for more details. |
|
||||
| |
|
||||
| You should have received a copy of the GNU Affero General Public |
|
||||
| License and the CiviCRM Licensing Exception along |
|
||||
| with this program; if not, contact CiviCRM LLC |
|
||||
| at info[AT]civicrm[DOT]org. If you have questions about the |
|
||||
| GNU Affero General Public License or the licensing of CiviCRM, |
|
||||
| see the CiviCRM license FAQ at http://civicrm.org/licensing |
|
||||
+--------------------------------------------------------------------+
|
||||
*}
|
||||
{* Confirmation of participation deletes *}
|
||||
<div class="messages status no-popup">
|
||||
<div class="icon inform-icon"></div>
|
||||
<p>{ts}Are you sure you want to delete the selected pledges? This delete operation cannot be undone and will delete all transactions associated with these pledges.{/ts}</p>
|
||||
<p>{include file="CRM/Pledge/Form/Task.tpl"}</p>
|
||||
</div>
|
||||
<p>
|
||||
<div class="crm-submit-buttons">{include file="CRM/common/formButtons.tpl" location="bottom"}</div>
|
|
@ -0,0 +1,65 @@
|
|||
{*
|
||||
+--------------------------------------------------------------------+
|
||||
| CiviCRM version 4.7 |
|
||||
+--------------------------------------------------------------------+
|
||||
| Copyright CiviCRM LLC (c) 2004-2017 |
|
||||
+--------------------------------------------------------------------+
|
||||
| This file is a part of CiviCRM. |
|
||||
| |
|
||||
| CiviCRM is free software; you can copy, modify, and distribute it |
|
||||
| under the terms of the GNU Affero General Public License |
|
||||
| Version 3, 19 November 2007 and the CiviCRM Licensing Exception. |
|
||||
| |
|
||||
| CiviCRM is distributed in the hope that it will be useful, but |
|
||||
| WITHOUT ANY WARRANTY; without even the implied warranty of |
|
||||
| MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
|
||||
| See the GNU Affero General Public License for more details. |
|
||||
| |
|
||||
| You should have received a copy of the GNU Affero General Public |
|
||||
| License and the CiviCRM Licensing Exception along |
|
||||
| with this program; if not, contact CiviCRM LLC |
|
||||
| at info[AT]civicrm[DOT]org. If you have questions about the |
|
||||
| GNU Affero General Public License or the licensing of CiviCRM, |
|
||||
| see the CiviCRM license FAQ at http://civicrm.org/licensing |
|
||||
+--------------------------------------------------------------------+
|
||||
*}
|
||||
<p>
|
||||
|
||||
{if $rows }
|
||||
<div class="form-item">
|
||||
<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}Create Date{/ts}</th>
|
||||
<th>{ts}To Be Paid{/ts}</th>
|
||||
<th>{ts}Beginning Date{/ts}</th>
|
||||
<th>{ts}Status{/ts}</th>
|
||||
</tr>
|
||||
{foreach from=$rows item=row}
|
||||
<tr class="{cycle values="odd-row,even-row"}">
|
||||
<td class="crm-pledge-sort_name" >{$row.sort_name}</td>
|
||||
<td class="crm-pledge-pledge_amount">{$row.pledge_amount|crmMoney}</td>
|
||||
<td class="crm-pledge-pledge_create_date">{$row.pledge_create_date|truncate:10:''|crmDate}</td>
|
||||
<td class="crm-pledge-pledge_frequency_interval">{$row.pledge_frequency_interval} {$row.pledge_frequency_unit|capitalize:true}(s) </td>
|
||||
<td class="crm-pledge-.pledge_start_date">{$row.pledge_start_date|truncate:10:''|crmDate}</td>
|
||||
<td class="crm-pledge-pledge_status">{$row.pledge_status_id}</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"></div>
|
||||
{ts}There are no records selected for Print.{/ts}
|
||||
</div>
|
||||
{/if}
|
|
@ -0,0 +1,30 @@
|
|||
{*
|
||||
+--------------------------------------------------------------------+
|
||||
| CiviCRM version 4.7 |
|
||||
+--------------------------------------------------------------------+
|
||||
| Copyright CiviCRM LLC (c) 2004-2017 |
|
||||
+--------------------------------------------------------------------+
|
||||
| This file is a part of CiviCRM. |
|
||||
| |
|
||||
| CiviCRM is free software; you can copy, modify, and distribute it |
|
||||
| under the terms of the GNU Affero General Public License |
|
||||
| Version 3, 19 November 2007 and the CiviCRM Licensing Exception. |
|
||||
| |
|
||||
| CiviCRM is distributed in the hope that it will be useful, but |
|
||||
| WITHOUT ANY WARRANTY; without even the implied warranty of |
|
||||
| MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
|
||||
| See the GNU Affero General Public License for more details. |
|
||||
| |
|
||||
| You should have received a copy of the GNU Affero General Public |
|
||||
| License and the CiviCRM Licensing Exception along |
|
||||
| with this program; if not, contact CiviCRM LLC |
|
||||
| at info[AT]civicrm[DOT]org. If you have questions about the |
|
||||
| GNU Affero General Public License or the licensing of CiviCRM, |
|
||||
| see the CiviCRM license FAQ at http://civicrm.org/licensing |
|
||||
+--------------------------------------------------------------------+
|
||||
*}
|
||||
<div class='spacer'></div>
|
||||
<div class="crm-block crm-form-block crm-pledge-result-form-block">
|
||||
<div class="crm-submit-buttons">{include file="CRM/common/formButtons.tpl" location="bottom"}</div>
|
||||
</div>
|
||||
|
|
@ -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="form-item">
|
||||
<fieldset>
|
||||
<legend>{ts}Smart Group{/ts}</legend>
|
||||
<div class="crm-submit-buttons">{include file="CRM/common/formButtons.tpl" location="top"}</div>
|
||||
{if $qill[0]}
|
||||
<div id="search-status">
|
||||
<ul>
|
||||
{foreach from=$qill item=criteria}
|
||||
<li>{$criteria}</li>
|
||||
{/foreach}
|
||||
</ul>
|
||||
<br />
|
||||
</div>
|
||||
{/if}
|
||||
<div class="form-item">
|
||||
<table class="form-layout-compressed">
|
||||
<tr class="crm-pledge-form-block-title">
|
||||
<td class="label">{$form.title.label}</td>
|
||||
<td class="html-adjust">{$form.title.html}</td>
|
||||
</tr>
|
||||
<tr class="crm-pledge-form-block-description">
|
||||
<td class="label">{$form.description.label}</td>
|
||||
<td class="html-adjust">{$form.description.html}</td>
|
||||
</tr>
|
||||
</table>
|
||||
<div>
|
||||
{include file="CRM/Event/Form/Task.tpl"}
|
||||
</div>
|
||||
<div class="crm-submit-buttons">{include file="CRM/common/formButtons.tpl" location="bottom"}</div>
|
||||
</div>
|
||||
</fieldset>
|
||||
</div>
|
||||
|
|
@ -0,0 +1,26 @@
|
|||
{*
|
||||
+--------------------------------------------------------------------+
|
||||
| CiviCRM version 4.7 |
|
||||
+--------------------------------------------------------------------+
|
||||
| Copyright CiviCRM LLC (c) 2004-2017 |
|
||||
+--------------------------------------------------------------------+
|
||||
| This file is a part of CiviCRM. |
|
||||
| |
|
||||
| CiviCRM is free software; you can copy, modify, and distribute it |
|
||||
| under the terms of the GNU Affero General Public License |
|
||||
| Version 3, 19 November 2007 and the CiviCRM Licensing Exception. |
|
||||
| |
|
||||
| CiviCRM is distributed in the hope that it will be useful, but |
|
||||
| WITHOUT ANY WARRANTY; without even the implied warranty of |
|
||||
| MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
|
||||
| See the GNU Affero General Public License for more details. |
|
||||
| |
|
||||
| You should have received a copy of the GNU Affero General Public |
|
||||
| License and the CiviCRM Licensing Exception along |
|
||||
| with this program; if not, contact CiviCRM LLC |
|
||||
| at info[AT]civicrm[DOT]org. If you have questions about the |
|
||||
| GNU Affero General Public License or the licensing of CiviCRM, |
|
||||
| see the CiviCRM license FAQ at http://civicrm.org/licensing |
|
||||
+--------------------------------------------------------------------+
|
||||
*}
|
||||
{include file="CRM/Event/Form/Task/SaveSearch.tpl"}
|
|
@ -0,0 +1,37 @@
|
|||
{if $rows}
|
||||
<div class="form-item">
|
||||
<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}Pledge Amount{/ts}</th>
|
||||
<th>{ts}Pledge Made{/ts}</th>
|
||||
</tr>
|
||||
|
||||
{foreach from=$rows item=row}
|
||||
<tr class="{cycle values="odd-row,even-row"}">
|
||||
<td class="crm-pledge-display_name">{$row.display_name}</td>
|
||||
<td class="crm-pledge-amount">{$row.amount}</td>
|
||||
<td class="crm-pledge-create_date">{$row.create_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">
|
||||
<dt><div class="icon inform-icon"></div>
|
||||
{ts}There are no records selected.{/ts}
|
||||
</dl>
|
||||
</div>
|
||||
{/if}
|
|
@ -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 |
|
||||
+--------------------------------------------------------------------+
|
||||
*}
|
||||
{* CiviPledge DashBoard (launch page) *}
|
||||
|
||||
<h3>{ts}Pledge Summary{/ts}</h3>
|
||||
<table class="report">
|
||||
<tr class="columnheader-dark">
|
||||
<th> </th>
|
||||
<th scope="col" colspan="2" class="right" style="padding-right: 10px;">{$previousMonthYear}</th>
|
||||
<th scope="col" colspan="2" class="right" style="padding-right: 10px;">{$currentMonthYear}<br /><span class="extra">{ts}(current month){/ts}</span></th>
|
||||
<th scope="col" colspan="2" class="right" style="padding-right: 10px;">{$curYear}<br /><span class="extra">{ts}(current year){/ts}</span></th>
|
||||
<th scope="col" colspan="2" class="right" style="padding-right: 10px;">{ts}Cumulative{/ts}<br /><span class="extra">{ts}(since inception){/ts}</span></th>
|
||||
</tr>
|
||||
<tr>
|
||||
<td scope="row"><strong>{ts}Total Pledges{/ts}</strong></td>
|
||||
{* prior month *}
|
||||
<td class="right"><a href="{$previousToDate.Completed.purl}">{$previousToDate.Completed.pledge_count}</a></td><td class="right" style="border-right: 5px double #999999;">{if $previousToDate.Completed.pledge_count }<a href="{$previousToDate.Completed.purl}">{$previousToDate.Completed.pledge_amount}</a>{/if}</td>
|
||||
{* current month *}
|
||||
<td class="right"><a href="{$monthToDate.Completed.purl}">{$monthToDate.Completed.pledge_count}</a></td><td class="right" style="border-right: 5px double #999999;">{if $monthToDate.Completed.pledge_count }<a href="{$monthToDate.Completed.purl}">{$monthToDate.Completed.pledge_amount}</a>{/if}</td>
|
||||
{* current year *}
|
||||
<td class="right"><a href="{$yearToDate.Completed.purl}">{$yearToDate.Completed.pledge_count}</a></td><td class="right" style="border-right: 5px double #999999;">{if $yearToDate.Completed.pledge_count }<a href="{$yearToDate.Completed.purl}">{$yearToDate.Completed.pledge_amount}</a>{/if}</td>
|
||||
{* cumulative *}
|
||||
<td class="right"><a href="{$startToDate.Completed.purl}">{$startToDate.Completed.pledge_count}</a></td><td class="right">{if $startToDate.Completed.pledge_count }<a href="{$startToDate.Completed.purl}">{$startToDate.Completed.pledge_amount}</a>{/if}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td scope="row"><strong>{ts}Payments Received{/ts}</strong></td>
|
||||
{* prior month *}
|
||||
<td class="right"><a href="{$previousToDate.Completed.url}">{$previousToDate.Completed.received_count}</a></td><td class="right" style="border-right: 5px double #999999;">{if $previousToDate.Completed.received_count }<a href="{$previousToDate.Completed.url}">{$previousToDate.Completed.received_amount}</a>{/if}</td>
|
||||
{* current month *}
|
||||
<td class="right"><a href="{$monthToDate.Completed.url}">{$monthToDate.Completed.received_count}</a></td><td class="right" style="border-right: 5px double #999999;">{if $monthToDate.Completed.received_count}<a href="{$monthToDate.Completed.url}">{$monthToDate.Completed.received_amount}</a>{/if}</td>
|
||||
{* current year *}
|
||||
<td class="right"><a href="{$yearToDate.Completed.url}">{$yearToDate.Completed.received_count}</a></td><td class="right" style="border-right: 5px double #999999;">{if $yearToDate.Completed.received_count }<a href="{$yearToDate.Completed.url}">{$yearToDate.Completed.received_amount}</a>{/if}</td>
|
||||
{* cumulative *}
|
||||
<td class="right"><a href="{$startToDate.Completed.url}">{$startToDate.Completed.received_count}</a></td><td class="right">{if $startToDate.Completed.received_count }<a href="{$startToDate.Completed.url}">{$startToDate.Completed.received_amount}</a>{/if}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td scope="row"><strong>{ts}Balance Due{/ts}</strong></td>
|
||||
{* prior month *}
|
||||
<td class="right"><a href="{$previousToDate.Pending.url}">{$previousToDate.Pending.received_count}</a></td><td class="right" style="border-right: 5px double #999999;">{if $previousToDate.Pending.received_count }<a href="{$previousToDate.Pending.url}">{$previousToDate.Pending.received_amount}</a>{/if}</td>
|
||||
{* current month *}
|
||||
<td class="right"><a href="{$monthToDate.Pending.url}">{$monthToDate.Pending.received_count}</a></td><td class="right" style="border-right: 5px double #999999;">{if $monthToDate.Pending.received_count }<a href="{$monthToDate.Pending.url}">{$monthToDate.Pending.received_amount}</a>{/if}</td>
|
||||
{* current year *}
|
||||
<td class="right"><a href="{$yearToDate.Pending.url}">{$yearToDate.Pending.received_count}</a></td><td class="right" style="border-right: 5px double #999999;">{if $yearToDate.Pending.received_count }<a href="{$yearToDate.Pending.url}">{$yearToDate.Pending.received_amount}</a>{/if}</td>
|
||||
{* cumulative *}
|
||||
<td class="right"><a href="{$startToDate.Pending.url}">{$startToDate.Pending.received_count}</a></td><td class="right">{if $startToDate.Pending.received_count }<a href="{$startToDate.Pending.url}">{$startToDate.Pending.received_amount}</a>{/if}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td scope="row"><strong>{ts}Past Due{/ts}</strong></td>
|
||||
{* prior month *}
|
||||
<td class="right"><a href="{$previousToDate.Overdue.url}">{$previousToDate.Overdue.received_count}</a></td><td class="right" style="border-right: 5px double #999999;">{if $previousToDate.Overdue.received_count }<a href="{$previousToDate.Overdue.url}">{$previousToDate.Overdue.received_amount}</a>{/if}</td>
|
||||
{* current month *}
|
||||
<td class="right"><a href="{$monthToDate.Overdue.url}">{$monthToDate.Overdue.received_count}</a></td><td class="right" style="border-right: 5px double #999999;">{if $monthToDate.Overdue.received_count }<a href="{$monthToDate.Overdue.url}">{$monthToDate.Overdue.received_amount}</a>{/if}</td>
|
||||
{* current year *}
|
||||
<td class="right"><a href="{$yearToDate.Overdue.url}">{$yearToDate.Overdue.received_count}</a></td><td class="right" style="border-right: 5px double #999999;">{if $yearToDate.Overdue.received_count }<a href="{$yearToDate.Overdue.url}">{$yearToDate.Overdue.received_amount}</a>{/if}</td>
|
||||
{* cumulative *}
|
||||
<td class="right"><a href="{$startToDate.Overdue.url}">{$startToDate.Overdue.received_count}</a></td><td class="right">{if $startToDate.Overdue.received_count }<a href="{$startToDate.Overdue.url}">{$startToDate.Overdue.received_amount}</a>{/if}</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<div class="spacer"></div>
|
||||
|
||||
{if $pager->_totalItems}
|
||||
<h3>{ts}Recent Pledges{/ts}</h3>
|
||||
<div>
|
||||
{include file="CRM/Pledge/Form/Selector.tpl" context="dashboard"}
|
||||
</div>
|
||||
{/if}
|
|
@ -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 |
|
||||
+--------------------------------------------------------------------+
|
||||
*}
|
||||
{htxt id="adjust-payment-amount-title"}
|
||||
{ts}Payment Amount{/ts}
|
||||
{/htxt}
|
||||
{htxt id="adjust-payment-amount"}
|
||||
{ts}If you enter an amount which is different than the current scheduled amount, choose one of these options:{/ts}
|
||||
<p>
|
||||
<strong>{ts}Adjust Pledge Payment Schedule{/ts}</strong><br />
|
||||
{ts}The next scheduled payment will be adjusted up or down to make up the difference.{/ts}<br />
|
||||
<em>{ts}Example: If you enter a payment of 60 when the scheduled amount is 50, the next scheduled payment is adjusted to 40.{/ts}</em>
|
||||
</p>
|
||||
<p>
|
||||
<strong>{ts}Adjust Total Pledge Amount{/ts}</strong><br />
|
||||
{ts}The total amount of the pledge will be adjusted up or down to make up the difference. The payment schedule ( amounts / dates for future pending pledge payments ) is not changed.{/ts}<br />
|
||||
<em>{ts}Example: If you enter a payment of 60 when the scheduled amount is 50, the total pledge amount will be increased by 10.{/ts}</em>
|
||||
</p>
|
||||
{/htxt}
|
||||
|
|
@ -0,0 +1,72 @@
|
|||
{*
|
||||
+--------------------------------------------------------------------+
|
||||
| CiviCRM version 4.7 |
|
||||
+--------------------------------------------------------------------+
|
||||
| Copyright CiviCRM LLC (c) 2004-2017 |
|
||||
+--------------------------------------------------------------------+
|
||||
| This file is a part of CiviCRM. |
|
||||
| |
|
||||
| CiviCRM is free software; you can copy, modify, and distribute it |
|
||||
| under the terms of the GNU Affero General Public License |
|
||||
| Version 3, 19 November 2007 and the CiviCRM Licensing Exception. |
|
||||
| |
|
||||
| CiviCRM is distributed in the hope that it will be useful, but |
|
||||
| WITHOUT ANY WARRANTY; without even the implied warranty of |
|
||||
| MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
|
||||
| See the GNU Affero General Public License for more details. |
|
||||
| |
|
||||
| You should have received a copy of the GNU Affero General Public |
|
||||
| License and the CiviCRM Licensing Exception along |
|
||||
| with this program; if not, contact CiviCRM LLC |
|
||||
| at info[AT]civicrm[DOT]org. If you have questions about the |
|
||||
| GNU Affero General Public License or the licensing of CiviCRM, |
|
||||
| see the CiviCRM license FAQ at http://civicrm.org/licensing |
|
||||
+--------------------------------------------------------------------+
|
||||
*}
|
||||
{if $action eq 2 } {* update *}
|
||||
{include file="CRM/Pledge/Form/Payment.tpl"}
|
||||
{else}
|
||||
{if $context eq 'dashboard'}{assign var='context' value='pledgeDashboard'}{/if}
|
||||
<table class="nestedSelector">
|
||||
<tr class="columnheader">
|
||||
<th>{ts}Amount Due{/ts}</th>
|
||||
<th>{ts}Due Date{/ts}</th>
|
||||
<th>{ts}Amount Paid{/ts}</th>
|
||||
<th>{ts}Paid Date{/ts}</th>
|
||||
<th>{ts}Last Reminder{/ts}</th>
|
||||
<th>{ts}Reminders Sent{/ts}</th>
|
||||
<th colspan="2">{ts}Status{/ts}</th>
|
||||
</tr>
|
||||
|
||||
{foreach from=$rows item=row}
|
||||
<tr class="{cycle values="odd-row,even-row"} {if $row.status eq 'Overdue' } status-overdue{/if}">
|
||||
<td class="right">{$row.scheduled_amount|crmMoney:$row.currency}</td>
|
||||
<td>{$row.scheduled_date|truncate:10:''|crmDate}</td>
|
||||
<td class="right">{$row.total_amount|crmMoney:$row.currency}</td>
|
||||
<td>{$row.receive_date|truncate:10:''|crmDate}</td>
|
||||
<td>{$row.reminder_date|truncate:10:''|crmDate}</td>
|
||||
<td class="right">{if $row.reminder_count}{$row.reminder_count}{/if}</td>
|
||||
<td {if ! ($permission EQ 'edit' and ($row.status eq 'Pending' or $row.status eq 'Overdue' or $row.status eq 'Completed')) } colspan="2"{/if} >{$row.label}</td>
|
||||
{if $context neq user}
|
||||
{if $permission EQ 'edit' and ($row.status eq 'Pending' or $row.status eq 'Overdue' or $row.status eq 'Completed') }
|
||||
<td class="nowrap">
|
||||
{if $row.status eq 'Completed'} {* Link to view contribution record for completed payment.*}
|
||||
{capture assign=viewContribURL}{crmURL p="civicrm/contact/view/contribution" q="reset=1&id=`$row.contribution_id`&cid=`$contactId`&action=view&context=`$context`"}{/capture}
|
||||
<a class="crm-hover-button action-item" href="{$viewContribURL}">{ts}View Payment{/ts}</a>
|
||||
{else} {* Links to record / submit a payment. *}
|
||||
{capture assign=newContribURL}{crmURL p="civicrm/contact/view/contribution" q="reset=1&action=add&cid=`$contactId`&context=`$context`&ppid=`$row.id`"}{/capture}
|
||||
<a class="open-inline-noreturn crm-hover-button action-item" href="{$newContribURL}">{ts}Record Payment{/ts}</a>
|
||||
{if $newCredit}
|
||||
{capture assign=newCreditURL}{crmURL p="civicrm/contact/view/contribution" q="reset=1&action=add&cid=`$contactId`&ppid=`$row.id`&context=`$context`&mode=live"}{/capture}
|
||||
<a class="open-inline-noreturn action-item crm-hover-button" href="{$newCreditURL}">{ts}Credit Card Payment{/ts}</a>
|
||||
{/if}
|
||||
{capture assign=editURL}{crmURL p="civicrm/pledge/payment" q="reset=1&action=update&cid=`$contactId`&context=`$context`&ppId=`$row.id`"}{/capture}
|
||||
<a class="crm-hover-button action-item" href="{$editURL}">{ts}Edit Scheduled Payment{/ts}</a>
|
||||
{/if}
|
||||
</td>
|
||||
{/if}
|
||||
{/if}
|
||||
</tr>
|
||||
{/foreach}
|
||||
</table>
|
||||
{/if}
|
41
sites/all/modules/civicrm/templates/CRM/Pledge/Page/Tab.hlp
Normal file
41
sites/all/modules/civicrm/templates/CRM/Pledge/Page/Tab.hlp
Normal file
|
@ -0,0 +1,41 @@
|
|||
{*
|
||||
+--------------------------------------------------------------------+
|
||||
| CiviCRM version 4.7 |
|
||||
+--------------------------------------------------------------------+
|
||||
| Copyright CiviCRM LLC (c) 2004-2017 |
|
||||
+--------------------------------------------------------------------+
|
||||
| This file is a part of CiviCRM. |
|
||||
| |
|
||||
| CiviCRM is free software; you can copy, modify, and distribute it |
|
||||
| under the terms of the GNU Affero General Public License |
|
||||
| Version 3, 19 November 2007 and the CiviCRM Licensing Exception. |
|
||||
| |
|
||||
| CiviCRM is distributed in the hope that it will be useful, but |
|
||||
| WITHOUT ANY WARRANTY; without even the implied warranty of |
|
||||
| MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
|
||||
| See the GNU Affero General Public License for more details. |
|
||||
| |
|
||||
| You should have received a copy of the GNU Affero General Public |
|
||||
| License and the CiviCRM Licensing Exception along |
|
||||
| with this program; if not, contact CiviCRM LLC |
|
||||
| at info[AT]civicrm[DOT]org. If you have questions about the |
|
||||
| GNU Affero General Public License or the licensing of CiviCRM, |
|
||||
| see the CiviCRM license FAQ at http://civicrm.org/licensing |
|
||||
+--------------------------------------------------------------------+
|
||||
*}
|
||||
{htxt id="id-payment-reminders-title"}
|
||||
{ts}Payment Reminders{/ts}
|
||||
{/htxt}
|
||||
{htxt id="id-payment-reminders"}
|
||||
<p>
|
||||
{ts}One or more payment reminders can be emailed to this contributor based on the values entered in this section. If a 'Self-service Payments Page' has been selected, the reminder will include a link for the contributor to make their payment online.{/ts}
|
||||
</p>
|
||||
<p>
|
||||
{ts}In order for reminders to be sent:{/ts}
|
||||
<ol>
|
||||
<li>{ts}Your site administrator must configure the scheduled job (Administer > System Settings > Scheduled Jobs) which updates pledge payment statuses and sends the reminders.{/ts}</li>
|
||||
<li>{ts}Your site administrator must also configure a "cron job" (scheduled server task) to run this script.{/ts}</li>
|
||||
<li>{ts}This contributor must have a valid email address (and must not have the "Do Not Email" flag checked).{/ts}</li>
|
||||
</ol>
|
||||
</p>
|
||||
{/htxt}
|
68
sites/all/modules/civicrm/templates/CRM/Pledge/Page/Tab.tpl
Normal file
68
sites/all/modules/civicrm/templates/CRM/Pledge/Page/Tab.tpl
Normal file
|
@ -0,0 +1,68 @@
|
|||
{*
|
||||
+--------------------------------------------------------------------+
|
||||
| CiviCRM version 4.7 |
|
||||
+--------------------------------------------------------------------+
|
||||
| Copyright CiviCRM LLC (c) 2004-2017 |
|
||||
+--------------------------------------------------------------------+
|
||||
| This file is a part of CiviCRM. |
|
||||
| |
|
||||
| CiviCRM is free software; you can copy, modify, and distribute it |
|
||||
| under the terms of the GNU Affero General Public License |
|
||||
| Version 3, 19 November 2007 and the CiviCRM Licensing Exception. |
|
||||
| |
|
||||
| CiviCRM is distributed in the hope that it will be useful, but |
|
||||
| WITHOUT ANY WARRANTY; without even the implied warranty of |
|
||||
| MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
|
||||
| See the GNU Affero General Public License for more details. |
|
||||
| |
|
||||
| You should have received a copy of the GNU Affero General Public |
|
||||
| License and the CiviCRM Licensing Exception along |
|
||||
| with this program; if not, contact CiviCRM LLC |
|
||||
| at info[AT]civicrm[DOT]org. If you have questions about the |
|
||||
| GNU Affero General Public License or the licensing of CiviCRM, |
|
||||
| see the CiviCRM license FAQ at http://civicrm.org/licensing |
|
||||
+--------------------------------------------------------------------+
|
||||
*}
|
||||
<div class="view-content">
|
||||
{if $action eq 1 or $action eq 2 or $action eq 8} {* add, update or view *}
|
||||
{include file="CRM/Pledge/Form/Pledge.tpl"}
|
||||
{elseif $action eq 4}
|
||||
{include file="CRM/Pledge/Form/PledgeView.tpl"}
|
||||
{else}
|
||||
<div class="help">
|
||||
{ts 1=$displayName}Pledges received from %1 since inception.{/ts}
|
||||
{if $permission EQ 'edit'}
|
||||
{capture assign=newContribURL}{crmURL p="civicrm/contact/view/pledge" q="reset=1&action=add&cid=`$contactId`&context=pledge"}{/capture}
|
||||
{capture assign=link}class="action-item" href="{$newContribURL}"{/capture}
|
||||
{ts 1=$link}Click <a %1>Add Pledge</a> to record a new pledge received from this contact.{/ts}
|
||||
{/if}
|
||||
</div>
|
||||
|
||||
{if $action eq 16 and $permission EQ 'edit'}
|
||||
<div class="action-link">
|
||||
<a accesskey="N" href="{$newContribURL}" class="button"><span><i class="crm-i fa-plus-circle"></i> {ts}Add Pledge{/ts}</a></span>
|
||||
<br/><br/>
|
||||
</div>
|
||||
{/if}
|
||||
|
||||
|
||||
{if $rows}
|
||||
<p> </p>
|
||||
{include file="CRM/Pledge/Form/Selector.tpl"}
|
||||
|
||||
{else}
|
||||
<div class="messages status no-popup">
|
||||
<div class="icon inform-icon"></div>
|
||||
{ts}No pledges have been recorded from this contact.{/ts}
|
||||
</div>
|
||||
{/if}
|
||||
|
||||
{if $honor}
|
||||
<div class="solid-border-top">
|
||||
<br /><label>{ts 1=$displayName}Contributions made in honor of %1{/ts}</label>
|
||||
</div>
|
||||
{include file="CRM/Contribute/Page/ContributionHonor.tpl"}
|
||||
{/if}
|
||||
|
||||
{/if}
|
||||
</div>
|
|
@ -0,0 +1,101 @@
|
|||
{*
|
||||
+--------------------------------------------------------------------+
|
||||
| CiviCRM version 4.7 |
|
||||
+--------------------------------------------------------------------+
|
||||
| Copyright CiviCRM LLC (c) 2004-2017 |
|
||||
+--------------------------------------------------------------------+
|
||||
| This file is a part of CiviCRM. |
|
||||
| |
|
||||
| CiviCRM is free software; you can copy, modify, and distribute it |
|
||||
| under the terms of the GNU Affero General Public License |
|
||||
| Version 3, 19 November 2007 and the CiviCRM Licensing Exception. |
|
||||
| |
|
||||
| CiviCRM is distributed in the hope that it will be useful, but |
|
||||
| WITHOUT ANY WARRANTY; without even the implied warranty of |
|
||||
| MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
|
||||
| See the GNU Affero General Public License for more details. |
|
||||
| |
|
||||
| You should have received a copy of the GNU Affero General Public |
|
||||
| License and the CiviCRM Licensing Exception along |
|
||||
| with this program; if not, contact CiviCRM LLC |
|
||||
| at info[AT]civicrm[DOT]org. If you have questions about the |
|
||||
| GNU Affero General Public License or the licensing of CiviCRM, |
|
||||
| see the CiviCRM license FAQ at http://civicrm.org/licensing |
|
||||
+--------------------------------------------------------------------+
|
||||
*}
|
||||
{if $context eq 'user'}
|
||||
<div class="view-content">
|
||||
{if $pledge_rows}
|
||||
{strip}
|
||||
<table class="selector">
|
||||
<tr class="columnheader">
|
||||
{foreach from=$pledge_columnHeaders item=header}
|
||||
<th>{$header.name}</th>
|
||||
{/foreach}
|
||||
</tr>
|
||||
{counter start=0 skip=1 print=false}
|
||||
{foreach from=$pledge_rows item=row}
|
||||
<tr id='rowid{$row.pledge_id}' class="{cycle values="odd-row,even-row"} {if $row.pledge_status_name eq 'Overdue' } disabled{/if} crm-pledge crm-pledge_{$row.pledge_id} ">
|
||||
<td class="crm-pledge-pledge_amount">{$row.pledge_amount|crmMoney:$row.pledge_currency}</td>
|
||||
<td class="crm-pledge-pledge_total_paid">{$row.pledge_total_paid|crmMoney:$row.pledge_currency}</td>
|
||||
<td class="crm-pledge-pledge_amount">{$row.pledge_amount-$row.pledge_total_paid|crmMoney:$row.pledge_currency}</td>
|
||||
<td class="crm-pledge-pledge_contribution_type">{$row.pledge_financial_type}</td>
|
||||
<td class="crm-pledge-pledge_create_date">{$row.pledge_create_date|truncate:10:''|crmDate}</td>
|
||||
<td class="crm-pledge-pledge_next_pay_date">{$row.pledge_next_pay_date|truncate:10:''|crmDate}</td>
|
||||
<td class="crm-pledge-pledge_next_pay_amount">{$row.pledge_next_pay_amount|crmMoney:$row.pledge_currency}</td>
|
||||
<td class="crm-pledge-pledge_status crm-pledge-pledge_status_{$row.pledge_status}">{$row.pledge_status}</td>
|
||||
<td>
|
||||
{if $row.pledge_contribution_page_id and ($row.pledge_status_name neq 'Completed') and ( $row.contact_id eq $loggedUserID ) }
|
||||
<a href="{crmURL p='civicrm/contribute/transact' q="reset=1&id=`$row.pledge_contribution_page_id`&pledgeId=`$row.pledge_id`"}">{ts}Make Payment{/ts}</a><br/>
|
||||
{/if}
|
||||
<a class="crm-expand-row" title="{ts}view payments{/ts}" href="{crmURL p='civicrm/pledge/payment' q="action=browse&context=`$context`&pledgeId=`$row.pledge_id`&cid=`$row.contact_id`"}">{ts}Payments{/ts}</a>
|
||||
</td>
|
||||
</tr>
|
||||
{/foreach}
|
||||
</table>
|
||||
{/strip}
|
||||
{crmScript file='js/crm.expandRow.js'}
|
||||
{else}
|
||||
<div class="messages status no-popup">
|
||||
<div class="icon inform-icon"></div>
|
||||
{ts}There are no Pledges for your record.{/ts}
|
||||
</div>
|
||||
{/if}
|
||||
{*pledge row if*}
|
||||
|
||||
{*Display honor block*}
|
||||
{if $pledgeHonor && $pledgeHonorRows}
|
||||
{strip}
|
||||
<div class="help">
|
||||
<p>{ts}Pledges made in your honor.{/ts}</p>
|
||||
</div>
|
||||
<table class="selector">
|
||||
<tr class="columnheader">
|
||||
<th>{ts}Pledger{/ts}</th>
|
||||
<th>{ts}Amount{/ts}</th>
|
||||
<th>{ts}Type{/ts}</th>
|
||||
<th>{ts}Financial Type{/ts}</th>
|
||||
<th>{ts}Create date{/ts}</th>
|
||||
<th>{ts}Acknowledgment Sent{/ts}</th>
|
||||
<th>{ts}Acknowledgment Date{/ts}</th>
|
||||
<th>{ts}Status{/ts}</th>
|
||||
<th></th>
|
||||
</tr>
|
||||
{foreach from=$pledgeHonorRows item=row}
|
||||
<tr id='rowid{$row.honorId}' class="{cycle values="odd-row,even-row"}">
|
||||
<td class="crm-pledge-display_name"><a href="{crmURL p="civicrm/contact/view" q="reset=1&cid=`$row.honorId`"}" id="view_contact">{$row.display_name}</a></td>
|
||||
<td class="crm-pledge-amount">{$row.amount|crmMoney:$row.pledge_currency}</td>
|
||||
<td class="crm-pledge-honor-type">{$row.honor_type}</td>
|
||||
<td class="crm-pledge-type">{$row.type}</td>
|
||||
<td class="crm-pledge-create_date">{$row.create_date|truncate:10:''|crmDate}</td>
|
||||
<td align="center">{if $row.acknowledge_date}{ts}Yes{/ts}{else}{ts}No{/ts}{/if}</td>
|
||||
<td class="crm-pledge-acknowledge_date">{$row.acknowledge_date|truncate:10:''|crmDate}</td>
|
||||
<td class="crm-pledge-status">{$row.status}</td>
|
||||
</tr>
|
||||
{/foreach}
|
||||
</table>
|
||||
{/strip}
|
||||
{/if}
|
||||
</div>
|
||||
{* main if close*}
|
||||
{/if}
|
Loading…
Add table
Add a link
Reference in a new issue