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,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 |
+--------------------------------------------------------------------+
*}
{htxt id="id-intro-title"}
{ts}Contribution Pages{/ts}
{/htxt}
{htxt id="id-intro"}
{capture assign=newPageURL}{crmURL p='civicrm/admin/contribute/add' q='action=add&reset=1'}{/capture}
<p>{ts}CiviContribute allows you to create and maintain any number of Online Contribution Pages. You can create different pages for different programs or campaigns, and you can customize text, amounts, types of information collected from contributors, etc.{/ts}</p>
{ts}For existing pages{/ts}:
<ul class="indented">
<li>{ts}Click <strong>Configure</strong> to view and modify settings, amounts, and text for existing pages.{/ts}</li>
<li>{ts}Click <strong>Test-drive</strong> to try out the page in <strong>test mode</strong>. This allows you to go through the full contribution process using a dummy credit card on a test server.{/ts}</li>
<li>{ts}If your page is enabled, click <strong>Live Page</strong> to view to the page in <strong>live mode</strong>.{/ts}</li>
</ul>
<p>{ts 1=$newPageURL}Click <a href='%1'>New Contribution Page</a> to create and configure a new online contribution page using the step-by-step wizard.{/ts}</p>
<p>{docURL page="user/contributions/what-you-need-to-know"}</p>
{/htxt}

View file

@ -0,0 +1,122 @@
{*
+--------------------------------------------------------------------+
| CiviCRM version 4.7 |
+--------------------------------------------------------------------+
| Copyright CiviCRM LLC (c) 2004-2017 |
+--------------------------------------------------------------------+
| This file is a part of CiviCRM. |
| |
| CiviCRM is free software; you can copy, modify, and distribute it |
| under the terms of the GNU Affero General Public License |
| Version 3, 19 November 2007 and the CiviCRM Licensing Exception. |
| |
| CiviCRM is distributed in the hope that it will be useful, but |
| WITHOUT ANY WARRANTY; without even the implied warranty of |
| MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
| See the GNU Affero General Public License for more details. |
| |
| You should have received a copy of the GNU Affero General Public |
| License and the CiviCRM Licensing Exception along |
| with this program; if not, contact CiviCRM LLC |
| at info[AT]civicrm[DOT]org. If you have questions about the |
| GNU Affero General Public License or the licensing of CiviCRM, |
| see the CiviCRM license FAQ at http://civicrm.org/licensing |
+--------------------------------------------------------------------+
*}
{capture assign=newPageURL}{crmURL p='civicrm/admin/contribute/add' q='action=add&reset=1'}{/capture}
<div class="help">
{ts}CiviContribute allows you to create and maintain any number of Online Contribution Pages. You can create different pages for different programs or campaigns, and you can customize text, amounts, types of information collected from contributors, etc.{/ts} {help id="id-intro"}
</div>
{include file="CRM/Contribute/Form/SearchContribution.tpl"}
{if NOT ($action eq 1 or $action eq 2) }
<table class="form-layout-compressed">
<tr>
<td><a href="{$newPageURL}" class="button"><span><i class="crm-i fa-plus-circle"></i> {ts}Add Contribution Page{/ts}</span></a></td>
<td style="vertical-align: top"><a class="button" href="{crmURL p="civicrm/admin/pcp" q="reset=1"}"><span>{ts}Manage Personal Campaign Pages{/ts}</span></a> {help id="id-pcp-intro" file="CRM/PCP/Page/PCP.hlp"}</td>
</tr>
</table>
{/if}
{if $rows}
<div id="configure_contribution_page">
{strip}
{include file="CRM/common/pager.tpl" location="top"}
{include file="CRM/common/pagerAToZ.tpl"}
{* handle enable/disable actions *}
{include file="CRM/common/enableDisableApi.tpl"}
{include file="CRM/common/jsortable.tpl"}
<table id="options" class="display">
<thead>
<tr>
<th>{ts}Title{/ts}</th>
<th>{ts}ID{/ts}</th>
<th>{ts}Enabled?{/ts}</th>
{if call_user_func(array('CRM_Campaign_BAO_Campaign','isCampaignEnable'))}
<th>{ts}Campaign{/ts}</th>
{/if}
<th></th>
</tr>
</thead>
{foreach from=$rows item=row}
<tr id="contribution_page-{$row.id}" class="crm-entity {if NOT $row.is_active} disabled{/if}">
<td><strong>{$row.title}</strong></td>
<td>{$row.id}</td>
<td id="row_{$row.id}_status">{if $row.is_active eq 1} {ts}Yes{/ts} {else} {ts}No{/ts} {/if}</td>
{if call_user_func(array('CRM_Campaign_BAO_Campaign','isCampaignEnable'))}
<td>{$row.campaign}</td>
{/if}
<td class="crm-contribution-page-actions right nowrap">
{if $row.configureActionLinks}
<div class="crm-contribution-page-configure-actions">
{$row.configureActionLinks|replace:'xx':$row.id}
</div>
{/if}
{if $row.contributionLinks}
<div class="crm-contribution-online-contribution-actions">
{$row.contributionLinks|replace:'xx':$row.id}
</div>
{/if}
{if $row.onlineContributionLinks}
<div class="crm-contribution-search-contribution-actions">
{$row.onlineContributionLinks|replace:'xx':$row.id}
</div>
{/if}
<div class="crm-contribution-page-more">
{$row.action|replace:'xx':$row.id}
</div>
</td>
</tr>
{/foreach}
</table>
{/strip}
</div>
{else}
{if $isSearch eq 1}
<div class="status messages">
<img src="{$config->resourceBase}i/Inform.gif" alt="{ts}status{/ts}"/>
{capture assign=browseURL}{crmURL p='civicrm/contribute/manage' q="reset=1"}{/capture}
{ts}No available Contribution Pages match your search criteria. Suggestions:{/ts}
<div class="spacer"></div>
<ul>
<li>{ts}Check your spelling.{/ts}</li>
<li>{ts}Try a different spelling or use fewer letters.{/ts}</li>
<li>{ts}Make sure you have enough privileges in the access control system.{/ts}</li>
</ul>
{ts 1=$browseURL}Or you can <a href='%1'>browse all available Contribution Pages</a>.{/ts}
</div>
{else}
<div class="messages status no-popup">
<div class="icon inform-icon"></div> &nbsp;
{ts 1=$newPageURL}No contribution pages have been created yet. Click <a accesskey="N" href='%1'>here</a> to create a new contribution page.{/ts}
</div>
{/if}
{/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 |
+--------------------------------------------------------------------+
*}
{include file="CRM/common/enableDisableApi.tpl"}
{if $action eq 4} {* when action is view *}
{if $recur}
<h3>{ts}View Recurring Payment{/ts}</h3>
<div class="crm-block crm-content-block crm-recurcontrib-view-block">
<table class="crm-info-panel">
<tr><td class="label">{ts}Amount{/ts}</td><td>{$recur.amount|crmMoney:$recur.currency}{if $is_test} ({ts}test{/ts}){/if}</td></tr>
<tr><td class="label">{ts}Frequency{/ts}</td><td>every {$recur.frequency_interval} {$recur.frequency_unit}</td></tr>
<tr><td class="label">{ts}Installments{/ts}</td><td>{$recur.installments}</td></tr>
<tr><td class="label">{ts}Status{/ts}</td><td>{$recur.contribution_status}</td></tr>
<tr><td class="label">{ts}Start Date{/ts}</td><td>{$recur.start_date|crmDate}</td></tr>
<tr><td class="label">{ts}Created Date{/ts}</td><td>{$recur.create_date|crmDate}</td></tr>
{if $recur.modified_date}<tr><td class="label">{ts}Modified Date{/ts}</td><td>{$recur.modified_date|crmDate}</td></tr>{/if}
{if $recur.cancel_date}<tr><td class="label">{ts}Cancelled Date{/ts}</td><td>{$recur.cancel_date|crmDate}</td></tr>{/if}
{if $recur.cancel_date}<tr><td class="label">{ts}End Date{/ts}</td><td>{$recur.end_date|crmDate}</td></tr>{/if}
{if $recur.processor_id}<tr><td class="label">{ts}Processor ID{/ts}</td><td>{$recur.processor_id}</td></tr>{/if}
<tr><td class="label">{ts}Transaction ID{/ts}</td><td>{$recur.trxn_id}</td></tr>
{if $recur.invoice_id}<tr><td class="label">{ts}Invoice ID{/ts}</td><td>{$recur.invoice_id}</td></tr>{/if}
<tr><td class="label">{ts}Cycle Day{/ts}</td><td>{$recur.cycle_day}</td></tr>
{if $recur.contribution_status_id neq 3}<tr><td class="label">{ts}Next Contribution{/ts}</td><td>{$recur.next_sched_contribution_date|crmDate}</td></tr>{/if}
<tr><td class="label">{ts}Failure Count{/ts}</td><td>{$recur.failure_count}</td></tr>
{if $recur.invoice_id}<tr><td class="label">{ts}Failure Retry Date{/ts}</td><td>{$recur.next_sched_contribution_date|crmDate}</td></tr>{/if}
<tr><td class="label">{ts}Auto Renew?{/ts}</td><td>{if $recur.auto_renew}{ts}Yes{/ts}{else}{ts}No{/ts}{/if}</td></tr>
{if $recur.payment_processor}<tr><td class="label">{ts}Payment Processor{/ts}</td><td>{$recur.payment_processor}</td></tr>{/if}
{if $recur.financial_type}<tr><td class="label">{ts}Financial Type{/ts}</td><td>{$recur.financial_type}</td></tr>{/if}
{if $recur.campaign}<tr><td class="label">{ts}Campaign{/ts}</td><td>{$recur.campaign}</td></tr>{/if}
</table>
<div class="crm-submit-buttons"><a class="button cancel crm-form-submit" href="{crmURL p='civicrm/contact/view' q='action=browse&selectedChild=contribute'}">{ts}Done{/ts}</a></div>
</div>
{/if}
{/if}
{if $recurRows}
{strip}
<table class="selector row-highlight">
<tr class="columnheader">
<th scope="col">{ts}Amount{/ts}</th>
<th scope="col">{ts}Frequency{/ts}</th>
<th scope="col">{ts}Start Date{/ts}</th>
<th scope="col">{ts}Installments{/ts}</th>
<th scope="col">{ts}Status{/ts}</th>
<th scope="col">&nbsp;</th>
</tr>
{foreach from=$recurRows item=row}
{assign var=id value=$row.id}
<tr id="contribution_recur-{$row.id}" data-action="cancel" class="crm-entity {cycle values="even-row,odd-row"}{if NOT $row.is_active} disabled{/if}">
<td>{$row.amount|crmMoney:$row.currency}{if $row.is_test} ({ts}test{/ts}){/if}</td>
<td>{ts}Every{/ts} {$row.frequency_interval} {$row.frequency_unit} </td>
<td>{$row.start_date|crmDate}</td>
<td>{$row.installments}</td>
<td>{$row.contribution_status}</td>
<td>
{$row.action|replace:'xx':$row.recurId}
</td>
</tr>
{/foreach}
</table>
{/strip}
{/if}

