Refactor appointment labels to use localization for edit and new appointment headers; add missing localization keys.

This commit is contained in:
ricky committed 2026-08-24 20:30:13 -04:00
1 parent de7aba15ce
commit 8427c26532
4 files changed
+5 -3

No files matched your search

@@ -10,7 +10,7 @@
<%= f.text_field :customer, label: :label_customer, class: "customer-name", autocomplete: "off", data: { autocomplete_url: "/customers/autocomplete" } %> <%= 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" %> <%= f.hidden_field :customer_id, id: "customer_id" %>
<!-- Add Quick Create Button --> <!-- Add Quick Create Button -->
<a href="#" id="inline-create-customer-btn" class="icon icon-add" title="New Customer">+</a> <a href="#" id="inline-create-customer-btn" class="icon-only icon-add" title="<%=l(:label_new_customer)%>"></a>
</p> </p>
<p> <p>
@@ -1,3 +1,3 @@
<h2>Edit Appointment</h2> <h2><%=l(:label_edit_appointment)%></h2>
<%= render "form" %> <%= render "form" %>
+1 -1
View File
@@ -1,3 +1,3 @@
<h2>New Appointment</h2> <h2><%=l(:label_new_appointment)%></h2>
<%= render "form" %> <%= render "form" %>
+2
View File
@@ -25,11 +25,13 @@ en:
label_customer_calendar: Customer Calendar label_customer_calendar: Customer Calendar
label_days: Days label_days: Days
label_duration: Duration label_duration: Duration
label_edit_appointment: Edit Appointment
label_end_date: End Date label_end_date: End Date
label_estimated_hours: Estimated Time label_estimated_hours: Estimated Time
label_event: Event label_event: Event
label_open_appointment: Open Appointment label_open_appointment: Open Appointment
label_only_customer_appointments: Show Customer Appointments Only label_only_customer_appointments: Show Customer Appointments Only
label_new_appointment: New Appointment
label_start_date: Start Date label_start_date: Start Date
label_status: Status label_status: Status
label_technician: Technician label_technician: Technician