Files
old-ribica/back-office/app/views/carts/_show.html.erb

88 lines
2.6 KiB
Plaintext
Raw Normal View History

2015-08-09 10:17:52 +02:00
<style type="text/css">
.tg { }
.tg td{ }
.tg th{ }
</style>
2016-01-08 09:36:28 +01:00
<%
2015-08-09 10:17:52 +02:00
dd = @record.delivery_destination
c = @record
%>
<p>
<p><strong>Ime:</strong> <%= dd.name %><br /><br /></p>
2016-01-08 09:36:28 +01:00
<p><strong>Adresa:</strong><br />
2015-08-09 10:17:52 +02:00
<%= dd.address %><br />
<%= dd.place.to_s.strip %> <%= Place.name_from_code(dd.place.to_s) %><br />
Bosna i Hercegovina<br /><br />
</p>
<p><strong>Email: </strong><%= dd.email %><br />
</p>
<p><strong>Telefon: </strong> +387 <%= dd.phone %><br /><br />
</p>
2016-01-08 09:36:28 +01:00
<p><strong>Plaćanje: </strong><%= dd.get_payment_string %></p><br />
2015-08-09 10:17:52 +02:00
<p><strong>Napomena: </strong><br />
<%= dd.note %><br /><br />
</p>
</p>
2016-01-12 13:26:43 +01:00
<% if dd.gift %>
<p><strong>Ovo je poklon</strong><br /><br />
<p><strong>Ime primaoca: </strong><%= dd.recipient_name %><br />
<p><strong>Adresa primaoca: </strong><%= dd.recipient_address %><br />
<p><strong>Postanski broj primaoca: </strong><%= dd.recipient_postal_code %><br />
<p><strong>Grad primaoca: </strong><%= dd.recipient_place %><br />
<p><strong>Email primaoca: </strong><%= dd.recipient_email %><br />
<p><strong>Telefon primaoca: </strong><%= dd.recipient_phone %><br /><br />
<% end %>
2015-08-09 10:17:52 +02:00
<p>
2015-09-21 12:27:51 +02:00
<strong>Naručeno:</strong> <%= c.confirmed_at.in_time_zone("Europe/Sarajevo").strftime("%A %d.%m.%Y. %H:%M") %>
2016-01-08 09:36:28 +01:00
<br />
<br />
2015-08-09 10:17:52 +02:00
</p>
<% if dd.instant_delivery %>
<p style="font-size: 120%;">
OVO JE NARUDŽBA ZA INSTANT DOSTAVU
</p>
<% end %>
<table class="tg">
<tr>
<th class="tg-031e">Code</th>
<th class="tg-031e">Item name</th>
<th style="text-align: right; ">Amount</th>
<th style="text-align: right; ">Price</th>
<th style="text-align: right; ">Total</th>
</tr>
<% @record.item_in_carts.each do |iic| %>
2016-01-08 09:36:28 +01:00
<tr>
2015-08-09 10:17:52 +02:00
<td class="tg-031e"><%= iic.item.code %></td>
<td class="tg-031e"><%= iic.item.name %></td>
<td style="text-align: right; "><%= iic.count %></td>
<td style="text-align: right; "><%= money(iic.price) %></td>
<td style="text-align: right; "><%= money(iic.count * iic.price) %></td>
</tr>
<% end %>
<tr>
<td class="tg-031e"></td>
<td class="tg-031e">Dostava</td>
<td style="text-align: right; ">1</td>
<td style="text-align: right; "><%= money(c.delivery_cost) %></td>
<td style="text-align: right; "><%= money(c.delivery_cost) %></td>
</tr>
<tr>
<td class="tg-031e"><strong>UKUPNO:</strong></td>
<td class="tg-031e"></td>
<td style="text-align: right; "></td>
<td style="text-align: right; "></td>
<td style="text-align: right; "><%= money(c.total) %></td>
</tr>
<tr><td><strong> </strong></td></tr>
2016-01-08 09:36:28 +01:00
2015-08-09 10:17:52 +02:00
</table>
<br /><br />