Posted by yrre7 on November 7, 2008 at 12:18am
Jump to:
| Project: | Availability Calendars |
| Version: | 6.x-2.x-dev |
| Component: | User interface |
| Category: | feature request |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | closed (duplicate) |
Issue Summary
Hi this is a great module! but I am just wondering is it possible to use javascript to select the availability dates? instead of choosing each day by day?
Thanks,
Comments
#1
I would like to be able to do this, yes, but I've not looked too closely yet at what would be involved. Just out of interest, could you walk me through the workflow you'd like to see?
#2
I would probably like to see just one javascript calendar showing up in a node instead of broken down month by month, and maybe can be provided in a block as well. The javascript calendar should maybe have a month and year switch button, so you can browse through each month by just clicking some arrow button to go to the next month or year. User can maybe select on the javascript calendar itself on which days they want to have it available (multiple selects, dragging select, etc).
Hope this clarifies a little bit.
Thanks,
#3
Hi,
I'm working on a website for a Bed & Breakfast in the Belgian Ardennes and wanted to show the visitors an availability calendar.
As you can see on http://verteplace.be/en/guestrooms I added some functionality to the calendar:
- some javascript to show one month at a time (for improved design)
- a "< previous" and "next >" month link
- day of week (using localization)
- some translations (dutch, french, german)
- title tags for better SEO
- always display dates in the past as unavailable
some things that may be usefull:
- option in admin to choose between "one month" display using javascript or full list of all months
- an optional link on the available days to a booking form
- a legend explaining the colors
let me know if you're interested in these features
regards
#4
It'd be great if you could provide a patch for some of those bits so they can be included in the module.
#5
#6
I would also be interested to adopt the calendar like seen on the bed & breakfast site shown.
Is the coding available somehow? It looks great!
Greetings from Austria
#7
Subscribing!
#8
Thanks for this great module and the work that has gone into it.
I think the improvements in #3 would be very useful as well as the "multiple selects, dragging select" outlined in #2. Unfortuantely I am not a programmer so I can't help out but just putting my opinion forward.
Thanks
#9
I am interested in this same functionality. The best sort of functionality I suppose would be similar to Google Calendars or something like that. I imagine an interface where clicking on a date pops up a form where you can select the state for that day, and it all save through AJAX calls. For browsers with Javascript turned off, the existing interface would be preserved.
My client is willing to pay me to develop this functionality, so I can work up a patch immediately. Before starting, though, I'd like to know if anyone else has been working in this direction already and also have some feedback as to the direction to take in the development.
#10
Maybe you can look at the code from this calendar
http://www.cbolson.com/code/availability-calendar/
In admin mode, you just click on a date to change the availability.
This way you can change your calanedar much faster
It uses ajax to change the state of the day.
It's database driven and of course free to use.
#11
very nice example. That may be the way to go. I definitely suggest something other than alt+click for pm bookings. It will be prone to cross browser issues.
Perhaps just cycling through ALL the different bookings on left click would be best.
#12
In one of my last projects i changed the calendars administration form and enriched it with a jquery datepicker..
It's possible to select a date range and set a status for the selected range. (http://www.port11.de/files/urlaub-gosch-belegung-1.gif) - the wohle thing is used on http://www.urlaub-gosch.de ( a german site for holiday apartments )
Cause it's a lot of code customization on the site It's not soo easy to provide a patch for the module.
My costumized Edit Forms can be found on drupalpastebin - http://drupal.pastebin.com/f42a9a727
The jquery date picker used on the site can be found here - http://jonathanleighton.com/projects/date-input
#13
Interesting. It will certainly be hard to incorporate without a real patch however. Also the need for that jQuery plugin and such could provide some other difficulties. It is an interesting idea and thanks for sharing the code.
If we went with your code, I think that the datepicker jQuery plugin may need to be broken off into another module or added via jpq module and the dependency checked by our module. But this would make jqp a dependency of this module.
#14
if this gets added it will be in 2.x branch
#15
I’m working my way through the comments, to try to summarize this issue. I’m not sure if I read them correctly, so please correct me if I’m wrong.
To clean up the issue queue, I suggest closing this as a duplicate of #937818: Easier updating of calendars: book ranges at once even though this one is the older one. The comments here contain more “noise” and the other issue is more specific. Mpp’s idea can be continued in a “high jacked” version of #306467: Integrate Availability Calendars with booking process (was: ability to reserve).
#16
@fietserwin: thx for cleaning up ;)..
My solution was just a "hack" to achieve my needs i had while i was building the site...
In the last two years i improved my knownledge of the drupal API and a lot of other drupal related stuff..
Maybe we should include the datepicker functionality with the dependency of jquery_ui module and its datepicker.
The whole theming thing can be done in the users theme - maybe we should provide the linestyle extra - and all my german strings should be cleaned up ;)..
SteffenR
#17
@SteffenR: I decided to invest in Drupal knowledge upfront or at least while I'm building sites. So, now I ended up here as co-maintainer, assuring that my client gets this module without custom coding, because I commit it all :). Of course this means investing extra time in polishing features, but in the end it should pay off. Also read: http://www.palantir.net/blog/drupals-ladder-engagement.
Anyway, thanks for your reactions and and stay tuned, albeit possibly in #937818: Easier updating of calendars: book ranges at once. I will elaborate my plans for the update form in a few days.
#18
OK, well I agree that the jQuery UI datepicker would not necessarily be as intuitive as our own calendar within the edit page. Anyhow, I agree that this thread contains a lot of 'noise'. Let's continue targeted and engagingly useful discussion of the issue in #937818: Easier updating of calendars: book ranges at once.
closing as duplicate.
#19
@all subscribers: please see comments #7 and #8 of #937818: Easier updating of calendars: book ranges at once and help us completing it.