Update _details.html.erb

This commit is contained in:
2016-04-27 12:54:59 -04:00
parent b20a343cd2
commit 9d1bfa3951

View File

@@ -1,47 +1,43 @@
<div style="width: 100%; display: table;"> <table class="attributes>
<div style="display: table-row"> <tbody>
<div style="width: 600px; display: table-cell;"> <tr>
<th>Customer</th>
<div class="attributes"> <td><%= @customer %></td>
<div class="customer attribute"> </tr>
<div class="label"><span>Customer</span>:</div>
<div class="value"><%= @customer %></div> <tr>
</div> <th>Vehicle</th>
<td><%= @vehicle.to_s %></td>
</tr>
<tr>
<th>VIN</th>
<td><%= @vehicle.vin %></td>
</tr>
<tr>
<th>Style</th>
<td><%= @style %></td>
</tr>
<tr>
<th>Drive</th>
<td><%= @drive %></td>
</tr>
<tr>
<th>Doors</th>
<td><%= @doors %></td>
</tr>
<div class="vehicle attribute"> <tr>
<div class="label"><span>Vehicle</span>:</div> <th>Notes</th>
<div class="value"><%= @vehicle.to_s %></div> <td><%= @vehicle.notes %></td>
</div> </tr>
<div class="vin attribute"> <tr>
<div class="label"><span>VIN</span>:</div>
<div class="value"><%= @vehicle.vin %></div>
</div>
<div class="style attribute">
<div class="label"><span>Style</span>:</div>
<div class="value"><%= @style %></div>
</div>
<div class="drive attribute">
<div class="label"><span>Drive</span>:</div>
<div class="value"><%= @drive %></div>
</div>
<div class="doors attribute">
<div class="label"><span>Doors</span>:</div>
<div class="value"><%= @doors %></div>
</div>
<div class="notes">
<div class="label"><span>Notes:</span></div>
<div class="value"><%= @vehicle.notes %></div>
</div>
</div>
<div style="display: table-cell;">
<%= button_to "Edit", edit_vehicle_path(@vehicle), method: :get%> <%= button_to "Edit", edit_vehicle_path(@vehicle), method: :get%>
<%= button_to "Delete", @vehicle, method: :delete, data: {confirm: "You sure?"} %> <%= button_to "Delete", @vehicle, method: :delete, data: {confirm: "You sure?"} %>
</div> </tr>
</div> </tbody>
</div> </table>