diff --git a/app/views/submissions/_value.html.erb b/app/views/submissions/_value.html.erb index c1638449..18fd89d5 100644 --- a/app/views/submissions/_value.html.erb +++ b/app/views/submissions/_value.html.erb @@ -62,9 +62,9 @@ <% end %> <% end %> <% elsif field['type'] == 'cells' && area['cell_w'].to_f > 0.0 %> - <% cell_width = area['cell_w'].to_f / area['w'].to_f * 100 %> + <% cell_width = area['cell_w'].to_f / area['w'] * 100 %>
- <% (0..(area['w'].to_f / area['cell_w'].to_f).ceil).each do |index| %> + <% (0..(area['w'].to_f / area['cell_w']).ceil).each do |index| %> <% if value[index] %>
<%= value[index] %>
<% end %>