mirror of
https://github.com/rickbarrette/redmine_qbo.git
synced 2025-11-08 17:04:23 -05:00
Create _list.html.erb
This commit is contained in:
18
app/views/vehicles/_list.html.erb
Normal file
18
app/views/vehicles/_list.html.erb
Normal file
@@ -0,0 +1,18 @@
|
|||||||
|
<% @vehicles.each do |vehicle| %>
|
||||||
|
<div class="row">
|
||||||
|
<div class="span6 columns">
|
||||||
|
<fieldset>
|
||||||
|
<% @customer = vehicle.qbo_customer.name if vehicle.qbo_customer %>
|
||||||
|
<% @vehicle = vehicle %>
|
||||||
|
<%= render :partial => 'vehicles/details' %>
|
||||||
|
</fieldset>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<% end %>
|
||||||
|
|
||||||
|
<br/>
|
||||||
|
|
||||||
|
<div class="actions">
|
||||||
|
<%= will_paginate @vehicles %>
|
||||||
|
<%= button_to "New", new_vehicle_path, method: :get %>
|
||||||
|
</div>
|
||||||
Reference in New Issue
Block a user