mirror of
https://github.com/rickbarrette/redmine_qbo_vehicles.git
synced 2026-08-19 13:30:43 -04:00
Compare commits
2
Commits
7158a8b02c
...
2026.8.0
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
fe81cb6ff8 | ||
|
|
a9d0eafa40 |
@@ -0,0 +1,9 @@
|
|||||||
|
<% if appointment.customer.present? %>
|
||||||
|
<% unless appointment.vehicle.present? &&%>
|
||||||
|
<p>
|
||||||
|
<%= link_to new_vehicle_path(customer_id: appointment.customer_id), class: 'icon icon-add' do %>
|
||||||
|
<%= l(:label_add_vehicle) %>
|
||||||
|
<% end %>
|
||||||
|
</p>
|
||||||
|
<% end %>
|
||||||
|
<% end %>
|
||||||
@@ -21,6 +21,7 @@ en:
|
|||||||
field_vehicle: "Vehicle"
|
field_vehicle: "Vehicle"
|
||||||
field_vehicles: "Vehicles"
|
field_vehicles: "Vehicles"
|
||||||
field_vin: "VIN"
|
field_vin: "VIN"
|
||||||
|
label_add_vehicle: "Add Vehicle"
|
||||||
label_customer_vehicles: "Customer Vehicles"
|
label_customer_vehicles: "Customer Vehicles"
|
||||||
label_edit: "Edit"
|
label_edit: "Edit"
|
||||||
label_edit_customer_vehicle: "Edit Customer Vehicle"
|
label_edit_customer_vehicle: "Edit Customer Vehicle"
|
||||||
|
|||||||
@@ -14,7 +14,7 @@ Redmine::Plugin.register :redmine_qbo_vehicles do
|
|||||||
name 'Redmine QBO Vehicles plugin'
|
name 'Redmine QBO Vehicles plugin'
|
||||||
author 'Rick Barrette'
|
author 'Rick Barrette'
|
||||||
description 'This is a plugin for Redmine to intergrate with the redmine_qbo plugin to provide vehicle data tracking'
|
description 'This is a plugin for Redmine to intergrate with the redmine_qbo plugin to provide vehicle data tracking'
|
||||||
version '2026.4.1'
|
version '2026.8.0'
|
||||||
url 'https://github.com/rickbarrette/redmine_qbo_vehicles'
|
url 'https://github.com/rickbarrette/redmine_qbo_vehicles'
|
||||||
author_url 'https://barrettefabrication.com'
|
author_url 'https://barrettefabrication.com'
|
||||||
requires_redmine version_or_higher: '6.1.0'
|
requires_redmine version_or_higher: '6.1.0'
|
||||||
|
|||||||
@@ -18,5 +18,6 @@ module RedmineQboVehicles
|
|||||||
Vehicles::Hooks::IssuesShowHookListener
|
Vehicles::Hooks::IssuesShowHookListener
|
||||||
Vehicles::Hooks::PdfHookListener
|
Vehicles::Hooks::PdfHookListener
|
||||||
Vehicles::Hooks::ViewHookListener
|
Vehicles::Hooks::ViewHookListener
|
||||||
|
Vehicles::Hooks::CustomerAppointmentShowHookListener
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
@@ -0,0 +1,28 @@
|
|||||||
|
#The MIT License (MIT)
|
||||||
|
#
|
||||||
|
#Copyright (c) 2016 - 2026 rick barrette
|
||||||
|
#
|
||||||
|
#Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
||||||
|
#
|
||||||
|
#The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
|
||||||
|
#
|
||||||
|
#THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||||
|
|
||||||
|
module Vehicles
|
||||||
|
module Hooks
|
||||||
|
|
||||||
|
class CustomerAppointmentShowHookListener < Redmine::Hook::ViewListener
|
||||||
|
|
||||||
|
include IssuesHelper
|
||||||
|
|
||||||
|
# Display vehicle information on the customer show view (right side)
|
||||||
|
def show_customer_appointment(context={})
|
||||||
|
|
||||||
|
context[:controller].send(:render_to_string, {
|
||||||
|
partial: 'customer_appointments/show_hook', locals: { appointment: context[:appointment] }
|
||||||
|
})
|
||||||
|
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
||||||
Reference in New Issue
Block a user