mirror of
https://github.com/rickbarrette/redmine_qbo.git
synced 2025-11-08 17:04:23 -05:00
38 lines
1.1 KiB
Plaintext
38 lines
1.1 KiB
Plaintext
<h1>Customer Vehicles</h1>
|
|
<br/>
|
|
<% Vehicle.all.each do |vehicle| %>
|
|
<div class="row">
|
|
<div class="span6 columns">
|
|
<fieldset>
|
|
|
|
<div style="width: 100%; display: table;">
|
|
<div style="display: table-row">
|
|
<div style="width: 600px; display: table-cell;">
|
|
<strong>
|
|
<%= vehicle.qbo_customer.name if vehicle.qbo_customer %>
|
|
</strong>
|
|
<br/>
|
|
<%= vehicle.to_s %>
|
|
<br/>
|
|
<div style="float: left">
|
|
Notes:
|
|
</div>
|
|
<div style="float: right">
|
|
<%= vehicle.notes %>
|
|
</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>
|
|
</fieldset>
|
|
</div>
|
|
</div>
|
|
<% end %>
|
|
|
|
<div class="actions">
|
|
<%= button_to "New", new_vehicle_path, method: :get %>
|
|
</div>
|