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,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}&nbsp;{$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}

View 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>&nbsp;
<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 &gt; 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}&nbsp;{$form.amount.html|crmAddClass:eight}</span>
{if $originalPledgeAmount}<div class="messages status no-popup"><div class="icon inform-icon"></div>&nbsp;{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>&nbsp;{ts}every{/ts}&nbsp;{$form.frequency_interval.html}&nbsp;{$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("&nbsp;").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}" />&nbsp;{/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 *}

View file

@ -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}&nbsp;
{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}&nbsp;</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}&nbsp;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}&nbsp;</td></tr>
<tr class="crm-pledge-form-block-additional_reminder_day"><td class="label">{ts}Send additional reminders{/ts}</td><td>{$additional_reminder_day}&nbsp;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>

View file

@ -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}&nbsp;&nbsp;{$form.sort_name.html|crmAddClass:'twenty'}&nbsp;&nbsp;&nbsp;{$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}

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 $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}

View file

@ -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} &nbsp;&nbsp; {$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"} &nbsp; {$form.pledge_test.html}
</td>
</tr>
<tr>
<td colspan="2">
{$form.pledge_frequency_unit.label}
<br /> {$form.pledge_frequency_interval.label} &nbsp; {$form.pledge_frequency_interval.html} &nbsp;
{$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}
&nbsp;&nbsp; {$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} &nbsp; {$form.pledge_acknowledge_date_is_not_null.html}
&nbsp;
</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}

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 |
+--------------------------------------------------------------------+
*}
{* 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>

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 |
+--------------------------------------------------------------------+
*}
{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} &nbsp;
<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'}">&raquo; {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'}

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=$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}

View file

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

View file

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

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 |
+--------------------------------------------------------------------+
*}
<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>

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="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>

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/Event/Form/Task/SaveSearch.tpl"}

View file

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