diff --git a/app/views/customers/_show_hook.html.erb b/app/views/customers/_show_hook.html.erb index ca9210c..bf9b353 100644 --- a/app/views/customers/_show_hook.html.erb +++ b/app/views/customers/_show_hook.html.erb @@ -1,5 +1,5 @@

<%=t(:field_vehicles)%>:

<%= render partial: 'vehicles/list', locals: { vehicles: customer.vehicles.paginate(page: params[:page]) } %>
- <%= button_to t(:button_new_vehice), new_customer_vehicle_path(customer), method: :get %> + <%= button_to t(:button_new_vehicle), new_customer_vehicle_path(customer), method: :get %>
\ No newline at end of file diff --git a/app/views/vehicles/index.html.erb b/app/views/vehicles/index.html.erb index 347de63..8c72885 100644 --- a/app/views/vehicles/index.html.erb +++ b/app/views/vehicles/index.html.erb @@ -1,4 +1,4 @@ -

<%=t(:label_cusomer_vehicles)%> <%= render partial: 'vehicles/search' %>

+

<%=t(:label_customer_vehicles)%> <%= render partial: 'vehicles/search' %>


<%= render partial: 'vehicles/list', locals: {vehicles: @vehicles} %> diff --git a/config/locales/en.yml b/config/locales/en.yml index 0c06c40..ab5e2f9 100644 --- a/config/locales/en.yml +++ b/config/locales/en.yml @@ -10,27 +10,27 @@ # English strings go here for Rails i18n # Usage I18n.t(:label) + en: - field_vehicles: "Vehicles" + alert_no_customer: "Customer no longer exists, check for merged customers or deleted customers in QuickBooks Online." + alert_vehicle_not_created: "Vehicle could not be created." + alert_vehicle_not_deleted: "Vehicle could not be deleted." + alert_vehicle_not_found: "Vehicle not found." + alert_vehicle_not_updated: "Vehicle could not be updated." + button_new_vehicle: "New Vehicle" field_vehicle: "Vehicle" + field_vehicles: "Vehicles" field_vin: "VIN" + label_customer_vehicles: "Customer Vehicles" label_edit: "Edit" - label_year: "Year" - label_make: " Make" + label_edit_customer_vehicle: "Edit Customer Vehicle" + label_make: "Make" label_model: "Model" + label_new_vehicle: "New Customer Vehicle" label_no_vehicles: "There are no vehicles containing the term(s)" label_search_vin: "Search Vehicles by VIN" - label_edit_customer_vehicle: "Edit Customer Vehicle" - label_cusomer_vehicles: "Customer Vehicles" - label_new_vehicle: "New Customer Vehicle" - button_new_vehice: "New Vehicle" - notice_vehicle_created: "Vehicle was successfully created." - notice_vehicle_updated: "Vehicle was successfully updated." - notice_vehicle_deleted: "Vehicle was successfully deleted." - alert_vehicle_not_found: "Vehicle not found." - alert_vehicle_not_deleted: "Vehicle could not be deleted." - alert_vehicle_not_created: "Vehicle could not be created." - alert_vehicle_not_updated: "Vehicle could not be updated." + label_year: "Year" no_customer: "Customer no longer exists" - alert_no_customer: "Customer no longer exists, check for merged customers or deleted customers in Quick Books Online." - \ No newline at end of file + notice_vehicle_created: "Vehicle was successfully created." + notice_vehicle_deleted: "Vehicle was successfully deleted." + notice_vehicle_updated: "Vehicle was successfully updated." \ No newline at end of file