Replace all instances of check.gif appearing in listings
[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">{icon condition=$row.is_default}{ts}Default{/ts}{/icon}&nbsp;
46 </td>
47 <td>{$row.action|replace:'xx':$row.id}</td>
48 </tr>
49 {/foreach}
50 </table>
51 {/strip}
52
53 {if $action ne 1 and $action ne 2}
54 <div class="action-link">
55 {crmButton q="action=add&reset=1&pp=$defaultPaymentProcessorType" id="newPaymentProcessor" icon="plus-circle"}{ts}Add Payment Processor{/ts}{/crmButton}
56 </div>
57 {/if}
58 </div>
59 {elseif $action ne 1}
60 <div class="messages status no-popup">
61 <div class="icon inform-icon"></div>
62 {ts}There are no Payment Processors entered.{/ts}
63 </div>
64 <div class="action-link">
65 {crmButton p='civicrm/admin/paymentProcessor' q="action=add&reset=1&pp=$defaultPaymentProcessorType" id="newPaymentProcessor" icon="plus-circle"}{ts}Add Payment Processor{/ts}{/crmButton}
66 </div>
67 {/if}
68 </div>
69
70 {/if}