Valerii Vasin (valerii) wrote in changelog,
Valerii Vasin
valerii
changelog

[ljcom] r12501: LJSUP-12917: Add RESERVED and INCOMING t...

Committer: vvasin
LJSUP-12917: Add RESERVED and INCOMING tabs to user wallet page. Provide incoming tab functionality.
U   trunk/templates/Shop/Wallet.tmpl
Modified: trunk/templates/Shop/Wallet.tmpl
===================================================================
--- trunk/templates/Shop/Wallet.tmpl	2012-08-21 08:36:31 UTC (rev 12500)
+++ trunk/templates/Shop/Wallet.tmpl	2012-08-21 09:09:25 UTC (rev 12501)
@@ -158,7 +158,7 @@
 						        </TMPL_LOOP>
 							</tbody>
 							<tbody class="b-tokens-items-paging">
-								<tr>									
+								<tr>
 									<td colspan="3">
 										<TMPL_INCLUDE 'Paging.tmpl'>
 									</td>
@@ -178,10 +178,9 @@
 		        </TMPL_IF>
 			</li>
 			<li class="b-buy-goods-item b-incoming-item <TMPL_IF tab_incoming_active>current</TMPL_IF>">
-				<TMPL_IF tab_incoming_active>
 					<form action="" method="post" id="shop_incoming_token">
 						<table class="b-tokens-incoming b-tokens-items">
-							<tbody>
+							<thead>
 								<tr>
 									<th><tmpl_var expr="ml('wallet.bml.incoming.date')"></th>
 									<th><tmpl_var expr="ml('wallet.bml.incoming.subject')"></th>
@@ -190,18 +189,24 @@
 										<p><tmpl_var expr="ml('wallet.bml.reserved.tokens')"></p>
 									</th>
 								</tr>
-								<TMPL_LOOP blockings>
-									<tr <TMPL_IF __odd__> class="odd" </TMPL_IF>>
-										<td><tmpl_var date></td>
-										<td><tmpl_var desc></td>
-										<td class="b-tokens-items-amount"><tmpl_var qty></td>
-									</tr>
-								</TMPL_LOOP>
+							</thead>
+							<tbody class="b-incoming-data">
+								<TMPL_IF tab_incoming_active>
+									<TMPL_LOOP blockings>
+										<tr <TMPL_IF __odd__> class="odd" </TMPL_IF>>
+											<td><tmpl_var date></td>
+											<td><tmpl_var desc></td>
+											<td class="b-tokens-items-amount"><tmpl_var qty></td>
+										</tr>
+									</TMPL_LOOP>
+								</TMPL_IF>
 							</tbody>
 							<tbody class="b-tokens-items-paging">
 								<tr>									
 									<td colspan="3">
-										<TMPL_INCLUDE 'Paging.tmpl'>
+										<TMPL_IF tab_incoming_active>
+											<TMPL_INCLUDE 'Paging.tmpl'>
+										</TMPL_IF>
 									</td>
 								</tr>
 							</tbody>
@@ -214,7 +219,6 @@
 					        </tfoot>
 						</table>
 					</form>
-				</TMPL_IF>
 			</li>
 		</TMPL_UNLESS>
 

Tags: invis89, ljcom, tmpl, vvasin
Subscribe
  • Post a new comment

    Error

    Anonymous comments are disabled in this journal

    default userpic

    Your reply will be screened

    Your IP address will be recorded 

  • 0 comments