Commit | Line | Data |
---|---|---|
6a488035 TO |
1 | {* |
2 | +--------------------------------------------------------------------+ | |
1188c7a8 | 3 | | Copyright CiviCRM LLC. All rights reserved. | |
6a488035 | 4 | | | |
1188c7a8 TO |
5 | | This work is published under the GNU AGPLv3 license with some | |
6 | | permitted exceptions and without any warranty. For full license | | |
7 | | and copyright information, see https://civicrm.org/licensing | | |
6a488035 TO |
8 | +--------------------------------------------------------------------+ |
9 | *} | |
f6eedce7 | 10 | <div class="help"> |
bccf4a00 | 11 | {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} {help id='proc-type'} |
6a488035 TO |
12 | </div> |
13 | ||
14 | {if $action eq 1 or $action eq 2 or $action eq 8} | |
15 | {include file="CRM/Admin/Form/PaymentProcessor.tpl"} | |
16 | {else} | |
17 | ||
036aa39d | 18 | <div class="crm-content-block crm-block"> |
6a488035 TO |
19 | {if $rows} |
20 | <div id="ltype"> | |
21 | {strip} | |
22 | {* handle enable/disable actions*} | |
4d17a233 | 23 | {include file="CRM/common/enableDisableApi.tpl"} |
16850d34 | 24 | <table class="selector row-highlight"> |
6a488035 | 25 | <tr class="columnheader"> |
279b28d0 MWMC |
26 | <th>{ts}ID{/ts}</th> |
27 | <th>{ts}Test ID{/ts}</th> | |
28 | <th>{ts}Name{/ts}</th> | |
29 | <th>{ts}Processor Type{/ts}</th> | |
30 | <th>{ts}Description{/ts}</th> | |
31 | <th>{ts}Financial Account{/ts}</th> | |
32 | <th>{ts}Enabled?{/ts}</th> | |
33 | <th>{ts}Default?{/ts}</th> | |
34 | <th></th> | |
6a488035 TO |
35 | </tr> |
36 | {foreach from=$rows item=row} | |
4d17a233 | 37 | <tr id="payment_processor-{$row.id}" class="crm-entity {cycle values="odd-row,even-row"} {$row.class}{if NOT $row.is_active} disabled{/if}"> |
279b28d0 MWMC |
38 | <td class="crmf-id center">{$row.id}</td> |
39 | <td class="crmf-test_id center">{$row.test_id}</td> | |
b633f8bd CW |
40 | <td class="crmf-name">{$row.name}</td> |
41 | <td class="crmf-payment_processor_type">{$row.payment_processor_type}</td> | |
42 | <td class="crmf-description">{$row.description}</td> | |
43 | <td class="crmf-financial_account_id">{$row.financialAccount}</td> | |
279b28d0 MWMC |
44 | <td class="crmf-is_active center">{if $row.is_active eq 1} {ts}Yes{/ts} {else} {ts}No{/ts} {/if}</td> |
45 | <td class="crmf-is_default center"> | |
036aa39d MR |
46 | {if $row.is_default eq 1}<img src="{$config->resourceBase}i/check.gif" alt="{ts}Default{/ts}"/>{/if} |
47 | </td> | |
48 | <td>{$row.action|replace:'xx':$row.id}</td> | |
6a488035 TO |
49 | </tr> |
50 | {/foreach} | |
51 | </table> | |
52 | {/strip} | |
53 | ||
54 | {if $action ne 1 and $action ne 2} | |
55 | <div class="action-link"> | |
80bc2820 | 56 | {crmButton q="action=add&reset=1&pp=$defaultPaymentProcessorType" id="newPaymentProcessor" icon="plus-circle"}{ts}Add Payment Processor{/ts}{/crmButton} |
6a488035 TO |
57 | </div> |
58 | {/if} | |
59 | </div> | |
60 | {elseif $action ne 1} | |
61 | <div class="messages status no-popup"> | |
62 | <div class="icon inform-icon"></div> | |
63 | {ts}There are no Payment Processors entered.{/ts} | |
64 | </div> | |
65 | <div class="action-link"> | |
80bc2820 | 66 | {crmButton p='civicrm/admin/paymentProcessor' q="action=add&reset=1&pp=$defaultPaymentProcessorType" id="newPaymentProcessor" icon="plus-circle"}{ts}Add Payment Processor{/ts}{/crmButton} |
6a488035 TO |
67 | </div> |
68 | {/if} | |
036aa39d MR |
69 | </div> |
70 | ||
232624b1 | 71 | {/if} |