cavalryjim / anicords

Source code for the animal healthcare platform AnimalMinder.
www.animalminder.com
0 stars 0 forks source link

change to scheduling function date and time picker #27

Open dooliddler opened 10 years ago

dooliddler commented 10 years ago

Need to separate out the "begin date:time" and "end date:time" to create the distinct data elements Begin Date, end date, begin time, end time.

The story behind this request is as follows:

<%= @sender.name %> is using Animal Minder to request an appointment for their at your clinic between between the hours of and for a .

Please select the available time slot: | <+30 minutes> | <+30 minutes> | <+30 minutes>

/_--30 minute intervals between begin time and end time range--_/
cavalryjim commented 10 years ago

At the data level, this is no change from scheduling a sitter. We need a start date/time and an end date/time. I am using the datetimepicker.js jQuery library. It is relatively robust and should meet our needs.

dooliddler commented 10 years ago

Agreed that this is similar to sitters except a clinic visit or grooming may have a discrete date with time range (ie: request appointment on September 20 between 8:00 AM and 12:00 PM)

cavalryjim commented 10 years ago

...but from a data perspective that is 09/20/2014 08:00 - 09/20/2014 12:00. You are still just using a start date/time and end date/time. The only difference is how you capture and/or display it.

On Mon, Sep 15, 2014 at 2:34 PM, dooliddler notifications@github.com wrote:

Agreed that this is similar to sitters except a clinic visit or grooming may have a discrete date with time range (ie: request appointment on September 20 between 8:00 AM and 12:00 PM)

— Reply to this email directly or view it on GitHub https://github.com/cavalryjim/anicords/issues/27#issuecomment-55645663.

dooliddler commented 10 years ago

So can it be displayed in human speak (ie: "...is requesting appointment on 9/20/2014 between 8:00 AM and 12:00 PM).

cavalryjim commented 10 years ago

It is data and can be displayed in any manner.

Sent from my iPhone

On Sep 15, 2014, at 16:48, dooliddler notifications@github.com wrote:

So can it be displayed in human speak (ie: "...is requesting appointment on 9/20/2014 between 8:00 AM and 12:00 PM).

— Reply to this email directly or view it on GitHub.