View file

@ -0,0 +1,74 @@
{*
+--------------------------------------------------------------------+
| CiviCRM version 4.7 |
+--------------------------------------------------------------------+
| Copyright CiviCRM LLC (c) 2004-2017 |
+--------------------------------------------------------------------+
| This file is a part of CiviCRM. |
| |
| CiviCRM is free software; you can copy, modify, and distribute it |
| under the terms of the GNU Affero General Public License |
| Version 3, 19 November 2007 and the CiviCRM Licensing Exception. |
| |
| CiviCRM is distributed in the hope that it will be useful, but |
| WITHOUT ANY WARRANTY; without even the implied warranty of |
| MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
| See the GNU Affero General Public License for more details. |
| |
| You should have received a copy of the GNU Affero General Public |
| License and the CiviCRM Licensing Exception along |
| with this program; if not, contact CiviCRM LLC |
| at info[AT]civicrm[DOT]org. If you have questions about the |
| GNU Affero General Public License or the licensing of CiviCRM, |
| see the CiviCRM license FAQ at http://civicrm.org/licensing |
+--------------------------------------------------------------------+
*}
{if $softCreditRows}
{strip}
{if $context neq 'membership'}
<table class="form-layout-compressed">
<tr>
{if $softCreditTotals.amount}
<th class="contriTotalLeft">{ts}Total Soft Credits{/ts} &ndash; {$softCreditTotals.amount|crmMoney:$softCreditTotals.currency}</th>
<th class="right" width="10px"> &nbsp; </th>
<th class="right contriTotalRight"> &nbsp; {ts}Avg Soft Credits{/ts} &ndash; {$softCreditTotals.avg|crmMoney:$softCreditTotals.currency}</th>
{/if}
{if $softCreditTotals.cancelAmount}
<th class="right contriTotalRight"> &nbsp; {ts}Total Cancelled Soft Credits{/ts} &ndash; {$softCreditTotals.cancelAmount|crmMoney:$softCreditTotals.currency}</th>
{/if}
</tr>
</table>
<p></p>
{/if}
<table class="crm-softcredit-selector crm-ajax-table">
<thead>
<tr>
<th data-data="contributor_name">{ts}Contributor{/ts}</th>
<th data-data="amount">{ts}Amount{/ts}</th>
<th data-data="sct_label">{ts}Type{/ts}</th>
<th data-data="financial_type">{ts}Financial Type{/ts}</th>
<th data-data="receive_date" class="sorting_desc">{ts}Received{/ts}</th>
<th data-data="contribution_status">{ts}Status{/ts}</th>
<th data-data="pcp_title">{ts}Personal Campaign Page?{/ts}</th>
<th data-data="links" data-orderable="false">&nbsp;</th>
</tr>
</thead>
</table>
{/strip}
{/if}
{if !empty($membership_id) && $context eq 'membership'}
{assign var="entityID" value=$membership_id}
{/if}
{literal}
<script type="text/javascript">
(function($) {
CRM.$('table.crm-softcredit-selector').data({
"ajax": {
"url": {/literal}'{crmURL p="civicrm/ajax/softcontributionlist" h=0 q="snippet=4&cid=`$contactId`&context=`$context`&entityID=`$entityID`&isTest=`$isTest`"}'{literal},
}
});
})(CRM.$);
</script>
{/literal}

View file

@ -0,0 +1,73 @@
{*
+--------------------------------------------------------------------+
| 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 |
+--------------------------------------------------------------------+
*}
{*Table displays contribution totals for a contact or search result-set *}
{if $annual.count OR $contributionSummary}
<table class="form-layout-compressed">
{if $annual.count}
<tr>
<th class="contriTotalLeft right">{ts}Current Year-to-Date{/ts} &ndash; {$annual.amount}</th>
<th class="right"> &nbsp; {ts}# Completed Contributions{/ts} &ndash; {$annual.count}</th>
<th class="right contriTotalRight"> &nbsp; {ts}Avg Amount{/ts} &ndash; {$annual.avg}</th>
{if $contributionSummary.cancel.amount}
<td>&nbsp;</td>
{/if}
</tr>
{/if}
{if $contributionSummary }
<tr>
{if $contributionSummary.total.amount}
{if $contributionSummary.total.currencyCount gt 1}
<th class="contriTotalLeft right">{ts}Total{/ts} &ndash; {$contributionSummary.total.amount}</th>
<th class="left contriTotalRight"> &nbsp; {ts}# Completed{/ts} &ndash; {$contributionSummary.total.count}</th>
</tr><tr>
<th class="contriTotalLeft">{ts}Avg{/ts} &ndash; {$contributionSummary.total.avg}</th>
<th class="right"> &nbsp; {ts}Median{/ts} &ndash; {$contributionSummary.total.median}</th>
<th class="right contriTotalRight"> &nbsp; {ts}Mode{/ts} &ndash; {$contributionSummary.total.mode}</th>
{else}
<th class="contriTotalLeft right">{ts}Total{/ts} &ndash; {$contributionSummary.total.amount}</th>
<th class="right"> &nbsp; {ts}# Completed{/ts} &ndash; {$contributionSummary.total.count}</th>
<th class="right"> &nbsp; {ts}Avg{/ts} &ndash; {$contributionSummary.total.avg}</th>
<th class="right"> &nbsp; {ts}Median{/ts} &ndash; {$contributionSummary.total.median}</th>
<th class="right contriTotalRight"> &nbsp; {ts}Mode{/ts} &ndash; {$contributionSummary.total.mode}</th>
{/if}
{/if}
{if $contributionSummary.cancel.amount}
<th class="disabled right contriTotalRight"> &nbsp; {ts}Cancelled/Refunded{/ts} &ndash; {$contributionSummary.cancel.amount}</th>
{/if}
</tr>
{if $contributionSummary.soft_credit.count}
<tr>
<th class="contriTotalLeft right">{ts}Total Soft Credit Amount{/ts} &ndash; {$contributionSummary.soft_credit.amount}</th>
<th class="right"> &nbsp; {ts}# Completed Soft Credits{/ts} &ndash; {$contributionSummary.soft_credit.count}</th>
<th class="right contriTotalRight"> &nbsp; {ts}Avg Soft Credit Amount{/ts} &ndash; {$contributionSummary.soft_credit.avg}</th>
</tr>
{/if}
{/if}
</table>
{/if}

