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 @@

Insure My Stuff

Upload your belongings

-
User Information @@ -43,6 +42,3 @@ - - - diff --git a/views/inventory.erb b/views/inventory.erb index d4b9d20..9a7d5f5 100644 --- a/views/inventory.erb +++ b/views/inventory.erb @@ -1,18 +1,25 @@ -

Summary of Inventory for <%= @user_name %>

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) %> +

+
<% i = 0 %> <% while i < @items.length %> -
+

Item Name: <%= @items[i] %>

Serial Number: <%= @serial_numbers[i] %>

-

Retail Price: <%= @prices[i] %>

+

Retail Price: $<%= @prices[i] %>

+
@@ -22,5 +29,34 @@
<%= i += 1 %> <% end %> +
+
+ +
+ +