[REF] Move handling of form elements back to the Form
[civicrm-core.git] / templates / CRM / Contribute / Form / AcceptCreditCard.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 {* this template is used for adding/editing/deleting Credit Card *}
11 <div class="form-item form-item crm-block crm-form-block crm-contribution-form-block">
12 <fieldset><legend>{if $action eq 1}{ts}New Credit Card{/ts}{elseif $action eq 2}{ts}Edit Credit Card{/ts}{else}{ts}Delete Credit Card{/ts}{/if}</legend>
13
14 {if $action eq 8}
15 <div class="messages status no-popup">
16 <div class="icon inform-icon"></div>
17 {ts}WARNING: If you delete this option, contributors will not be able to use this credit card type on your Online Contribution pages.{/ts} {ts}Do you want to continue?{/ts}
18 </div>
19 {else}
20 <table class="form-layout-compressed">
21 <tr class="crm-contribution-form-block-name">
22 <td class="label">{$form.name.label}</td>
23 <td class="html-adjust">{$form.name.html}<br />
24 <span class="description">{ts}The name for this credit card type as it should be provided to your payment processor.{/ts}</span>
25 </td>
26 </tr>
27 <tr class="crm-contribution-form-block-title">
28 <td class="label">{$form.title.label}</td>
29 <td class="html-adjust">{$form.title.html}<br />
30 <span class="description">{ts}The name for this credit card type as it is displayed to contributors. This may be the same value as the Name above, or a localised title.{/ts}</span>
31 </td>
32 </tr>
33 <tr class="crm-contribution-form-block-is_active">
34 <td class="label">{$form.is_active.label}</td>
35 <td class="html-adjust">{$form.is_active.html}</td>
36 </tr>
37 </table>
38 {/if}
39 <div class="crm-submit-buttons">{$form.buttons.html}</div>
40 </fieldset>
41 </div>