From 8427c2653294aaed1204d0b1dae02ad5e4da8fea Mon Sep 17 00:00:00 2001
From: Rick Barrette
Date: Mon, 24 Aug 2026 20:30:13 -0400
Subject: [PATCH] Refactor appointment labels to use localization for edit and
new appointment headers; add missing localization keys.
---
app/views/customer_appointments/_form.html.erb | 2 +-
app/views/customer_appointments/edit.html.erb | 2 +-
app/views/customer_appointments/new.html.erb | 2 +-
config/locales/en.yml | 2 ++
4 files changed, 5 insertions(+), 3 deletions(-)
diff --git a/app/views/customer_appointments/_form.html.erb b/app/views/customer_appointments/_form.html.erb
index e6e485c..0d92995 100644
--- a/app/views/customer_appointments/_form.html.erb
+++ b/app/views/customer_appointments/_form.html.erb
@@ -10,7 +10,7 @@
<%= f.text_field :customer, label: :label_customer, class: "customer-name", autocomplete: "off", data: { autocomplete_url: "/customers/autocomplete" } %>
<%= f.hidden_field :customer_id, id: "customer_id" %>
- +
+
diff --git a/app/views/customer_appointments/edit.html.erb b/app/views/customer_appointments/edit.html.erb
index 8db5cd9..f335eb6 100644
--- a/app/views/customer_appointments/edit.html.erb
+++ b/app/views/customer_appointments/edit.html.erb
@@ -1,3 +1,3 @@
-
Edit Appointment
+<%=l(:label_edit_appointment)%>
<%= render "form" %>
\ No newline at end of file
diff --git a/app/views/customer_appointments/new.html.erb b/app/views/customer_appointments/new.html.erb
index 852510f..1477291 100644
--- a/app/views/customer_appointments/new.html.erb
+++ b/app/views/customer_appointments/new.html.erb
@@ -1,3 +1,3 @@
-New Appointment
+<%=l(:label_new_appointment)%>
<%= render "form" %>
\ No newline at end of file
diff --git a/config/locales/en.yml b/config/locales/en.yml
index 64927dd..a5accca 100644
--- a/config/locales/en.yml
+++ b/config/locales/en.yml
@@ -25,11 +25,13 @@ en:
label_customer_calendar: Customer Calendar
label_days: Days
label_duration: Duration
+ label_edit_appointment: Edit Appointment
label_end_date: End Date
label_estimated_hours: Estimated Time
label_event: Event
label_open_appointment: Open Appointment
label_only_customer_appointments: Show Customer Appointments Only
+ label_new_appointment: New Appointment
label_start_date: Start Date
label_status: Status
label_technician: Technician