Closed (fixed)
Project:
Availability Calendars
Version:
7.x-3.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
2 Jul 2012 at 11:57 UTC
Updated:
23 Jul 2012 at 08:51 UTC
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
Comment #1
kevinsiji commentedThat 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.
Comment #2
fietserwinI'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.
Comment #3
fietserwinChanged the booking formlet sub-module. Added a setting to display only 1 date, so no styling is needed to hide the to field.