View file

@ -0,0 +1,78 @@
{*
+--------------------------------------------------------------------+
| CiviCRM version 4.7 |
+--------------------------------------------------------------------+
| Copyright CiviCRM LLC (c) 2004-2017 |
+--------------------------------------------------------------------+
| This file is a part of CiviCRM. |
| |
| CiviCRM is free software; you can copy, modify, and distribute it |
| under the terms of the GNU Affero General Public License |
| Version 3, 19 November 2007 and the CiviCRM Licensing Exception. |
| |
| CiviCRM is distributed in the hope that it will be useful, but |
| WITHOUT ANY WARRANTY; without even the implied warranty of |
| MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
| See the GNU Affero General Public License for more details. |
| |
| You should have received a copy of the GNU Affero General Public |
| License and the CiviCRM Licensing Exception along |
| with this program; if not, contact CiviCRM LLC |
| at info[AT]civicrm[DOT]org. If you have questions about the |
| GNU Affero General Public License or the licensing of CiviCRM, |
| see the CiviCRM license FAQ at http://civicrm.org/licensing |
+--------------------------------------------------------------------+
*}
{if $action eq 1 or $action eq 2 or $action eq 8}
{include file="CRM/Contribute/Form/ContributionType.tpl"}
{else}
<div class="help">
<p>{ts}Financial types are used to categorize contributions for reporting and accounting purposes. These are also referred to as <strong>Funds</strong>. You may set up as many types as needed. Each type can carry an accounting code which can be used to map contributions to codes in your accounting system. Commonly used financial types are: Donation, Campaign Contribution, Membership Dues...{/ts}</p>
</div>
{if $rows}
<div id="ltype">
<p></p>
<div class="form-item">
{strip}
{* handle enable/disable actions*}
{include file="CRM/common/enableDisableApi.tpl"}
<table cellpadding="0" cellspacing="0" border="0">
<thead class="sticky">
<th>{ts}Name{/ts}</th>
<th>{ts}Description{/ts}</th>
<th>{ts}Acctg Code{/ts}</th>
<th>{ts}Deductible?{/ts}</th>
<th>{ts}Reserved?{/ts}</th>
<th>{ts}Enabled?{/ts}</th>
<th></th>
</thead>
{foreach from=$rows item=row}
<tr id="contribution_type-{$row.id}" class="crm-entity {cycle values="odd-row,even-row"} {$row.class}{if NOT $row.is_active} disabled{/if}">
<td>{$row.name}</td>
<td>{$row.description}</td>
<td>{$row.accounting_code}</td>
<td>{if $row.is_deductible eq 1} {ts}Yes{/ts} {else} {ts}No{/ts} {/if}</td>
<td>{if $row.is_reserved eq 1} {ts}Yes{/ts} {else} {ts}No{/ts} {/if}</td>
<td id="row_{$row.id}_status">{if $row.is_active eq 1} {ts}Yes{/ts} {else} {ts}No{/ts} {/if}</td>
<td>{$row.action|replace:'xx':$row.id}</td>
</tr>
{/foreach}
</table>
{/strip}
</div>
</div>
{else}
<div class="messages status no-popup">
<div class="icon inform-icon"></div>
{ts}None found.{/ts}
</div>
{/if}
{if $action ne 1 and $action ne 2}
<div class="action-link">
{crmButton q="action=add&reset=1" id="newContributionType" icon="plus-circle"}{ts}Add Financial Type{/ts}{/crmButton}
{crmButton p="civicrm/admin" q="reset=1" class="cancel" icon="times"}{ts}Done{/ts}{/crmButton}
</div>
{/if}
{/if}

View file

@ -0,0 +1,36 @@
{*
+--------------------------------------------------------------------+
| CiviCRM version 4.7 |
+--------------------------------------------------------------------+
| Copyright CiviCRM LLC (c) 2004-2017 |
+--------------------------------------------------------------------+
| This file is a part of CiviCRM. |
| |
| CiviCRM is free software; you can copy, modify, and distribute it |
| under the terms of the GNU Affero General Public License |
| Version 3, 19 November 2007 and the CiviCRM Licensing Exception. |
| |
| CiviCRM is distributed in the hope that it will be useful, but |
| WITHOUT ANY WARRANTY; without even the implied warranty of |
| MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
| See the GNU Affero General Public License for more details. |
| |
| You should have received a copy of the GNU Affero General Public |
| License and the CiviCRM Licensing Exception along |
| with this program; if not, contact CiviCRM LLC |
| at info[AT]civicrm[DOT]org. If you have questions about the |
| GNU Affero General Public License or the licensing of CiviCRM, |
| see the CiviCRM license FAQ at http://civicrm.org/licensing |
+--------------------------------------------------------------------+
*}
{htxt id="id-contribute-intro-title"}
{ts}Contribution Dashboard{/ts}
{/htxt}
{htxt id="id-contribute-intro"}
{capture assign=findContactURL}{crmURL p="civicrm/contact/search/basic" q="reset=1"}{/capture}
{capture assign=importURL}{crmURL p="civicrm/contribute/import" q="reset=1"}{/capture}
<p>{ts 1=$findContactURL 2=$importURL}CiviContribute allows you to create customized page(s) for collecting online contributions. You can also input and track offline contributions. To enter contributions manually for individual contacts, use <a href='%1'>Find Contacts</a> to locate the contact. Then click <strong>View</strong> to go to their summary page and click on the <strong>New Contribution</strong> link. You can also <a href='%2'>import batches of offline contributions</a> from other sources.{/ts}</p>
{capture assign=findContribsURL}{crmURL p="civicrm/contribute/search/basic" q="reset=1"}{/capture}
<p>{ts 1=$findContribsURL}The <strong>Contribution Summary</strong> table provides a summary of month and year-to-date contribution totals, and includes shortcuts to view the contribution details for these commonly used search periods. To run your own customized searches - click <a href='%1'>Find Contributions</a>. You can search by Contributor Name, Amount Range, and a variety of other criteria.{/ts}</p>
{/htxt}

View file

