Commit 480cc163 by Nguyen Quoc Kien

Fix format html #2

parent 3ab34a38
......@@ -28,4 +28,4 @@
<h1> Not found</h1>
<% end %>
</div>
<%= will_paginate @products %>
\ No newline at end of file
<div><%= will_paginate @products %></div>
......@@ -15,42 +15,40 @@
<td colspan="4"><h4><b>Cart: <%= cart_to_user.created_at %></b></h4></td>
</tr>
<% cart_products.each do |cart_product| %>
<tbody>
<% product = Product.find(cart_product.product_id) %>
<tr>
<td><%= product.name %></td>
<td><%= number_to_currency(product.price/100.00) %></td>
<td><%= cart_product.number %></td>
<td><%= number_to_currency(cart_product.price/100.00 * cart_product.number) %></td>
</tr>
<% end %>
<% product = Product.find(cart_product.product_id) %>
<tr>
<td colspan="3">Total:</td>
<td><b><%= number_to_currency(cart_to_user.total_price/100.00) %></b></td>
<td><%= product.name %></td>
<td><%= number_to_currency(product.price/100.00) %></td>
<td><%= cart_product.number %></td>
<td><%= number_to_currency(cart_product.price/100.00 * cart_product.number) %></td>
</tr>
<tr>
<td>Name: </td>
<td colspan="3"> <%= cart_to_user.full_name %>
</tr>
<tr>
<td>E-Mail: </td>
<td colspan="3"> <%= cart_to_user.email %>
</tr>
<tr>
<td>Phone: </td>
<td colspan="3"> <%= cart_to_user.phone %>
</tr>
<tr>
<td>Address: </td>
<td colspan="3"> <%= cart_to_user.address %>
</tr>
<tr>
<td>Status: </td>
<td colspan="3"><%= cart_to_user.status %></td>
</tr>
<% end %>
<tr>
<td><%= link_to 'Back', :back, class: "btn btn-info" %></td>
</tr>
</tbody>
<% end %>
<tr>
<td colspan="3">Total:</td>
<td><b><%= number_to_currency(cart_to_user.total_price/100.00) %></b></td>
</tr>
<tr>
<td>Name: </td>
<td colspan="3"> <%= cart_to_user.full_name %>
</tr>
<tr>
<td>E-Mail: </td>
<td colspan="3"> <%= cart_to_user.email %>
</tr>
<tr>
<td>Phone: </td>
<td colspan="3"> <%= cart_to_user.phone %>
</tr>
<tr>
<td>Address: </td>
<td colspan="3"> <%= cart_to_user.address %>
</tr>
<tr>
<td>Status: </td>
<td colspan="3"><%= cart_to_user.status %></td>
</tr>
<% end %>
<tr>
<td><%= link_to 'Back', :back, class: "btn btn-info" %></td>
</tr>
</table>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment