| 1 | {* |
| 2 | +--------------------------------------------------------------------+ |
| 3 | | CiviCRM version 4.5 | |
| 4 | +--------------------------------------------------------------------+ |
| 5 | | Copyright CiviCRM LLC (c) 2004-2014 | |
| 6 | +--------------------------------------------------------------------+ |
| 7 | | This file is a part of CiviCRM. | |
| 8 | | | |
| 9 | | CiviCRM is free software; you can copy, modify, and distribute it | |
| 10 | | under the terms of the GNU Affero General Public License | |
| 11 | | Version 3, 19 November 2007 and the CiviCRM Licensing Exception. | |
| 12 | | | |
| 13 | | CiviCRM is distributed in the hope that it will be useful, but | |
| 14 | | WITHOUT ANY WARRANTY; without even the implied warranty of | |
| 15 | | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. | |
| 16 | | See the GNU Affero General Public License for more details. | |
| 17 | | | |
| 18 | | You should have received a copy of the GNU Affero General Public | |
| 19 | | License and the CiviCRM Licensing Exception along | |
| 20 | | with this program; if not, contact CiviCRM LLC | |
| 21 | | at info[AT]civicrm[DOT]org. If you have questions about the | |
| 22 | | GNU Affero General Public License or the licensing of CiviCRM, | |
| 23 | | see the CiviCRM license FAQ at http://civicrm.org/licensing | |
| 24 | +--------------------------------------------------------------------+ |
| 25 | *} |
| 26 | {capture assign=docLink}{docURL page="user/contributions/payment-processors"}{/capture} |
| 27 | <div id="help"> |
| 28 | {ts}You can configure one or more Payment Processors for your CiviCRM installation. You must then assign an active Payment Processor to each <strong>Online Contribution Page</strong> and each paid <strong>Event</strong>.{/ts} {$docLink} |
| 29 | </div> |
| 30 | |
| 31 | {if $action eq 1 or $action eq 2 or $action eq 8} |
| 32 | {include file="CRM/Admin/Form/PaymentProcessor.tpl"} |
| 33 | {else} |
| 34 | |
| 35 | {if $rows} |
| 36 | <div id="ltype"> |
| 37 | {strip} |
| 38 | {* handle enable/disable actions*} |
| 39 | {include file="CRM/common/enableDisableApi.tpl"} |
| 40 | {include file="CRM/common/crmeditable.tpl"} |
| 41 | <table class="selector row-highlight"> |
| 42 | <tr class="columnheader"> |
| 43 | <th >{ts}Name{/ts}</th> |
| 44 | <th >{ts}Processor Type{/ts}</th> |
| 45 | <th >{ts}Description{/ts}</th> |
| 46 | <th >{ts}Financial Account{/ts}</th> |
| 47 | <th >{ts}Enabled?{/ts}</th> |
| 48 | <th >{ts}Default?{/ts}</th> |
| 49 | <th ></th> |
| 50 | </tr> |
| 51 | {foreach from=$rows item=row} |
| 52 | <tr id="payment_processor-{$row.id}" class="crm-entity {cycle values="odd-row,even-row"} {$row.class}{if NOT $row.is_active} disabled{/if}"> |
| 53 | <td class="crm-payment_processor-name">{$row.name}</td> |
| 54 | <td class="crm-payment_processor-payment_processor_type">{$row.payment_processor_type}</td> |
| 55 | <td class="crm-payment_processor-description">{$row.description}</td> |
| 56 | <td class="crm-payment_processor-financialAccount">{$row.financialAccount}</td> |
| 57 | <td id="row_{$row.id}_status" class="crm-payment_processor-is_active">{if $row.is_active eq 1} {ts}Yes{/ts} {else} {ts}No{/ts} {/if}</td> |
| 58 | <td class="crm-payment_processor-is_default">{if $row.is_default eq 1}<img src="{$config->resourceBase}i/check.gif" alt="{ts}Default{/ts}" />{/if} </td> |
| 59 | <td>{$row.action|replace:'xx':$row.id}</td> |
| 60 | </tr> |
| 61 | {/foreach} |
| 62 | </table> |
| 63 | {/strip} |
| 64 | |
| 65 | {if $action ne 1 and $action ne 2} |
| 66 | <div class="action-link"> |
| 67 | <a href="{crmURL q="action=add&reset=1&pp=2"}" id="newPaymentProcessor" class="button"><span><div class="icon add-icon"></div>{ts}Add Payment Processor{/ts}</span></a> |
| 68 | </div> |
| 69 | {/if} |
| 70 | </div> |
| 71 | {elseif $action ne 1} |
| 72 | <div class="messages status no-popup"> |
| 73 | <div class="icon inform-icon"></div> |
| 74 | {ts}There are no Payment Processors entered.{/ts} |
| 75 | </div> |
| 76 | <div class="action-link"> |
| 77 | <a href="{crmURL p='civicrm/admin/paymentProcessor' q="action=add&reset=1&pp=2"}" id="newPaymentProcessor" class="button"><span><div class="icon add-icon"></div>{ts}Add Payment Processor{/ts}</span></a> |
| 78 | </div> |
| 79 | {/if} |
| 80 | {/if} |