Skip to content

Commit

Permalink
Use locales for edit buttons
Browse files Browse the repository at this point in the history
  • Loading branch information
joaquinco committed Nov 22, 2024
1 parent d493175 commit d009e06
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
5 changes: 1 addition & 4 deletions app/views/reservations/_js_variables.html.haml
Original file line number Diff line number Diff line change
Expand Up @@ -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};
9 changes: 6 additions & 3 deletions app/views/reservations/edit.html.haml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit d009e06

Please sign in to comment.