mirror of
https://github.com/rickbarrette/redmine_qbo_vehicles.git
synced 2026-02-13 09:34:00 -05:00
32 lines
866 B
Plaintext
32 lines
866 B
Plaintext
<% if vehicles.present? %>
|
|
|
|
<% vehicles.each do |vehicle| %>
|
|
<div class="row">
|
|
|
|
<div class="container">
|
|
|
|
<%= check_box_tag "vehicle_ids[]", vehicle.id, false, onchange: "updateLink()", data: { url: vehicle_path(vehicle).html_safe, text: vehicle.to_s }, class: "appointment checkbox" %>
|
|
|
|
<div class='label-main'>
|
|
<%= link_to vehicle.to_s, vehicle_path(vehicle) %>
|
|
</div>
|
|
|
|
<div class="label-sub">
|
|
<%= vehicle.vin.scan(/.{1,9}/)[0] if vehicle.vin %><b><%=vehicle.vin.scan(/.{1,9}/)[1] if vehicle.vin%></b>
|
|
</div>
|
|
|
|
</div>
|
|
<br/>
|
|
</div>
|
|
<% end %>
|
|
|
|
<div class="actions">
|
|
<%= will_paginate vehicles %>
|
|
</div>
|
|
|
|
<%=t(:label_matching)%> <%=vehicles.count%> <%=t(:field_vehicles) %>
|
|
|
|
<% else %>
|
|
<p><%=t(:label_no_vehicles)%> <%= params[:search] %>.</p>
|
|
<% end %>
|