This feature is about the use case where the rental/allocation request is (almost) always for a single day (or single night). In this case the UI of the booking formlet can be made easier by filling in both dates at once on a single click. Styling (or additional settings) can be used to hide the 2nd date completely.

The Views integration that allows to search on availability already offers an option to search on a single date and thus does not need to be changed for this feature.

The edit calendar functionality will not be influenced by this as editors still need to be able to change availability for longer periods.

Comments

kevinsiji’s picture

That is great. You rocks.

This is what I have currently achieved by hacking the booking formlet js.

I have a problem, only the first available day in the month is getting the class "cal-na". Can you guess what could be the reason.

fietserwin’s picture

I'm not sure that I understand what you mean? More over, it looks like you hacked more than just that js file, unless cal-other is (also) a state that you defined yourself.

Any way, maybe better to just wait a few days for the commit for this issue.

fietserwin’s picture

Assigned: fietserwin » Unassigned
Status: Active » Fixed

Changed the booking formlet sub-module. Added a setting to display only 1 date, so no styling is needed to hide the to field.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.