Create _details.html.erb

This commit is contained in:
2016-04-22 12:02:19 -04:00
parent fbf074e3c3
commit 1e0e608ca1

View File

@@ -0,0 +1,37 @@
<div style="width: 100%; display: table;">
<div style="display: table-row">
<div style="width: 600px; display: table-cell;">
<strong>
<%= @customer%>
</strong>
<br/>
<%= @vehicle.to_s %>
<br/>
<div class="vin">
<div style="float: left">
Notes:
</div>
<div style="float: left">
<%= @vehicle.vin %>
</div>
</div>
<div class="notes">
<div style="float: left">
Notes:
</div>
<div style="float: left">
<%= @vehicle.notes %>
</div>
</div>
</div>
<div style="display: table-cell;">
<%= button_to "Edit", edit_vehicle_path(@vehicle), method: :get%>
<%= button_to "Delete", @vehicle, method: :delete, data: {confirm: "You sure?"} %>
</div>
</div>
</div>