commiting uncommited changes on live site
[weblabels.fsf.org.git] / crm.fsf.org / 20131203 / files / sites / all / modules-new / civicrm / templates / CRM / Admin / Page / PaymentProcessor.tpl
1 {*
2 +--------------------------------------------------------------------+
3 | CiviCRM version 4.6 |
4 +--------------------------------------------------------------------+
5 | Copyright CiviCRM LLC (c) 2004-2015 |
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">
27 {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'}
28 </div>
29
30 {if $action eq 1 or $action eq 2 or $action eq 8}
31 {include file="CRM/Admin/Form/PaymentProcessor.tpl"}
32 {else}
33
34 {if $rows}
35 <div id="ltype">
36 {strip}
37 {* handle enable/disable actions*}
38 {include file="CRM/common/enableDisableApi.tpl"}
39 <table class="selector row-highlight">
40 <tr class="columnheader">
41 <th >{ts}Name{/ts}</th>
42 <th >{ts}Processor Type{/ts}</th>
43 <th >{ts}Description{/ts}</th>
44 <th >{ts}Financial Account{/ts}</th>
45 <th >{ts}Enabled?{/ts}</th>
46 <th >{ts}Default?{/ts}</th>
47 <th ></th>
48 </tr>
49 {foreach from=$rows item=row}
50 <tr id="payment_processor-{$row.id}" class="crm-entity {cycle values="odd-row,even-row"} {$row.class}{if NOT $row.is_active} disabled{/if}">
51 <td class="crmf-name">{$row.name}</td>
52 <td class="crmf-payment_processor_type">{$row.payment_processor_type}</td>
53 <td class="crmf-description">{$row.description}</td>
54 <td class="crmf-financial_account_id">{$row.financialAccount}</td>
55 <td class="crmf-is_active">{if $row.is_active eq 1} {ts}Yes{/ts} {else} {ts}No{/ts} {/if}</td>
56 <td class="crmf-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|replace:'xx':$row.id}</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 {crmButton q="action=add&reset=1&pp=$defaultPaymentProcessorType" id="newPaymentProcessor" icon="circle-plus"}{ts}Add Payment Processor{/ts}{/crmButton}
66 </div>
67 {/if}
68 </div>
69 {elseif $action ne 1}
70 <div class="messages status no-popup">
71 <div class="icon inform-icon"></div>
72 {ts}There are no Payment Processors entered.{/ts}
73 </div>
74 <div class="action-link">
75 {crmButton p='civicrm/admin/paymentProcessor' q="action=add&reset=1&pp=$defaultPaymentProcessorType" id="newPaymentProcessor" icon="circle-plus"}{ts}Add Payment Processor{/ts}{/crmButton}
76 </div>
77 {/if}
78 {/if}