Update _details.html.erb

This commit is contained in:
2016-04-28 08:54:19 -04:00
parent be7e9ef2cc
commit 2012774ae8

View File

@@ -1,16 +1,36 @@
<div style="width: 100%; display: table;"> <table>
<div style="display: table-row"> <tbody>
<div style="width: 600px; display: table-cell;"> <tr>
<th>Customer</th>
<td><%= @customer.name %></td>
</tr>
<strong> <tr>
<%= @customer%> <th>Email</th>
</strong> <td><%= @customer.email %></td>
</tr>
</div> <tr>
</div> <th>Primary Phone</th>
<td><%= @customer.primary_phone %></td>
</tr>
<div style="display: table-cell;"> <tr>
<%= button_to "Edit", edit_customer_path(@customer), method: :get%> <th>Mobile Phone</th>
</div> <td><%= @customer.mobile_phone %></td>
</tr>
</div> <tr>
<th>Notes</th>
<td><%= @customer.notes %></td>
</tr>
<tr>
<td/>
<td>
<%= button_to "Edit", edit_vehicle_path(@customer), method: :get%>
<%= button_to "Delete", @customer, method: :delete, data: {confirm: "You sure?"} %>
</td>
</tr>
</tbody>
</table>