ripdog / booking-meteor Goto Github PK
View Code? Open in Web Editor NEWA simple booking app for Meteor.js
License: Apache License 2.0
A simple booking app for Meteor.js
License: Apache License 2.0
"Every monday at 12pm-12:30pm"
regarding
var cleanDate = moment(this.value).startOf('day');
var provObject = unusualDays.findOne({date: cleanDate, providerID: this.field("providerID").value});
if (typeof provObject === "undefined") {
provObject = providers.findOne(this.field("providerID").value);
}
//this may fail due to timezone? try on nz timezone server.
if(moment(this.value).isValid() === false) {
return "wtf"
}
else if (moment(this.value).isBefore(cleanDate.zone(-12).hours(provObject.startTime).utc())) {
return "minDate"
}
else if (moment(this.value).isAfter(cleanDate.zone(-12).hours(provObject.endTime).utc())) {
return "maxDate"
}
And stop filling in the default appnt length when editing
Relies on #3, namely removing reliance on session vars to load the page.
Different colour, different permissions to create?
Achieve this through splitting the bookign table into multiple templates, and loading the items through iron router. Allows avoidance of Session vars in favour of iron router URL attributes.
Failed last time because I couldn't find a way to modify the url in place for things like date picker.
Better idea: only display date picker when date is in url. Mangle url by getting route using Router.current().route.name
Then grab current params using Router.params
, search for param we want to mangle, mangle it, then pass the route name and mangled data to Router.go()
. Sweet.
Currently, changing appointment time clears other input fields due to the route change. Simply setting Session.set("newTime") should be enough.
Per provider? Only allow providers to see their own area?
Wud look bretty good.
Simply change session.get('date'), everything should react from that.
Also gives nice not found errors
This allows easy viewing of
Plus display notes.
Should be guarded with a date query to only work with that days appointments
1-day, 3-day, work week, 7 day.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.