Skip to content

Commit

Permalink
Hide start time availability table
Browse files Browse the repository at this point in the history
  • Loading branch information
joaquinco committed Dec 18, 2024
1 parent 2478db3 commit fcf88cb
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/views/reservations/edit.html.haml
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
- else
%li= link_to t('shared.cancel'), cart_path

- if @instrument.daily_booking?
- if @instrument.daily_booking? && !@instrument.fixed_start_time?
= render "reservations/open_hours"

#overlay
Expand Down
2 changes: 1 addition & 1 deletion app/views/reservations/new.html.haml
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@
- else
= link_to t("shared.cancel"), facility_path(@instrument.facility)

- if @instrument.daily_booking?
- if @instrument.daily_booking? && !@instrument.fixed_start_time?
= render "reservations/open_hours"

#overlay
Expand Down
2 changes: 2 additions & 0 deletions spec/support/shared_examples/reservations_new_daily.rb
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,8 @@
expect(page).to_not have_field("reservation[reserve_start_min]")
expect(page).to_not have_field("reservation[reserve_start_meridian]")

expect(page).to_not have_content("Start Time Availability")

fill_in("Reserve Start", with: I18n.l(1.day.from_now.to_date, format: :usa))

instance_eval(&before_submit) if before_submit.present?
Expand Down

0 comments on commit fcf88cb

Please sign in to comment.