@ -0,0 +1,51 @@
// http://civicrm.org/licensing
/*jslint indent: 2 */
/*global CRM, cj */
(function($) {
'use strict';
var load = {
chart_view: function() {
var chartUrl = CRM.url("civicrm/ajax/chart", {
'snippet': 4,
'year': $('#select_year').val() || new Date().getFullYear(),
'type': $('#chart_type').val() || 'bvg'
});
$("#chartData").load(chartUrl, function() {
$("select", "#chartData").change(load.chart_view);
});
},
table_view: function() {
var tableUrl = CRM.url("civicrm/contribute/ajax/tableview", {showtable: 1, snippet: 4});
$("#chartData").load(tableUrl);
}
};
function refresh() {
$('#chart_view, #table_view').click(function () {
if ($(this).hasClass('ui-state-default')) {
$('.ui-tabs-selected', '#mainTabContainer').removeClass('ui-state-active ui-tabs-selected').addClass('ui-state-default');
$(this).removeClass('ui-state-default').addClass('ui-state-active ui-tabs-selected');
load[this.id]();
}
});
// Initialize chart or table based on url hash
if (window.location.hash === '#table_layout') {
$('#table_view').click();
}
else {
load.chart_view();
}
}
$(function () {
$('#crm-main-content-wrapper').on('crmLoad', function (e) {
if ($(e.target).is(this)) {
refresh();
}
});
refresh();
});
})(CRM.$);

View file

@ -0,0 +1,91 @@
{*
+--------------------------------------------------------------------+
| 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 |
+--------------------------------------------------------------------+
*}
{* CiviContribute DashBoard (launch page) *}
{if $buildTabularView}
<table class="report">
<tr class="columnheader-dark">
<th scope="col">{ts}Period{/ts}</th>
<th scope="col">{ts}Total Amount{/ts}</th>
<th scope="col" title="Contribution Count"><strong>#</strong></th><th></th></tr>
<tr>
<td><strong>{ts}Current Month-To-Date{/ts}</strong></td>
<td class="label">{if NOT $monthToDate.Valid.amount}{ts}(n/a){/ts}{else}{$monthToDate.Valid.amount}{/if}</td>
<td class="label">{$monthToDate.Valid.count}</td>
<td><a href="{$monthToDate.Valid.url}">{ts}view details{/ts}...</a></td>
</tr>
<tr>
<td><strong>{ts}Current Fiscal Year-To-Date{/ts}</strong></td>
<td class="label">{if NOT $yearToDate.Valid.amount}{ts}(n/a){/ts}{else}{$yearToDate.Valid.amount}{/if}</td>
<td class="label">{$yearToDate.Valid.count}</td>
<td><a href="{$yearToDate.Valid.url}">{ts}view details{/ts}...</a></td>
</tr>
<tr>
<td><strong>{ts}Cumulative{/ts}</strong><br />{ts}(since inception){/ts}</td>
<td class="label">{if NOT $startToDate.Valid.amount}{ts}(n/a){/ts}{else}{$startToDate.Valid.amount}{/if}</td>
<td class="label">{$startToDate.Valid.count}</td>
<td><a href="{$startToDate.Valid.url}">{ts}view details{/ts}...</a></td>
</tr>
</table>
{elseif $buildChart}
{include file = "CRM/Contribute/Form/ContributionCharts.tpl"}
{else}
<h3>{ts}Contribution Summary{/ts} {help id="id-contribute-intro"}</h3>
<div id="mainTabContainer" class="ui-tabs ui-widget ui-widget-content ui-corner-all">
<ul class="ui-tabs-nav ui-helper-reset ui-helper-clearfix ui-widget-header ui-corner-all">
<li id="chart_view" class="crm-tab-button ui-state-active ui-corner-top ui-corner-bottom ui-tabs-selected" >
<a href="#chart_layout"><span>&nbsp;</span>&nbsp;{ts}Chart Layout{/ts}&nbsp;</a> </li>&nbsp;
<li id ="table_view" class="crm-tab-button ui-corner-top ui-corner-bottom ui-state-default" >
<a href="#table_layout"><span>&nbsp;</span>&nbsp;{ts}Table Layout{/ts}&nbsp;</a>
</li>
{if $isAdmin}
{capture assign=newPageURL}{crmURL p="civicrm/admin/contribute/add" q="action=add&reset=1"}{/capture}
{capture assign=configPagesURL}{crmURL p="civicrm/admin/contribute" q="reset=1"}{/capture}
<div class="float-right">
<table class="form-layout-compressed">
<tr>
<td>
<a href="{$configPagesURL}" class="button no-popup"><span>{ts}Manage Contribution Pages{/ts}</span></a>
</td>
<td>
<a href="{$newPageURL}" class="button no-popup"><span><i class="crm-i fa-plus-circle"></i> {ts}Add Contribution Page{/ts}</span></a>
</td>
</tr>
</table>
</div>
{/if}
</ul>
<div id="chartData"></div>
</div>
<div class="spacer"></div>
{if $pager->_totalItems}
<h3>{ts}Recent Contributions{/ts}</h3>
<div>
{include file="CRM/Contribute/Form/Selector.tpl" context="dashboard"}
</div>
{/if}
{/if}

View file

@ -0,0 +1,88 @@
{*
+--------------------------------------------------------------------+
| CiviCRM version 4.7 |
+--------------------------------------------------------------------+
| Copyright CiviCRM LLC (c) 2004-2017 |
+--------------------------------------------------------------------+
| This file is a part of CiviCRM. |
| |
| CiviCRM is free software; you can copy, modify, and distribute it |
| under the terms of the GNU Affero General Public License |
| Version 3, 19 November 2007 and the CiviCRM Licensing Exception. |
| |
| CiviCRM is distributed in the hope that it will be useful, but |
| WITHOUT ANY WARRANTY; without even the implied warranty of |
| MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
| See the GNU Affero General Public License for more details. |
| |
| You should have received a copy of the GNU Affero General Public |
| License and the CiviCRM Licensing Exception along |
| with this program; if not, contact CiviCRM LLC |
| at info[AT]civicrm[DOT]org. If you have questions about the |
| GNU Affero General Public License or the licensing of CiviCRM, |
| see the CiviCRM license FAQ at http://civicrm.org/licensing |
+--------------------------------------------------------------------+
*}
{if $action eq 1 or $action eq 2 or $action eq 8 or $action eq 1024}
{include file="CRM/Contribute/Form/ManagePremiums.tpl"}
{else}
{if $action ne 2}
{if $action ne 1 or $action ne 8}
<div class="help">
{capture assign=contribURL}{crmURL p='civicrm/admin/contribute' q="reset=1"}{/capture}
<p>{ts}CiviContribute allows you to configure any number of <strong>Premiums</strong> which can be offered to contributors as incentives / thank-you gifts. Premiums may be tangible items (i.e. a coffee mug or t-shirt), or they may be a membership or subscription with a pre-determined duration.{/ts}</p>
<p>{ts 1=$contribURL}Use this section to enter and update all premiums that you want to offer on any of your Online Contribution pages. Then you can assign one or more premiums to a specific Contribution page from <a href='%1'>Configure Online Contribution Pages</a> <strong>&raquo; Configure &raquo; Premiums</strong>.{/ts}</p>
</div>
{/if}
{if $rows}
<div id="ltype">
<p></p>
{strip}
{* handle enable/disable actions*}
{include file="CRM/common/enableDisableApi.tpl"}
{include file="CRM/common/jsortable.tpl"}
<table id="options" class="display">
<thead>
<tr>
<th id="sortable">{ts}Name{/ts}</th>
<th>{ts}SKU{/ts}</th>
<th>{ts}Market Value{/ts}</th>
<th>{ts}Financial Type{/ts}</th>
<th>{ts}Min Contribution{/ts}</th>
<th>{ts}Active?{/ts}</th>
<th></th>
</tr>
</thead>
{foreach from=$rows item=row}
<tr id="product-{$row.id}" class="crm-entity {cycle values="odd-row,even-row"} {$row.class}{if NOT $row.is_active} disabled{/if}">
<td class="crm-contribution-form-block-name crm-editable" data-field="name">{$row.name}</td>
<td class="crm-contribution-form-block-sku crm-editable" data-field="sku">{$row.sku}</td>
<td class="crm-contribution-form-block-price">{$row.price }</td>
<td class="crm-contribution-form-block-financial_type">{$row.financial_type_id}</td>
<td class="crm-contribution-form-block-min_contribution">{$row.min_contribution}</td>
<td id="row_{$row.id}_status" >{if $row.is_active eq 1} {ts}Yes{/ts} {else} {ts}No{/ts} {/if}</td>
<td id={$row.id}>{$row.action|replace:'xx':$row.id}</td>
</tr>
{/foreach}
</table>
{/strip}
{if $action ne 1 and $action ne 2}
<div class="action-link">
{crmButton q="action=add&reset=1" id="newManagePremium" icon="plus-circle"}{ts}Add Premium{/ts}{/crmButton}
</div>
{/if}
</div>
{else}
{if $action ne 1 and $action ne 2}
<div class="messages status no-popup">
<img src="{$config->resourceBase}i/Inform.gif" alt="{ts}status{/ts}"/>
{capture assign=crmURL}{crmURL p='civicrm/admin/contribute/managePremiums' q="action=add&reset=1"}{/capture}
{ts 1=$crmURL}No premium products have been created for your site. You can <a href='%1'>add one</a>.{/ts}
</div>
{/if}
{/if}
{/if}
{/if}

