Merge pull request #15794 from KarinG/master
[civicrm-core.git] / templates / CRM / Admin / Page / PaymentProcessorType.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}Payment Processor configurations for all payment processors that can be used in this installation of CiviCRM.{/ts}
12 </div>
13
14 {if $action eq 1 or $action eq 2 or $action eq 8}
15 {include file="CRM/Admin/Form/PaymentProcessorType.tpl"}
16 {else}
17
18 {if $rows}
19 <div id="ltype">
20 <p></p>
21 <div class="form-item">
22 {strip}
23 {include file="CRM/common/enableDisableApi.tpl"}
24 <table cellpadding="0" cellspacing="0" border="0">
25 <tr class="columnheader">
26 <th>{ts}Name{/ts}</th>
27 <th>{ts}Title{/ts}</th>
28 <th>{ts}Description{/ts}</th>
29 <th>{ts}Enabled?{/ts}</th>
30 <th>{ts}Default?{/ts}</th>
31 <th></th>
32 </tr>
33 {foreach from=$rows item=row}
34 <tr id="paymentProcessorType-{$row.id}" class="{cycle values="odd-row,even-row"} {$row.class} crm-entity {if NOT $row.is_active} disabled{/if}">
35 <td class="crm-paymentProcessorType-name">{$row.name}</td>
36 <td class="crm-paymentProcessorType-title crm-editable" data-field="title">{$row.title}</td>
37 <td class="crm-paymentProcessorType-description">{$row.description}</td>
38 <td id="row_{$row.id}_status" class="crm-paymentProcessorType-is_active">{if $row.is_active eq 1} {ts}Yes{/ts} {else} {ts}No{/ts} {/if}</td>
39 <td class="crm-paymentProcessorType-is_default">{if $row.is_default eq 1}<img src="{$config->resourceBase}i/check.gif" alt="{ts}Default{/ts}" />{/if}&nbsp;</td>
40 <td>{$row.action}</td>
41 </tr>
42 {/foreach}
43 </table>
44 {/strip}
45
46 {if $action ne 1 and $action ne 2}
47 <div class="action-link">
48 <a href="{crmURL q="action=add&reset=1"}" id="newPaymentProcessor">&raquo; {ts}New Payment Processor{/ts}</a>
49 {crmButton p="civicrm/admin" q="reset=1" class="cancel" icon="times"}{ts}Done{/ts}{/crmButton}
50 </div>
51 {/if}
52 </div>
53 </div>
54 {elseif $action ne 1}
55 <div class="messages status no-popup">
56 <img src="{$config->resourceBase}i/Inform.gif" alt="{ts}status{/ts}"/>
57 {ts}None found.{/ts}
58 </div>
59 {/if}
60 {/if}