[ljcom] r12479: LJSUP-12917. Add RESERVED and INCOMING t...
Committer: sboronchiev
LJSUP-12917. Add RESERVED and INCOMING tabs to user wallet page U trunk/templates/Shop/Wallet.tmpl
Modified: trunk/templates/Shop/Wallet.tmpl
===================================================================
--- trunk/templates/Shop/Wallet.tmpl 2012-08-16 09:47:02 UTC (rev 12478)
+++ trunk/templates/Shop/Wallet.tmpl 2012-08-16 11:28:47 UTC (rev 12479)
@@ -132,64 +132,87 @@
<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">
- <tr>
- <th>
- <tmpl_var expr="ml('wallet.bml.reserved.subject')">
- <p><tmpl_var expr="ml('wallet.bml.reserved.reservation')"></p>
- </th>
- <th>
- <tmpl_var expr="ml('wallet.bml.reserved.blocked')">
- <p><tmpl_var expr="ml('wallet.bml.reserved.tokens')"></p>
- </th>
- <th>
- <tmpl_var expr="ml('wallet.bml.reserved.balance')">
- <p><tmpl_var expr="ml('wallet.bml.reserved.tokens')"></p>
- </th>
- </tr>
- <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-amount"><tmpl_var blocked></td>
- <td class="b-tokens-items-amount"><tmpl_var balance></td>
- </tr>
- </TMPL_LOOP>
- <tr class="b-tokens-items-paging">
- <td colspan="3"><TMPL_INCLUDE 'Paging.tmpl'></td>
- </tr>
- <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-amount"><tmpl_var total_blocked></td>
- <td class="b-tokens-items-amount"><tmpl_var total_balance></td>
- </tr>
+ <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>
+ <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-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_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>
</li>
- <li class="b-buy-goods-item <TMPL_IF tab_incoming_active>current</TMPL_IF>">
+ <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">
- <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_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>
+ <tbody>
+ <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_LOOP>
- <tr class="b-tokens-items-paging">
- <td colspan="3"><TMPL_INCLUDE 'Paging.tmpl'></td>
- </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>
+ </tbody>
+ <tbody class="b-tokens-items-paging">
+ <tr>
+ <td colspan="3">
+ <TMPL_INCLUDE 'Paging.tmpl'>
+ </td>
+ </tr>
+ </tbody>
+ <tfoot class="b-tokens-reserved b-tokens-items">
+ <tr class="b-shop-tokens-total">
+ <td colspan="3">
+
+ </td>
+ </tr>
+ </tfoot>
</table>
- <div class="b-buy-total"></div>
</form>
</TMPL_IF>
</li>
@@ -226,6 +249,7 @@
</li>
</TMPL_IF>
</ul>
+
<script>
setTimeout(function() {
jQuery('#buytokens').tokenSelect();
