Merge pull request #3066 from relldoesphp/CRM-14466
[civicrm-core.git] / templates / CRM / Admin / Page / PaymentProcessorType.tpl
CommitLineData
6a488035
TO
1{*
2 +--------------------------------------------------------------------+
819d0d41 3 | CiviCRM version 4.5 |
6a488035 4 +--------------------------------------------------------------------+
819d0d41 5 | Copyright CiviCRM LLC (c) 2004-2014 |
6a488035
TO
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<div id="help">
670321f6 27 {ts}Payment Processor configurations for all payment processors that can be used in this installation of CiviCRM.{/ts}
6a488035
TO
28</div>
29
30{if $action eq 1 or $action eq 2 or $action eq 8}
31 {include file="CRM/Admin/Form/PaymentProcessorType.tpl"}
32{else}
33
34{if $rows}
35<div id="ltype">
36<p></p>
37 <div class="form-item">
38 {strip}
4d17a233
CW
39 {include file="CRM/common/enableDisableApi.tpl"}
40 {include file="CRM/common/crmeditable.tpl"}
6a488035
TO
41 <table cellpadding="0" cellspacing="0" border="0">
42 <tr class="columnheader">
43 <th>{ts}Name{/ts}</th>
44 <th>{ts}Title{/ts}</th>
45 <th>{ts}Description{/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}
4d17a233 51 <tr id="paymentProcessorType-{$row.id}" class="{cycle values="odd-row,even-row"} {$row.class} crm-entity {if NOT $row.is_active} disabled{/if}">
6a488035 52 <td class="crm-paymentProcessorType-name">{$row.name}</td>
4d17a233 53 <td class="crm-paymentProcessorType-title crm-editable" data-field="title">{$row.title}</td>
6a488035
TO
54 <td class="crm-paymentProcessorType-description">{$row.description}</td>
55 <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>
56 <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>
57 <td>{$row.action}</td>
58 </tr>
59 {/foreach}
60 </table>
61 {/strip}
62
63 {if $action ne 1 and $action ne 2}
64 <div class="action-link">
65 <a href="{crmURL q="action=add&reset=1"}" id="newPaymentProcessor">&raquo; {ts}New Payment Processor{/ts}</a>
66 </div>
67 {/if}
68 </div>
69</div>
70{elseif $action ne 1}
71 <div class="messages status no-popup">
72 <img src="{$config->resourceBase}i/Inform.gif" alt="{ts}status{/ts}"/>
73 {capture assign=crmURL}{crmURL p='civicrm/admin/paymentProcessorType' q="action=add&reset=1"}{/capture}
74 {ts 1=$crmURL}There are no Payment Processors entered. You can <a href='%1'>add one</a>.{/ts}
75 </div>
76{/if}
232624b1 77{/if}