From d009e065eae9adc6f2691c24f14eae524c4080c4 Mon Sep 17 00:00:00 2001 From: Joaquin <joaquin.correa@wyeworks.com> Date: Fri, 22 Nov 2024 16:50:39 -0300 Subject: [PATCH] Use locales for edit buttons --- app/views/reservations/_js_variables.html.haml | 5 +---- app/views/reservations/edit.html.haml | 9 ++++++--- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/app/views/reservations/_js_variables.html.haml b/app/views/reservations/_js_variables.html.haml index 665257d395..52e844de49 100644 --- a/app/views/reservations/_js_variables.html.haml +++ b/app/views/reservations/_js_variables.html.haml @@ -13,7 +13,4 @@ var reserveMaximum = #{@instrument.max_reserve_mins || 0}; var instrumentOnline = #{@instrument.online?}; var initialDate = "#{@reservation&.reserve_start_at&.iso8601}"; - -- if !@instrument.daily_booking? - :javascript - var reserveInterval = #{@instrument.reserve_interval}; + var reserveInterval = #{@instrument.reserve_interval}; diff --git a/app/views/reservations/edit.html.haml b/app/views/reservations/edit.html.haml index 366be99bce..716727549a 100644 --- a/app/views/reservations/edit.html.haml +++ b/app/views/reservations/edit.html.haml @@ -36,11 +36,14 @@ = render "reservation_fields", f: f %ul.inline - %li= f.submit 'Save', class: 'btn' + %li= f.submit t('shared.save'), class: 'btn' - if @order.purchased? - %li= link_to 'Cancel', reservations_path + %li= link_to t('shared.cancel'), reservations_path - else - %li= link_to 'Cancel', cart_path + %li= link_to t('shared.cancel'), cart_path + +- if @instrument.daily_booking? + = render "reservations/open_hours" #overlay #spinner