Initial commit. Modified the Meteor todos app to create the Petit Teton data tracking app. Has working data for sales. Requires a Mongo database.

This commit is contained in:
Wynne Crisman
2017-01-15 11:33:37 -08:00
commit b757595cd6
104 changed files with 26824 additions and 0 deletions

25
imports/ui/Measures.js Normal file
View File

@@ -0,0 +1,25 @@
import './Measures.html';
Template.Measures.helpers({
// someFunctionNameCalledByTemplate: function() {
// return something;
// }
measures: function () {
return Measures.find({});
}
});
Template.Measures.events({
// 'click .something': function() {
// Meteor.call('someMethodOnServer', this.something, someotherparam);
// Session.set('someValue', Session.get('someOtherValue'));
// console.log("Got here");
// }
'click .trash': function() {
//Calls deleteMeasure which is in the collection for Measures.
Meteor.call('deleteMeasure', this._id);
console.log("Got here");
}
});