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

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

Committer: vvasin
LJSUP-12917: Add RESERVED and INCOMING tabs to user wallet page. Initial check for no items.
U   trunk/templates/Shop/Wallet.tmpl
Modified: trunk/templates/Shop/Wallet.tmpl
===================================================================
--- trunk/templates/Shop/Wallet.tmpl	2012-08-22 07:23:21 UTC (rev 12514)
+++ trunk/templates/Shop/Wallet.tmpl	2012-08-22 08:55:40 UTC (rev 12515)
@@ -133,100 +133,100 @@
         		<form action="<TMPL_VAR self_uri>?show=reserved" method="post" id="shop_reserved_token">
                                 <input type="hidden" name="act" value="revoke_account">
                                 <TMPL_VAR form_auth>
-                                <TMPL_IF accounts>                                
-	        		<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" name="account_id" value="<TMPL_VAR id>" <TMPL_IF disabled>disabled</TMPL_IF> /><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>
-							</TMPL_IF>
-						</tbody>
-						<tbody class="b-tokens-items-paging">
-							<tr>
-								<td colspan="3">
-									<TMPL_IF tab_reserved_active>
-										<TMPL_INCLUDE 'Paging.tmpl'>
-									</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 b-total-refunded"><tmpl_var total_blocked></td>
-				        		<td class="b-tokens-items-total b-total-amount"><tmpl_var total_balance></td>
-					        </tr>
-				        </tfoot>
-			        </table>
-                                <TMPL_ELSE>
-                                        <tmpl_var expr="ml('wallet.bml.reserved.notfound')">                                
-                                </TMPL_IF>
-		        </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">
-                                                <TMPL_IF blockings>
-						<table class="b-tokens-incoming b-tokens-items">
-							<thead>
-								<tr>
-									<th><tmpl_var expr="ml('wallet.bml.incoming.date')"></th>
-									<th><tmpl_var expr="ml('wallet.bml.incoming.subject')"></th>
-									<th>
-										<tmpl_var expr="ml('wallet.bml.incoming.amount')">
-										<p><tmpl_var expr="ml('wallet.bml.reserved.tokens')"></p>
-									</th>
-								</tr>
+					<TMPL_IF accounts>
+		        		<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-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>
+							<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" name="account_id" value="<TMPL_VAR id>" <TMPL_IF disabled>disabled</TMPL_IF> /><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>
 								</TMPL_IF>
 							</tbody>
 							<tbody class="b-tokens-items-paging">
 								<tr>
 									<td colspan="3">
-										<TMPL_IF tab_incoming_active>
+										<TMPL_IF tab_reserved_active>
 											<TMPL_INCLUDE 'Paging.tmpl'>
 										</TMPL_IF>
 									</td>
 								</tr>
 							</tbody>
-							<tfoot class="b-tokens-reserved b-tokens-items">
-						        <tr class="b-shop-tokens-total">
-									<td colspan="3"></td>
-								</tr>
+			        		<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 b-total-refunded"><tmpl_var total_blocked></td>
+					        		<td class="b-tokens-items-total b-total-amount"><tmpl_var total_balance></td>
+						        </tr>
 					        </tfoot>
-						</table>
-                                                <TMPL_ELSE>
-                                                        <tmpl_var expr="ml('wallet.bml.incoming.notfound')">
-                                                </TMPL_IF>
+				        </table>
+					<TMPL_ELSE>
+						<tmpl_var expr="ml('wallet.bml.reserved.notfound')">
+					</TMPL_IF>
+		        </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">
+						<TMPL_IF blockings>
+							<table class="b-tokens-incoming b-tokens-items">
+								<thead>
+									<tr>
+										<th><tmpl_var expr="ml('wallet.bml.incoming.date')"></th>
+										<th><tmpl_var expr="ml('wallet.bml.incoming.subject')"></th>
+										<th>
+											<tmpl_var expr="ml('wallet.bml.incoming.amount')">
+											<p><tmpl_var expr="ml('wallet.bml.reserved.tokens')"></p>
+										</th>
+									</tr>
+								</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_IF tab_incoming_active>
+												<TMPL_INCLUDE 'Paging.tmpl'>
+											</TMPL_IF>
+										</td>
+									</tr>
+								</tbody>
+								<tfoot class="b-tokens-reserved b-tokens-items">
+							        <tr class="b-shop-tokens-total">
+										<td colspan="3"></td>
+									</tr>
+						        </tfoot>
+							</table>
+                        <TMPL_ELSE>
+                                <tmpl_var expr="ml('wallet.bml.incoming.notfound')">
+                        </TMPL_IF>
 					</form>
 			</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