Merge branch 'ticket-payboxAgreement' into develop

This commit is contained in:
Marion Muszynski 2016-09-09 13:07:18 +02:00
commit 3c7e15e2c3
2 changed files with 76 additions and 32 deletions

View File

@ -6818,6 +6818,46 @@ table#carrierTable tbody td {
float: left;
}
.block-paybox,
.block-paypal{
background: #fff;
padding: 20px;
-moz-box-shadow: 2px 2px 5px #cccccc;
-webkit-box-shadow: 2px 2px 5px #CCC;
-ms-box-shadow: 2px 2px 5px #cccccc;
-o-box-shadow: 2px 2px 5px #cccccc;
box-shadow: 2px 2px 5px #CCC;
}
.block-paybox tr.alternate_item.even,
.block-paypal tr.alternate_item.even {
background: #F3F3F3;
}
.block-paybox tr td:last-child,
.block-paybox tr th:last-child,
.block-paypal tr td:last-child,
.block-paypal tr th:last-child{
text-align: center;
}
.block-paybox tr td a,
.block-paypal tr td a {
text-align: center;
text-transform: none;
border: 0px;
color: #FFF;
font-size: 12px;
padding: 5px 10px;
text-decoration: none;
font-weight: normal;
/* background: #504d8b url("../img/arrow.png") right 9px no-repeat; */
background: #504d8b;
-moz-border-radius: 20px;
-webkit-border-radius: 20px;
border-radius: 20px;
/*font-family: georgia, times new roman, serif;*/
/*font-style: italic;*/
font-size: 13px;
}
@keyframes slideInDown {
0% {
-webkit-transform: translateY(-500px);

View File

@ -10,9 +10,41 @@
<br>
{/if}
<h3>{l s='My Cards' mod='paymentinfo'}</h3>
{if $paybox_accounts}
<div class="block-paybox">
<table class="std">
<thead>
<th class="item">{l s='Payment type' mod='paymentinfo'}</th>
<th class="item">{l s='Number' mod='paymentinfo'}</th>
<th class="item">{l s='Date validity' mod='paymentinfo'}</th>
<th class="item">{l s='Action' mod='paymentinfo'}</th>
</thead>
<tbody>
{foreach from=$paybox_accounts item=paybox name=cards}
<tr class="alternate_item {if $smarty.foreach.cards.index % 2 == 0}odd{else}even{/if}">
<td class="bold">{$paybox.payment_type}</td>
<td>{$paybox.value}</td>
<td>{substr_replace($paybox.date,'/',-2,0)}</td>
<td><a onclick="return confirm('{l s='Are you sure?' mod='paymentinfo'}');" href="?delete_card={$paybox.id_paybox_card}">{l s='X' mod='paymentinfo'}</a></td>
</tr>
{/foreach}
</tbody>
</table>
</div>
{else}
<div id="block-history" class="block-center">
<p class="warning">{l s='No card register' mod='paymentinfo'}</p>
</div>
{/if}
<br>
<h3>{l s='My paypal account' mod='paymentinfo'}</h3>
{if $paypal_accounts}
<div class="block-paypal">
<table class="std">
<thead>
<th class="item">{l s='Name' mod='paymentinfo'}</th>
@ -22,48 +54,20 @@
<th class="item">{l s='Action' mod='paymentinfo'}</th>
</thead>
<tbody>
{foreach from=$paypal_accounts item=paypal}
<tr>
{foreach from=$paypal_accounts item=paypal name=accounts}
<tr class="alternate_item {if $smarty.foreach.accounts.index % 2 == 0}odd{else}even{/if}">
<td>{$paypal.name}</td>
<td>{$paypal.email}</td>
<td>{$paypal.city}</td>
<td>{$paypal.date_add|date_format:'d/m/Y'}</td>
<td><a onclick="return confirm('{l s='Are you sure?' mod='paymentinfo'}');" href="?delete_agreement={$paypal.id_paypal_agreement}">{l s='Delete' mod='paymentinfo'}</a></td>
<td><a onclick="return confirm('{l s='Are you sure?' mod='paymentinfo'}');" href="?delete_agreement={$paypal.id_paypal_agreement}">{l s='X' mod='paymentinfo'}</a></td>
</tr>
{/foreach}
</tbody>
</table>
</div>
{else}
<div id="block-history" class="block-center">
<p class="warning">{l s='No account register' mod='paymentinfo'}</p>
</div>
{/if}
<br>
<h3>{l s='My Cards' mod='paymentinfo'}</h3>
{if $paybox_accounts}
<table class="std">
<thead>
<th class="item">{l s='Payment type' mod='paymentinfo'}</th>
<th class="item">{l s='Number' mod='paymentinfo'}</th>
<th class="item">{l s='Date validity' mod='paymentinfo'}</th>
<th class="item">{l s='Action' mod='paymentinfo'}</th>
</thead>
<tbody>
{foreach from=$paybox_accounts item=paybox}
<tr>
<td>{$paybox.payment_type}</td>
<td>{$paybox.value}</td>
<td>{substr_replace($paybox.date,'/',-2,0)}</td>
<td><a onclick="return confirm('{l s='Are you sure?' mod='paymentinfo'}');" href="?delete_card={$paybox.id_paybox_card}">{l s='Delete' mod='paymentinfo'}</a></td>
</tr>
{/foreach}
</tbody>
</table>
{else}
<div id="block-history" class="block-center">
<p class="warning">{l s='No card register' mod='paymentinfo'}</p>
</div>
{/if}