View file

@ -0,0 +1,88 @@
{*
+--------------------------------------------------------------------+
| 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 $show eq 'payments'}
{literal}
<script type='text/javascript'>
CRM.$(function($) {
if ($("#payment-info").length) {
var dataUrl = {/literal}'{crmURL p="civicrm/payment/view" h=0 q="action=browse&id=$componentId&cid=`$contactId`&component=$component&context=payment_info&snippet=4"}'{literal};
$.ajax({
url: dataUrl,
async: false,
success: function(html) {
$("#payment-info").html(html).trigger('crmLoad');
}
});
var taxAmount = "{$totalTaxAmount}";
if (taxAmount) {
$('.total_amount-section').show();
}
else {
$('.total_amount-section').remove();
}
}
});
</script>
{/literal}
{/if}
{if $context eq 'payment_info'}
<table id='info'>
<tr class="columnheader">
{if $component eq "event"}
<th>{ts}Total Fee(s){/ts}</th>
{else}
<th>{ts}Contribution Amount(s){/ts}</th>
{/if}
<th class="right">{ts}Total Paid{/ts}</th>
<th class="right">{ts}Balance{/ts}</th>
</tr>
<tr>
<td>{$paymentInfo.total|crmMoney}</td>
<td class='right'>
{if $paymentInfo.paid > 0}
{$paymentInfo.paid|crmMoney}
{if !$hideButtonLinks}
<br/>
<a class="crm-hover-button action-item crm-popup medium-popup" href='{crmURL p="civicrm/payment" q="view=transaction&cid=`$cid`&id=`$paymentInfo.id`&component=`$paymentInfo.component`&action=browse"}'>
<i class="crm-i fa-list"></i>
{ts}view payments{/ts}
</a>
{/if}
{/if}
</td>
<td class="right" id="payment-info-balance" data-balance="{$paymentInfo.balance}">{$paymentInfo.balance|crmMoney}</td>
</tr>
</table>
{if $paymentInfo.balance and !$paymentInfo.payLater && !$hideButtonLinks}
{if $paymentInfo.balance > 0}
{assign var=paymentButtonName value='Record Payment'}
{elseif $paymentInfo.balance < 0}
{assign var=paymentButtonName value='Record Refund'}
{/if}
<a class="action-item crm-hover-button" href='{crmURL p="civicrm/payment" q="action=add&reset=1&component=`$component`&id=`$id`&cid=`$cid`"}'><i class="crm-i fa-plus-circle"></i> {ts}{$paymentButtonName}{/ts}</a>
{/if}
{/if}

View file

@ -0,0 +1,90 @@
{*
+--------------------------------------------------------------------+
| CiviCRM version 4.7 |
+--------------------------------------------------------------------+
| Copyright CiviCRM LLC (c) 2004-2017 |
+--------------------------------------------------------------------+
| This file is a part of CiviCRM. |
| |
| CiviCRM is free software; you can copy, modify, and distribute it |
| under the terms of the GNU Affero General Public License |
| Version 3, 19 November 2007 and the CiviCRM Licensing Exception. |
| |
| CiviCRM is distributed in the hope that it will be useful, but |
| WITHOUT ANY WARRANTY; without even the implied warranty of |
| MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
| See the GNU Affero General Public License for more details. |
| |
| You should have received a copy of the GNU Affero General Public |
| License and the CiviCRM Licensing Exception along |
| with this program; if not, contact CiviCRM LLC |
| at info[AT]civicrm[DOT]org. If you have questions about the |
| GNU Affero General Public License or the licensing of CiviCRM, |
| see the CiviCRM license FAQ at http://civicrm.org/licensing |
+--------------------------------------------------------------------+
*}
<div class="view-content">
{if $pcpInfo}
<div id="ltype">
{strip}
<table class="selector">
<tr class="columnheader">
<th>{ts}Your Page{/ts}</th>
<th>{ts}In Support of{/ts}</th>
<th>{ts}Campaign Ends{/ts}</th>
<th>{ts}Status{/ts}</th>
<th></th>
</tr>
{foreach from=$pcpInfo item=row}
<tr class="{cycle values="odd-row,even-row"} {$row.class}">
<td class="bold"><a href="{crmURL p='civicrm/pcp/info' q="reset=1&id=`$row.pcpId`" a=1}" title="{ts}Preview your Personal Campaign Page{/ts}">{$row.pcpTitle}</a></td>
<td>{$row.pageTitle}</td>
<td>{if $row.end_date}{$row.end_date|truncate:10:''|crmDate}{else}({ts}ongoing{/ts}){/if}</td>
<td>{$row.pcpStatus}</td>
<td>{$row.action|replace:'xx':$row.pcpId}</td>
</tr>
{/foreach}
</table>
{/strip}
</div>
{else}
<div class="messages status no-popup">
<div class="icon inform-icon"></div>
{ts}You do not have any active Personal Campaign pages.{/ts}
</div>
{/if}
{if $pcpBlock}
{strip}
{if $pcpInfo} {* Change layout and text if they already have a PCP. *}
<br />
<div class="float-right" style="width: 65%">
<div>{ts}Create a Personal Campaign Page for another campaign:{/ts}</div>
{else}
<div style="width: 65%">
<div class="label">{ts}Become a supporter by creating a Personal Campaign Page:{/ts}</div>
{/if}
<table class="selector">
<tr class="columnheader">
<th>{ts}Campaign{/ts}</th>
<th>{ts}Ends{/ts}</th>
<th></th>
</tr>
{foreach from=$pcpBlock item=row}
<tr class="{cycle values="odd-row,even-row"}">
<td>{if $row.component eq 'contribute'}<a href="{crmURL p='civicrm/contribute/transact' q="id=`$row.pageId`&reset=1"}" title="{ts}View campaign page{/ts}">{else}<a href="{crmURL p='civicrm/event/register' q="id=`$row.pageId`&reset=1"}" title="{ts}View campaign page{/ts}">{/if}{$row.pageTitle}</a></td>
<td>{if $row.end_date}{$row.end_date|truncate:10:''|crmDate}{else}({ts}ongoing{/ts}){/if}</td>
<td>{$row.action|replace:'xx':$row.pageId}</td>
</tr>
{/foreach}
</table>
{/strip}
</div>
{/if}
</div>

View file

