diff --git a/public/application.css b/public/application.css index 64c15c2..9c8e244 100644 --- a/public/application.css +++ b/public/application.css @@ -3,7 +3,7 @@ } #pic_display { - background-size: 200px 200px; - background-color: blue; + height: 200px; + width: 200px; border: 10px solid black; } diff --git a/public/application.js b/public/application.js index 63beb82..399f338 100644 --- a/public/application.js +++ b/public/application.js @@ -14,4 +14,7 @@ $('.default-value').each(function() { }); }); -$('.user-info') +$('#remove').on('click', function (e) { + e.preventDefault(); + $('.row.item').remove(); +}); diff --git a/views/form.erb b/views/form.erb index 237d150..65a93c1 100644 --- a/views/form.erb +++ b/views/form.erb @@ -1,7 +1,6 @@
Upload your belongings
-Name: <%= @name %>
Phone: <%= @phone %>
Email: <%= @email %>
Zip: <%= @zip %>
+ <% @sum = 0.0 %> +Total Value: $<% @prices.each do |x| %> + <% @sum += x.to_f %> + <% end %> + <%= @sum.round(2) %> +
Item Name: <%= @items[i] %>
Serial Number: <%= @serial_numbers[i] %>
-Retail Price: <%= @prices[i] %>
+Retail Price: $<%= @prices[i] %>
+