DistroPropaganda/code/rails32/depot_u/app/views/carts/_cart.html.erb
2018-11-24 13:20:20 +01:00

14 lines
376 B
Text

<h2><%= t('.title') %></h2>
<table>
<%= render(cart.line_items) %>
<tr class="total_line">
<td colspan="2">Total</td>
<td class="total_cell"><%= number_to_currency(cart.total_price) %></td>
</tr>
</table>
<%= button_to t('.checkout'), new_order_path, method: :get %>
<%= button_to t('.empty'), cart, method: :delete,
data: { confirm: 'Are you sure?' } %>