@ -0,0 +1,77 @@
{*
+--------------------------------------------------------------------+
| CiviCRM version 4.7 |
+--------------------------------------------------------------------+
| Copyright CiviCRM LLC (c) 2004-2017 |
+--------------------------------------------------------------------+
| This file is a part of CiviCRM. |
| |
| CiviCRM is free software; you can copy, modify, and distribute it |
| under the terms of the GNU Affero General Public License |
| Version 3, 19 November 2007 and the CiviCRM Licensing Exception. |
| |
| CiviCRM is distributed in the hope that it will be useful, but |
| WITHOUT ANY WARRANTY; without even the implied warranty of |
| MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
| See the GNU Affero General Public License for more details. |
| |
| You should have received a copy of the GNU Affero General Public |
| License and the CiviCRM Licensing Exception along |
| with this program; if not, contact CiviCRM LLC |
| at info[AT]civicrm[DOT]org. If you have questions about the |
| GNU Affero General Public License or the licensing of CiviCRM, |
| see the CiviCRM license FAQ at http://civicrm.org/licensing |
+--------------------------------------------------------------------+
*}
{capture assign=managePremiumsURL}{crmURL p='civicrm/admin/contribute/managePremiums' q="reset=1"}{/capture}
{if $rows}
<div id="ltype">
<div class="description">
<p>{ts 1=$managePremiumsURL}The premiums listed below are currently offered on this Contribution Page. If you have other premiums which are not already being offered on this page, you will see a link below to offer another premium. Use <a href='%1'>Contributions &raquo; Premiums</a> to create or enable additional premium choices which can be used on any Contribution page.{/ts}</p>
</div>
<div class="form-item">
{strip}
<table>
<tr class="columnheader">
<th>{ts}Name{/ts}</th>
<th>{ts}SKU{/ts}</th>
<th>{ts}Market Value{/ts}</th>
<th>{ts}Min Contribution{/ts}</th>
<th>{ts}Financial Type{/ts}</th>
<th>{ts}Order{/ts}</th>
<th></th>
</tr>
{foreach from=$rows item=row}
<tr class="{cycle values='odd-row,even-row'} {$row.class}{if NOT $row.is_active} disabled{/if}">
<td class="crm-contribution-form-block-product_name">{$row.product_name}</td>
<td class="crm-contribution-form-block-sku">{$row.sku}</td>
<td class="crm-contribution-form-block-price">{$row.price }</td>
<td class="crm-contribution-form-block-min_contribution">{$row.min_contribution}</td>
<td class="crm-contribution-form-block-financial_type">{$row.financial_type_id}</td>
<td class="nowrap crm-contribution-form-block-weight">{$row.weight}</td>
<td class="crm-contribution-form-block-action">{$row.action}</td>
</tr>
{/foreach}
</table>
{/strip}
</div>
{if $products}
<div class="action-link">
<a href="{crmURL p='civicrm/admin/contribute/addProductToPage' q="reset=1&action=update&id=$id"}">&raquo; {ts}Offer Another Premium on this Contribution Page{/ts}</a>
</div>
{/if}
</div>
{else}
{if $showForm eq false}
<div class="messages status no-popup">
{if $products ne null }
<div class="icon inform-icon"></div>
{capture assign=crmURL}{crmURL p='civicrm/admin/contribute/addProductToPage' q="reset=1&action=update&id=$id"}{/capture}
{ts 1=$crmURL}There are no premiums offered on this contribution page yet. You can <a href='%1'>add one</a>.{/ts}
{else}
<div class="icon inform-icon"></div>
{ts 1=$managePremiumsURL}There are no active premiums for your site. You can <a href='%1'>create and/or enable premiums here</a>.{/ts}
{/if}
</div>
{/if}
{/if}

View file

@ -0,0 +1,59 @@
{*
+--------------------------------------------------------------------+
| CiviCRM version 4.7 |
+--------------------------------------------------------------------+
| Copyright CiviCRM LLC (c) 2004-2017 |
+--------------------------------------------------------------------+
| This file is a part of CiviCRM. |
| |
| CiviCRM is free software; you can copy, modify, and distribute it |
| under the terms of the GNU Affero General Public License |
| Version 3, 19 November 2007 and the CiviCRM Licensing Exception. |
| |
| CiviCRM is distributed in the hope that it will be useful, but |
| WITHOUT ANY WARRANTY; without even the implied warranty of |
| MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
| See the GNU Affero General Public License for more details. |
| |
| You should have received a copy of the GNU Affero General Public |
| License and the CiviCRM Licensing Exception along |
| with this program; if not, contact CiviCRM LLC |
| at info[AT]civicrm[DOT]org. If you have questions about the |
| GNU Affero General Public License or the licensing of CiviCRM, |
| see the CiviCRM license FAQ at http://civicrm.org/licensing |
+--------------------------------------------------------------------+
*}
{if $result eq true}
{if $task eq 'billing'}
{if $billingName}
<div class="crm-group billing_name_address-group">
<div class="header-dark">
{ts}Billing Name and Address{/ts}
</div>
<div class="crm-section no-label billing_name-section">
<div class="content">{$billingName}</div>
<div class="clear"></div>
</div>
<div class="crm-section no-label billing_address-section">
<div class="content">{$address|nl2br}</div>
<div class="clear"></div>
</div>
</div>
{/if}
{if $credit_card_number}
<div class="crm-group credit_card-group">
<div class="header-dark">
{ts}Credit Card Information{/ts}
</div>
<div class="crm-section no-label credit_card_details-section">
<div class="content">{$credit_card_type}</div>
<div class="content">{$credit_card_number}</div>
<div class="content">{ts}Expires{/ts}: {$credit_card_exp_date|truncate:7:''|crmDate}</div>
<div class="clear"></div>
</div>
</div>
{/if}
{/if}
{/if}

View file

@ -0,0 +1,98 @@
{*
+--------------------------------------------------------------------+
| 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-contrib_source-title"}
{ts}Source{/ts}
{/htxt}
{htxt id="id-contrib_source"}
{ts}Optional identifier for the contribution source (campaign name, event, mailer, etc.).{/ts}
{/htxt}
{htxt id="id-financial_type-title"}
{ts}Financial Type{/ts}
{/htxt}
{htxt id="id-financial_type"}
{ts}Select the appropriate financial type for this transaction.{/ts}
{/htxt}
{htxt id="payment_instrument_id-title"}
{ts}Payment Method{/ts}
{/htxt}
{htxt id="payment_instrument_id"}
<p>
{ts}Choose the method by which this transaction was paid.{/ts}
</p><p>
{ts}Note: if the correct payment method is not listed here (e.g. for in-kind donations) ask your administrator to add a new option to this list.{/ts}
</p>
{/htxt}
{htxt id="id-trans_id-title"}
{ts}Transaction ID{/ts}
{/htxt}
{htxt id="id-trans_id"}
{ts}Unique payment ID for this transaction. The Payment Processor's transaction ID will be automatically stored here on online contributions.{/ts} {ts}For offline contributions you can record a bank transfer ID or other identifier if applicable.{/ts}
{/htxt}
{htxt id="id-soft_credit-title"}
{ts}Soft Credit{/ts}
{/htxt}
{htxt id="id-soft_credit"}
<p>
{ts}Use to indicate that a contact has a relationship with the actual donor and / or was indirectly responsible for the contribution. For example, if one family member makes a large contribution - it is often useful to record a Soft Credit for the other family member(s). You can record a soft credit while adding or editing a contribution record from this tab.{/ts}
</p>
<p>
{ts}When a contribution is made via a Personal Campaign Page, a soft credit for that contribution is automatically assigned to the contact who created the Personal Campaign Page.{/ts}
</p>
{/htxt}
{htxt id="id-pcp-title"}
{ts}Personal Campaign Page{/ts}
{/htxt}
{htxt id="id-pcp"}
<p>
{ts}Use this section to indicate that the contribution came in via a constituent's Personal Campaign Page (PCP), OR should be credited to that PCP post facto.{/ts}
</p>
<p>
{ts}When contributions are made via a Personal Campaign Page a soft credit (of type 'Personal Campaign Page') is automatically created and assigned to the 'owner' of the the Personal Campaign Page.{/ts}
</p>
{/htxt}
{htxt id="adjust-payment-amount-title"}
{ts}Payment Amount{/ts}
{/htxt}
{htxt id="adjust-payment-amount"}
{ts}If you enter a payment which is different than the 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}

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 |
+--------------------------------------------------------------------+
*}
{if $action eq 1 or $action eq 2 or $action eq 8} {* add, update or view *}
{include file="CRM/Contribute/Form/Contribution.tpl"}
{elseif $action eq 4}
{include file="CRM/Contribute/Form/ContributionView.tpl"}
{else}
<div class="view-content">
<div class="help">
{if $permission EQ 'edit'}
{capture assign=newContribURL}{crmURL p="civicrm/contact/view/contribution" q="reset=1&action=add&cid=`$contactId`&context=contribution"}{/capture}
{capture assign=link}class="action-item" href="{$newContribURL}"{/capture}
{ts 1=$link}Click <a %1>Record Contribution</a> to record a new contribution received from this contact.{/ts}
{if $newCredit}
{capture assign=newCreditURL}{crmURL p="civicrm/contact/view/contribution" q="reset=1&action=add&cid=`$contactId`&context=contribution&mode=live"}{/capture}
{capture assign=link}class="action-item" href="{$newCreditURL}"{/capture}
{ts 1=$link}Click <a %1>Submit Credit Card Contribution</a> to process a new contribution on behalf of the contributor using their credit card.{/ts}
{/if}
{else}
{ts 1=$displayName}Contributions received from %1 since inception.{/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}Record Contribution (Check, Cash, EFT ...){/ts}</span></a>
{if $newCredit}
<a accesskey="N" href="{$newCreditURL}" class="button"><span><i class="crm-i fa-credit-card"></i> {ts}Submit Credit Card Contribution{/ts}</span></a>
{/if}
<br /><br />
</div>
<div class='clear'> </div>
{/if}
{if $rows}
{include file="CRM/Contribute/Page/ContributionTotals.tpl" mode="view"}
<p> </p>
{include file="CRM/Contribute/Form/Selector.tpl"}
{else}
<div class="messages status no-popup">
<div class="icon inform-icon"></div>
{ts}No contributions have been recorded from this contact.{/ts}
</div>
{/if}
{if $recur}
<div class="solid-border-top">
<br /><label>{ts 1=$displayName}Recurring Contributions{/ts}</label>
</div>
{include file="CRM/Contribute/Page/ContributionRecur.tpl"}
{/if}
{if $softCredit}
<div class="solid-border-top">
<br />
<div class="label">{ts}Soft credits{/ts} {help id="id-soft_credit"}</div>
<div class="spacer"></div>
</div>
{include file="CRM/Contribute/Page/ContributionSoft.tpl"}
{/if}
</div>
{/if}

View file

@ -0,0 +1,160 @@
{*
+--------------------------------------------------------------------+
| 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 $contribute_rows}
{strip}
<table class="selector">
<tr class="columnheader">
<th>{ts}Total Amount{/ts}</th>
<th>{ts}Financial Type{/ts}</th>
<th>{ts}Received date{/ts}</th>
<th>{ts}Receipt Sent{/ts}</th>
<th>{ts}Status{/ts}</th>
{if $invoicing && $invoices}
<th></th>
{/if}
{if $invoicing && $defaultInvoicePage}
<th></th>
{/if}
</tr>
{foreach from=$contribute_rows item=row}
<tr id='rowid{$row.contribution_id}'
class="{cycle values="odd-row,even-row"}{if $row.cancel_date} disabled{/if}">
<td>{$row.total_amount|crmMoney:$row.currency} {if $row.amount_level } - {$row.amount_level} {/if}
{if $row.contribution_recur_id}
<br/>
{ts}(Recurring Contribution){/ts}
{/if}
</td>
<td>{$row.financial_type}</td>
<td>{$row.receive_date|truncate:10:''|crmDate}</td>
<td>{$row.receipt_date|truncate:10:''|crmDate}</td>
<td>{$row.contribution_status}</td>
{if $invoicing && $invoices}
<td>
{assign var='id' value=$row.contribution_id}
{assign var='contact_id' value=$row.contact_id}
{assign var='urlParams' value="reset=1&id=$id&cid=$contact_id"}
{if call_user_func(array('CRM_Core_Permission','check'), 'view my invoices') OR call_user_func(array('CRM_Core_Permission','check'), 'access CiviContribute')}
<a class="button no-popup nowrap"
href="{crmURL p='civicrm/contribute/invoice' q=$urlParams}">
<i class="crm-i fa-print"></i>
{if $row.contribution_status != 'Refunded' && $row.contribution_status != 'Cancelled' }
<span>{ts}Print Invoice{/ts}</span>
{else}
<span>{ts}Print Invoice and Credit Note{/ts}</span>
{/if}
</a>
{/if}
</td>
{/if}
{if $defaultInvoicePage && $row.contribution_status == 'Pending (Pay Later)'}
<td>
{assign var='id' value=$row.contribution_id}
{capture assign=payNowLink}{crmURL p='civicrm/contribute/transact' q="reset=1&id=`$defaultInvoicePage`&ccid=`$id`"}{/capture}
<a class="button" href="{$payNowLink}"><span class='nowrap'>{ts}Pay Now{/ts}</span></a>
</td>
{/if}
</tr>
{/foreach}
</table>
{/strip}
{if $contributionSummary.total.count gt 12}
{ts}Contact us for information about contributions prior to those listed above.{/ts}
{/if}
{else}
<div class="messages status no-popup">
<div class="icon inform-icon"></div>
{ts}There are no contributions on record for you.{/ts}
</div>
{/if}
{if $honor}
{if $honorRows}
{strip}
<div class="help">
{ts}Contributions made in your honor{/ts}:
</div>
<table class="selector">
<tr class="columnheader">
<th>{ts}Contributor{/ts}</th>
<th>{ts}Amount{/ts}</th>
<th>{ts}Type{/ts}</th>
<th>{ts}Financial Type{/ts}</th>
<th>{ts}Received date{/ts}</th>
<th>{ts}Receipt Sent{/ts}</th>
<th>{ts}Status{/ts}</th>
</tr>
{foreach from=$honorRows item=row}
<tr id='rowid{$row.honorId}' class="{cycle values="odd-row,even-row"}">
<td><a href="{crmURL p="civicrm/contact/view" q="reset=1&cid=`$row.honorId`"}"
id="view_contact">{$row.display_name}</a></td>
<td>{$row.amount}</td>
<td>{$row.honor_type}</td>
<td>{$row.type}</td>
<td>{$row.receive_date|truncate:10:''|crmDate}</td>
<td>{$row.receipt_date|truncate:10:''|crmDate}</td>
<td>{$row.contribution_status}</td>
</tr>
{/foreach}
</table>
{/strip}
{/if}
{/if}
{if $recur}
{if $recurRows}
{strip}
<div><label>{ts}Recurring Contribution(s){/ts}</label></div>
<table class="selector">
<tr class="columnheader">
<th>{ts}Terms:{/ts}</th>
<th>{ts}Status{/ts}</th>
<th>{ts}Installments{/ts}</th>
<th>{ts}Created{/ts}</th>
<th></th>
</tr>
{foreach from=$recurRows item=row key=id}
<tr class="{cycle values="odd-row,even-row"}">
<td><label>{$recurRows.$id.amount|crmMoney}</label>
every {$recurRows.$id.frequency_interval} {$recurRows.$id.frequency_unit}
for {$recurRows.$id.installments} installments
</td>
<td>{$recurRows.$id.recur_status}</td>
<td>{if $recurRows.$id.completed}<a href="{$recurRows.$id.link}">{$recurRows.$id.completed}
/{$recurRows.$id.installments}</a>
{else}0/{$recurRows.$id.installments} {/if}</td>
<td>{$recurRows.$id.create_date|crmDate}</td>
<td>{$recurRows.$id.action|replace:'xx':$recurRows.id}</td>
</tr>
{/foreach}
</table>
{/strip}
{/if}
{/if}
</div>

View file

