<% @return_authorization.order.shipped_units.each do |shipped_unit| %> <% end %>
<%= t("product") %> <%= t("quantity_shipped") %> <%= t("return_quantity") %>

<%= shipped_unit[0].name %>

<%= shipped_unit[0].options_text %>
<%= shipped_unit[1] %> <%= text_field_tag "return_quantity[#{shipped_unit[0].id}]", @returned_units.empty? ? 0 : (@returned_units[shipped_unit[0].id].nil? ? 0 : @returned_units[shipped_unit[0].id].size), {:style => "width:30px;"} %>
<% f.field_container :amount do %> <%= f.label :amount, t("amount")%> *
<%= f.text_field :amount, {:style => "width:80px;"} %> <%= t("rma_value") %>: <%= f.error_message_on :amount %> <% end %> <% f.field_container :reason do %> <%= f.label :reason, t("reason")%> <%= f.text_area :reason, {:style=> "height:100px;", :class => 'fullwidth'} %> <%= f.error_message_on :reason %> <% end %> <% content_for :head do %> <% end %>