-
Notifications
You must be signed in to change notification settings - Fork 57
Conversation
http://stackoverflow.com/questions/9217666/jquery-ui-datepicker-can-i-make-it-static
can we re-use some code from blackout dates? I feel like it might be possible. :-) |
This might be useful: http://www.tripwiremagazine.com/2012/04/jquery-calendar-date-pickers.html |
I had a look at those; unfortunately, of those it looks like the only options that we could use (many of the js extensions on that page are 'premium' / cost money, which means we can't redistribute them with our app, which would entirely defeat the purpose) that would add any functionality over datepicker, would be full-blown event calendars, à la Google Calendar. Most unfortunately, no. 3 (which is for products availibility listings) is one of the closed-source ones. :-/ |
While we wait for a front-end, on the backend we need:
then export to_json |
@mnquintana mentioning you as a reminder |
Just found this: http://timeline.verite.co/ We've only been looking at calendar solutions so far, but a timeline display, like this one, might actually work even better. It would more clearly show length, it would be interactive, and it would still show dates and days like we would want a strict calendar to do. |
I like it! It can even show duration! I'll take a look at this. :-) Project page: https://github.com/VeriteCo/TimelineJS |
TimelineJS works really well and would be super-easy to implement! Big problem: It would add about 140 kB to our JS file (minimized). For future reference: 300px is the height we'd want for TimelineJS. Example JSON: { "timeline":
{ "headline":"Equipment Model (Chemical X)",
"type":"default",
"text":"Availability Yo",
"date": [{ "startDate":"2012,1,26",
"endDate":"2012,1,29",
"headline":"3 available"
},
{
"startDate":"2012,1,18",
"endDate":"2012,1,25",
"headline":"1 available"
}]
}
} I'm going to push this back from 3.1 as non-critical.. |
…age, until we implement a calendar view #12
I think TimelineJS is still the best option for what we want. But I think we'll need to load it separately from application.js, and only when the calendar view specifically is selected, to keep initial file sizes low. |
Bumping! Via the Google Form (thanks to Julie Cohen):
I'm pretty sure this falls underneath this issue, not sure how we want to proceed given that two years of development have happened since all this work was done. |
Hey-o! I've implemented a calendar view of item availability as a week view to replace the progress availability bar.
@mnquintana could you take a look at this? |
to do : add blackout date functionality |
|
Ready for review |
Calendar View of item availablity
I reviewed this! |
much like we have in shifts, only instead of people in locations, it's specifically colored kits of one item.
Should have two views: Patrons and Checkout persons have only view of what equipment is available, admin view also lists who has reserved the name.