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

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

Committer: vvasin
LJSUP-12917: Add RESERVED and INCOMING tabs to user wallet page. Prepare template for recerved list processing.
U   trunk/templates/Shop/Wallet.tmpl
Modified: trunk/templates/Shop/Wallet.tmpl
===================================================================
--- trunk/templates/Shop/Wallet.tmpl	2012-08-21 09:09:25 UTC (rev 12501)
+++ trunk/templates/Shop/Wallet.tmpl	2012-08-21 10:10:49 UTC (rev 12502)
@@ -129,53 +129,54 @@
 		</li>
 
 		<TMPL_UNLESS wallet_ext_disabled>
-        	<li class="b-buy-goods-item <TMPL_IF tab_reserved_active>current</TMPL_IF>">
-        		<TMPL_IF tab_reserved_active>
-	        		<form action="" method="post" id="shop_reserved_token">
-	        	
-		        		<table class="b-tokens-reserved b-tokens-items">
-		        			<tbody>
-				        		<tr>
-					        		<th>
-						        		<tmpl_var expr="ml('wallet.bml.reserved.subject')">
-							        	<p><tmpl_var expr="ml('wallet.bml.reserved.reservation')"></p>
-	        						</th>
-		        					<th class="b-tokens-items-amount">
-			        					<tmpl_var expr="ml('wallet.bml.reserved.blocked')">
-				        				<p><tmpl_var expr="ml('wallet.bml.reserved.tokens')"></p>
-					        		</th>
-						        	<th class="b-tokens-items-amount">
-							        	<tmpl_var expr="ml('wallet.bml.reserved.balance')">
-								        <p><tmpl_var expr="ml('wallet.bml.reserved.tokens')"></p>
-							        </th>
-						        </tr>
+        	<li class="b-buy-goods-item b-reserved-item <TMPL_IF tab_reserved_active>current</TMPL_IF>">
+        		<form action="" method="post" id="shop_reserved_token">
+	        		<table class="b-tokens-reserved b-tokens-items">
+	        			<thead>
+			        		<tr>
+				        		<th>
+					        		<tmpl_var expr="ml('wallet.bml.reserved.subject')">
+						        	<p><tmpl_var expr="ml('wallet.bml.reserved.reservation')"></p>
+        						</th>
+	        					<th class="b-tokens-items-amount">
+		        					<tmpl_var expr="ml('wallet.bml.reserved.blocked')">
+			        				<p><tmpl_var expr="ml('wallet.bml.reserved.tokens')"></p>
+				        		</th>
+					        	<th class="b-tokens-items-amount">
+						        	<tmpl_var expr="ml('wallet.bml.reserved.balance')">
+							        <p><tmpl_var expr="ml('wallet.bml.reserved.tokens')"></p>
+						        </th>
+					        </tr>
+						</thead>
+						<tbody class='b-reserved-data'>
+							<TMPL_IF tab_reserved_active>
 	    						<TMPL_LOOP accounts>
 	        						<tr <TMPL_IF __odd__> class="odd" </TMPL_IF>>
-		        						<td class="b-tokens-items-subject"><input type="checkbox" /><tmpl_var desc></td>
+		        						<td class="b-tokens-items-subject"><input type="checkbox" value="<TMPL_VAR id>" /><tmpl_var desc></td>
 			        					<td class="b-tokens-items-amount"><tmpl_var blocked></td>
 				        				<td class="b-tokens-items-amount"><tmpl_var balance></td>
 					         		</tr>
-						        </TMPL_LOOP>
-							</tbody>
-							<tbody class="b-tokens-items-paging">
-								<tr>
-									<td colspan="3">
+								</TMPL_LOOP>
+							</TMPL_IF>
+						</tbody>
+						<tbody class="b-tokens-items-paging">
+							<tr>
+								<td colspan="3">
+									<TMPL_IF tab_reserved_active>
 										<TMPL_INCLUDE 'Paging.tmpl'>
-									</td>
-								</tr>
-							</tbody>
-			        		<tfoot class="b-tokens-reserved b-tokens-items">
-		        				<tr class="b-shop-tokens-total">
-			        				<td class="b-tokens-items-button"><input type="submit" value="<tmpl_var expr="ml('wallet.bml.reserved.takeoff')">" class="b-input-tokens-total" /> <strong><tmpl_var expr="ml('wallet.bml.reserved.total')"></strong></td>
-				        			<td class="b-tokens-items-total"><tmpl_var total_blocked></td>
-					        		<td class="b-tokens-items-total"><tmpl_var total_balance></td>
-						        </tr>
-					        </tfoot>
-				        </table>
-	        		
-
-			        </form>
-		        </TMPL_IF>
+									</TMPL_IF>
+								</td>
+							</tr>
+						</tbody>
+		        		<tfoot class="b-tokens-reserved b-tokens-items">
+	        				<tr class="b-shop-tokens-total">
+		        				<td class="b-tokens-items-button"><input type="submit" value="<tmpl_var expr="ml('wallet.bml.reserved.takeoff')">" class="b-input-tokens-total" /> <strong><tmpl_var expr="ml('wallet.bml.reserved.total')"></strong></td>
+			        			<td class="b-tokens-items-total"><tmpl_var total_blocked></td>
+				        		<td class="b-tokens-items-total"><tmpl_var total_balance></td>
+					        </tr>
+				        </tfoot>
+			        </table>
+		        </form>
 			</li>
 			<li class="b-buy-goods-item b-incoming-item <TMPL_IF tab_incoming_active>current</TMPL_IF>">
 					<form action="" method="post" id="shop_incoming_token">
@@ -202,7 +203,7 @@
 								</TMPL_IF>
 							</tbody>
 							<tbody class="b-tokens-items-paging">
-								<tr>									
+								<tr>
 									<td colspan="3">
 										<TMPL_IF tab_incoming_active>
 											<TMPL_INCLUDE 'Paging.tmpl'>
@@ -211,10 +212,8 @@
 								</tr>
 							</tbody>
 							<tfoot class="b-tokens-reserved b-tokens-items">
-						        <tr class="b-shop-tokens-total">									
-									<td colspan="3">
-										
-									</td>
+						        <tr class="b-shop-tokens-total">
+									<td colspan="3"></td>
 								</tr>
 					        </tfoot>
 						</table>
@@ -272,4 +271,4 @@
 		ml_confirm_transfer = '<tmpl_var expr="ml('shop.view.wallet.confirm_xfer')">';
 </script>
 <tmpl_var js_complete>
-</div>
+</div>
\ No newline at end of file

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