Merge pull request #15834 from francescbassas/patch-16
[civicrm-core.git] / templates / CRM / Admin / Page / PaymentProcessor.tpl
1 {*
2 +--------------------------------------------------------------------+
3 | Copyright CiviCRM LLC. All rights reserved. |
4 | |
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 |
8 +--------------------------------------------------------------------+
9 *}
10 <div class="help">
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'}
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
18 <div class="crm-content-block crm-block">
19 {if $rows}
20 <div id="ltype">
21 {strip}
22 {* handle enable/disable actions*}
23 {include file="CRM/common/enableDisableApi.tpl"}
24 <table class="selector row-highlight">
25 <tr class="columnheader">
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>
35 </tr>
36 {foreach from=$rows item=row}
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}">
38 <td class="crmf-id center">{$row.id}</td>
39 <td class="crmf-test_id center">{$row.test_id}</td>
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>
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">
46 {if $row.is_default eq 1}<img src="{$config->resourceBase}i/check.gif" alt="{ts}Default{/ts}"/>{/if}&nbsp;
47 </td>
48 <td>{$row.action|replace:'xx':$row.id}</td>
49 </tr>
50 {/foreach}
51 </table>
52 {/strip}
53
54 {if $action ne 1 and $action ne 2}
55 <div class="action-link">
56 {crmButton q="action=add&reset=1&pp=$defaultPaymentProcessorType" id="newPaymentProcessor" icon="plus-circle"}{ts}Add Payment Processor{/ts}{/crmButton}
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">
66 {crmButton p='civicrm/admin/paymentProcessor' q="action=add&reset=1&pp=$defaultPaymentProcessorType" id="newPaymentProcessor" icon="plus-circle"}{ts}Add Payment Processor{/ts}{/crmButton}
67 </div>
68 {/if}
69 </div>
70
71 {/if}