Update index.html.erb

Updated formatting
This commit is contained in:
2016-04-22 07:59:50 -04:00
parent 0c2d57c826
commit aa770bb1f0

View File

@@ -1,11 +1,21 @@
<h1>Customer Vehicles</h1>
<br/>
<br/>
<% Vehicle.all.each do |vehicle| %>
<br/>
<div>
<%= vehicle.qbo_customer.name if vehicle.qbo_customer %> <%= vehicle.to_s %> <%= button_to "Edit", edit_vehicle_path(vehicle), method: :get%> <%= button_to "Delete", vehicle, method: :delete, data: {confirm: "You sure?"} %>
</div>
<% Vehicle.all.each do |vehicle| %>
<div class="row">
<div class="span6 columns">
<fieldset>
<%= vehicle.qbo_customer.name if vehicle.qbo_customer %>
<%= vehicle.to_s %>
<div class="actions">
<%= button_to "Edit", edit_vehicle_path(vehicle), method: :get%>
<%= button_to "Delete", vehicle, method: :delete, data: {confirm: "You sure?"} %>
</div>
</fieldset>
</div>
</div>
<% end %>
<%= button_to "New", new_vehicle_path, method: :get %>
<div class="actions">
<%= button_to "New", new_vehicle_path, method: :get %>
</div>