Last active
August 29, 2015 14:02
-
-
Save rocodev-tech/af73ce341f75726b7858 to your computer and use it in GitHub Desktop.
app/views/orders/show.html.erb
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <div class="row"> | |
| <div class="col-md-12"> | |
| <h2> 訂單明細 </h2> | |
| <table class="table table-bordered"> | |
| <thead> | |
| <tr> | |
| <th width="80%">商品明細</th> | |
| <th>單價</th> | |
| </tr> | |
| </thead> | |
| <tbody> | |
| <% @order_items.each do |order_item| %> | |
| <tr> | |
| <td> | |
| <%= order_item.product_name %> | |
| </td> | |
| <td> <%= order_item.price %> </td> | |
| </tr> | |
| <% end %> | |
| </tbody> | |
| </table> | |
| <div class="total group"> | |
| <span class="pull-right"> | |
| <span> 總計 <%= @order.total %> NTD | |
| </span> | |
| </div> | |
| <hr> | |
| <h2> 寄送資訊 </h2> | |
| <table class="table table-striped table-bordered"> | |
| <tbody> | |
| <tr> | |
| <td> 訂購人 </td> | |
| </tr> | |
| <tr> | |
| <td> | |
| <%= @order_info.billing_name %> - <%= @order_info.billing_address %> | |
| </td> | |
| </tr> | |
| <tr> | |
| <td> 訂購人 </td> | |
| </tr> | |
| <tr> | |
| <td> | |
| <%= @order_info.billing_name %> - <%= @order_info.billing_address %> | |
| </td> | |
| </tr> | |
| </tbody> | |
| </table> | |
| <% if [email protected]? %> | |
| <div class="pull-right"> | |
| <%= link_to("以信用卡付款", "#", :class => "btn btn-primary btn-lg btn-danger ") %> | |
| <%= link_to("以 ATM 付款", "#", :class => "btn btn-primary btn-lg btn-danger ") %> | |
| </div> | |
| <% else %> | |
| 此訂單已完成付款 | |
| <% end %> | |
| </div> | |
| </div> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment