I seriously searched for 3 days on this topic, but I am unable to find anything that can help me solve my issue.
I have a table that prints out Kanban cards for the factory I work in, but the Avery sheet where I need to print them is 2 col by 3 rows, and my table is displaying 3 col X 2 rows.
card 1|card 2|card 3
card 4|card 5|card 6
I need this layout to be 2 col by X rows.
card 1|card 2
card 3|card 4
card 5|card 6
This is my Rails view:
<% count = @card.start%>
<% @card.finish.times do %>
<table border="0" cellspacing="5" cellpadding="5" class="table">
<tr>
<tr>
<td id="part_no_card_no" class="all">
<%= @card.part_no %>
 
 
<%= count %> /
<%= @card.finish %>
</td>
</tr>
<tr>
<td>
<%= image_tag "#{@card.part_no}" + "-" + "#{count}" + "-" + "#{@card.finish}" + ".png" %>
</td>
</tr>
<tr>
<td>
<%= @card.description %>
</td>
</tr>
<tr>
<td>
<%= @card.from_loc %>
-
<%= @card.to_loc %>
</td>
</tr>
<tr>
<td>
Cantidad en Bin: <%= @card.bin_qty %> EA
</td>
</tr>
</td>
</tr>
</tr>
</table>
<% count += 1 %>
<% end %>
I hope someone could provide some direction on this task.
<tr>should not be there and at the end on line no: 37-40 there are</td> </tr> </tr>remove that as well. These are HTML mistakes. I hope this will help you a little. Thanks