Import from SVN (r45945, r596)
[civicrm-core.git] / templates / CRM / Admin / Page / PaymentProcessor.tpl
CommitLineData
6a488035
TO
1{*
2 +--------------------------------------------------------------------+
3 | CiviCRM version 4.3 |
4 +--------------------------------------------------------------------+
5 | Copyright CiviCRM LLC (c) 2004-2013 |
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/enableDisable.tpl"}
40 <table class="selector">
41 <tr class="columnheader">
42 <th >{ts}Name{/ts}</th>
43 <th >{ts}Processor Type{/ts}</th>
44 <th >{ts}Description{/ts}</th>
45 <th >{ts}Financial Account{/ts}</th>
46 <th >{ts}Enabled?{/ts}</th>
47 <th >{ts}Default?{/ts}</th>
48 <th ></th>
49 </tr>
50 {foreach from=$rows item=row}
51 <tr id="row_{$row.id}" class="crm-payment_processor {cycle values="odd-row,even-row"} {$row.class}{if NOT $row.is_active} disabled{/if}">
52 <td class="crm-payment_processor-name">{$row.name}</td>
53 <td class="crm-payment_processor-payment_processor_type">{$row.payment_processor_type}</td>
54 <td class="crm-payment_processor-description">{$row.description}</td>
55 <td class="crm-payment_processor-financialAccount">{$row.financialAccount}</td>
56 <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>
57 <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}&nbsp;</td>
58 <td>{$row.action|replace:'xx':$row.id}</td>
59 </tr>
60 {/foreach}
61 </table>
62 {/strip}
63
64 {if $action ne 1 and $action ne 2}
65 <div class="action-link">
66 <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>
67 </div>
68 {/if}
69</div>
70{elseif $action ne 1}
71 <div class="messages status no-popup">
72 <div class="icon inform-icon"></div>
73 {ts}There are no Payment Processors entered.{/ts}
74 </div>
75 <div class="action-link">
76 <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>
77 </div>
78{/if}
79{/if}