mirror of
https://github.com/rickbarrette/redmine_qbo_vehicles.git
synced 2026-10-04 01:10:43 -04:00
added show_customer and show_checkbox options to vehicle list
This commit is contained in:
1 parent
ed38584ab2
commit
a89f9881a6
3 files changed
+13
-4
No files matched your search
@@ -5,14 +5,23 @@
|
||||
|
||||
<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" %>
|
||||
|
||||
<% if show_checkbox %>
|
||||
<%= check_box_tag "vehicle_ids[]", vehicle.id, false, onchange: "updateLink()", data: { url: vehicle_path(vehicle).html_safe, text: vehicle.to_s }, class: "appointment checkbox" %>
|
||||
<% else %>
|
||||
<div class='checkbox'>
|
||||
</div>
|
||||
<% end %>
|
||||
|
||||
<div class='label-main'>
|
||||
<%= link_to vehicle.to_s, vehicle_path(vehicle) %>
|
||||
</div>
|
||||
|
||||
<div class="label-sub">
|
||||
<a href="#" onclick="handleCopy(event)"><%= vehicle.vin.scan(/.{1,9}/)[0] if vehicle.vin %><b><%=vehicle.vin.scan(/.{1,9}/)[1] if vehicle.vin%></b></a>
|
||||
<% if show_customer %>
|
||||
<br/>
|
||||
<%= vehicle.customer %>
|
||||
<% end %>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
Reference in new issue
Block a user