// add payment information on Payment table

git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11391 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
aFolletete
2011-12-19 19:03:27 +00:00
parent 8af781e449
commit d3a3a76421
3 changed files with 64 additions and 12 deletions
+42 -1
View File
@@ -236,7 +236,48 @@
{l s='No invoice'} {l s='No invoice'}
{/if} {/if}
</td> </td>
<td></td> <td class="right">
<a href="#" class="open_payment_information"><img src="../img/admin/details.gif" title="{l s='See payment informations'}" alt="{l s='See payment informations'}" /></a>
</td>
</tr>
<tr class="payment_information" style="display: none;">
<td colspan="6">
<p>
<b>{l s='Card Number:'}</b>&nbsp;
{if $payment->card_number}
{$payment->card_number}
{else}
<i>{l s='Not defined'}</i>
{/if}
</p>
<p>
<b>{l s='Card Brand:'}</b>&nbsp;
{if $payment->card_brand}
{$payment->card_brand}
{else}
<i>{l s='Not defined'}</i>
{/if}
</p>
<p>
<b>{l s='Card Expiration:'}</b>&nbsp;
{if $payment->card_expiration}
{$payment->card_expiration}
{else}
<i>{l s='Not defined'}</i>
{/if}
</p>
<p>
<b>{l s='Card Holder:'}</b>&nbsp;
{if $payment->card_holder}
{$payment->card_holder}
{else}
<i>{l s='Not defined'}</i>
{/if}
</p>
</td>
</tr> </tr>
{foreachelse} {foreachelse}
<tr> <tr>
+2
View File
@@ -2020,3 +2020,5 @@ div#scrollTop a:hover{
.current-edit { background-color: rgb(232, 237, 194); } .current-edit { background-color: rgb(232, 237, 194); }
.edit-note { width: 98%; height: 100px; } .edit-note { width: 98%; height: 100px; }
.payment_information { background-color: #BDE5F8 }
+9
View File
@@ -736,6 +736,15 @@ function init()
else else
$('select[name=discount_invoice]').attr('disabled', false); $('select[name=discount_invoice]').attr('disabled', false);
}); });
$('.open_payment_information').click(function() {
if ($(this).parent().parent().next('tr').is(':visible'))
$(this).parent().parent().next('tr').hide();
else
$(this).parent().parent().next('tr').show();
return false;
});
} }