@ -0,0 +1,214 @@
{literal}
<style>
.crm-contribute-widget {
font-size:12px;
font-family:Helvetica, Arial, sans;
padding:6px;
-moz-border-radius: 4px;
-webkit-border-radius: 4px;
-khtml-border-radius: 4px;
border-radius: 4px;
border:1px solid #96C0E7;
width:200px;
}
.crm-contribute-widget h5 {
font-size:14px;
padding:3px;
margin: 0px;
text-align:center;
-moz-border-radius: 4px;
-webkit-border-radius: 4px;
-khtml-border-radius: 4px;
border-radius: 4px;
}
.crm-contribute-widget .crm-amounts {
height:1em;
margin:.8em 0px;
font-size:13px;
}
.crm-contribute-widget .crm-amount-low {
float:left;
}
.crm-contribute-widget .crm-amount-high {
float:right;
}
.crm-contribute-widget .crm-percentage {
margin:0px 30%;
text-align:center;
}
.crm-contribute-widget .crm-amount-bar {
background-color:#FFF;
width:100%;
display:block;
border:1px solid #CECECE;
-moz-border-radius: 4px;
-webkit-border-radius: 4px;
-khtml-border-radius: 4px;
border-radius: 4px;
margin-bottom:.8em;
text-align:left;
}
.crm-contribute-widget .crm-amount-fill {
background-color:#2786C2;
height:1em;
display:block;
-moz-border-radius: 4px 0px 0px 4px;
-webkit-border-radius: 4px 0px 0px 4px;
-khtml-border-radius: 4px 0px 0px 4px;
border-radius: 4px 0px 0px 4px;
text-align:left;
}
.crm-contribute-widget .crm-amount-raised-wrapper {
margin-bottom:.8em;
}
.crm-contribute-widget .crm-amount-raised {
font-weight:bold;
}
.crm-contribute-widget .crm-logo {
text-align:center;
}
.crm-contribute-widget .crm-comments,
.crm-contribute-widget .crm-donors,
.crm-contribute-widget .crm-campaign {
font-size:11px;
margin-bottom:.8em;
}
.crm-contribute-widget .crm-contribute-button {
display:block;
background-color:#CECECE;
-moz-border-radius: 4px;
-webkit-border-radius: 4px;
-khtml-border-radius: 4px;
border-radius: 4px;
text-align:center;
margin:0px 10% .8em 10%;
text-decoration:none;
color:#556C82;
padding:2px;
font-size:13px;
}
.crm-contribute-widget .crm-home-url {
text-decoration:none;
border:0px;
}
</style>
<style>
.crm-contribute-widget {
background-color: {/literal}{$form.color_main.value}{literal}; /* background color */
border-color:{/literal}{$form.color_bg.value}{literal}; /* border color */
}
.crm-contribute-widget h5 {
color: {/literal}{$form.color_title.value}{literal};
background-color: {/literal}{$form.color_main_bg.value}{literal};
} /* title */
.crm-contribute-widget .crm-amount-raised { color:#000; }
.crm-contribute-widget .crm-amount-fill {
background-color:{/literal}{$form.color_bar.value}{literal};
}
.crm-contribute-widget a.crm-contribute-button { /* button color */
background-color:{/literal}{$form.color_button.value}{literal};
}
.crm-contribute-widget .crm-contribute-button-inner { /* button text color */
padding:2px;
display:block;
color:{/literal}{$form.color_about_link.value}{literal};
}
.crm-contribute-widget .crm-comments,
.crm-contribute-widget .crm-donors,
.crm-contribute-widget .crm-campaign {
color:{/literal}{$form.color_main_text.value}{literal} /* other color*/
}
.crm-contribute-widget .crm-home-url {
color:{/literal}{$form.color_homepage_link.value}{literal} /* home page link color*/
}
</style>
{/literal}
<div id="crm_cpid_{$cpageId}" class="crm-contribute-widget">
<h5 id="crm_cpid_{$cpageId}_title"></h5>
<div class="crm-amounts">
<div id="crm_cpid_{$cpageId}_amt_hi" class="crm-amount-high"></div>
<div id="crm_cpid_{$cpageId}_amt_low" class="crm-amount-low"></div>
<div id="crm_cpid_{$cpageId}_percentage" class="crm-percentage"></div>
</div>
<div class="crm-amount-bar">
<div class="crm-amount-fill" id="crm_cpid_{$cpageId}_amt_fill"></div>
</div>
<div class="crm-amount-raised-wrapper">
<span id="crm_cpid_{$cpageId}_amt_raised" class="crm-amount-raised"> -- placeholder -- </span>
</div>
{if $form.url_logo.value}
<div class="crm-logo"><img src="{$form.url_logo.value}" alt={ts}Logo{/ts}></div>
{/if}
<div id="crm_cpid_{$cpageId}_donors" class="crm-donors"></div>
<div id="crm_cpid_{$cpageId}_comments" class="crm-comments"></div>
<div id="crm_cpid_{$cpageId}_campaign" class="crm-campaign"></div>
<div class="crm-contribute-button-wrapper" id="crm_cpid_{$cpageId}_button">
<a href='{crmURL p="civicrm/contribute/transact" q="reset=1&id=$cpageId" h=0 a=1 fe=1}' class="crm-contribute-button"><span class="crm-contribute-button-inner" id="crm_cpid_{$cpageId}_btn_txt"> -- placeholder -- </span></a>
</div>
</div>
{literal}
<script type="text/javascript">
// Cleanup functions for the document ready method
if ( document.addEventListener ) {
DOMContentLoaded = function() {
document.removeEventListener( "DOMContentLoaded", DOMContentLoaded, false );
onReady();
};
} else if ( document.attachEvent ) {
DOMContentLoaded = function() {
// Make sure body exists, at least, in case IE gets a little overzealous
if ( document.readyState === "complete" ) {
document.detachEvent( "onreadystatechange", DOMContentLoaded );
onReady();
}
};
}
if ( document.readyState === "complete" ) {
// Handle it asynchronously to allow scripts the opportunity to delay ready
setTimeout( onReady, 1 );
}
// Mozilla, Opera and webkit support this event
if ( document.addEventListener ) {
// Use the handy event callback
document.addEventListener( "DOMContentLoaded", DOMContentLoaded, false );
// A fallback to window.onload, that will always work
window.addEventListener( "load", onReady, false );
// If IE event model is used
} else if ( document.attachEvent ) {
// ensure firing before onload,
// maybe late but safe also for iframes
document.attachEvent("onreadystatechange", DOMContentLoaded);
// A fallback to window.onload, that will always work
window.attachEvent( "onload", onReady );
}
function onReady( ) {
var cpid = {/literal}{$cpageId}{literal};
var jsonvar = eval('jsondata' + cpid);
var crmCurrency = jsonvar.currencySymbol;
document.getElementById('crm_cpid_'+cpid+'_title').innerHTML = jsonvar.title;
if ( jsonvar.money_target > 0 ) {
document.getElementById('crm_cpid_'+cpid+'_amt_hi').innerHTML = jsonvar.money_target_display;
document.getElementById('crm_cpid_'+cpid+'_amt_low').innerHTML = crmCurrency+jsonvar.money_low;
}
document.getElementById('crm_cpid_'+cpid+'_amt_raised').innerHTML = jsonvar.money_raised;
document.getElementById('crm_cpid_'+cpid+'_comments').innerHTML = jsonvar.about;
document.getElementById('crm_cpid_'+cpid+'_donors').innerHTML = jsonvar.num_donors;
document.getElementById('crm_cpid_'+cpid+'_btn_txt').innerHTML = jsonvar.button_title;
document.getElementById('crm_cpid_'+cpid+'_campaign').innerHTML = jsonvar.campaign_start;
if ( jsonvar.money_raised_percentage ) {
var moneyRaised = jsonvar.money_raised_percentage;
var percentWidth = moneyRaised.split('%');
if ( percentWidth[0] > 100 ) {
moneyRaised = '100%';
}
document.getElementById('crm_cpid_'+cpid+'_amt_fill').style.width = moneyRaised;
document.getElementById('crm_cpid_'+cpid+'_percentage').innerHTML = jsonvar.money_raised_percentage;
}
if ( !jsonvar.is_active ) {
document.getElementById('crm_cpid_'+cpid+'_button').innerHTML = jsonvar.home_url;
document.getElementById('crm_cpid_'+cpid+'_button').style.color = 'red';
}
}
</script>
{/literal}
<script type="text/javascript" src="{$config->userFrameworkResourceURL}/extern/widget.php?cpageId={$cpageId}&widgetId={$widget_id}&format=3"></script>