Updated to nearly fully functional. Pre-release 1. Still needs some UI changes in the slideshow and admin pages (move the save button & fix the save detection for the internship list). Customer had one more page change request which I need to re-define and handle.
This commit is contained in:
@@ -1,2 +1,29 @@
|
||||
|
||||
import './InternshipJobs.html';
|
||||
import './InternshipJobs.html';
|
||||
|
||||
|
||||
Tracker.autorun(function() {
|
||||
Meteor.subscribe("Internship");
|
||||
});
|
||||
|
||||
Template.InternshipJobs.onCreated(function() {
|
||||
this.internships = Meteor.collections.Internship.find({}, {sort: {name: 1}});
|
||||
});
|
||||
Template.InternshipJobs.helpers({
|
||||
internships: function() {
|
||||
return Template.instance().internships;
|
||||
}
|
||||
});
|
||||
Template.InternshipJobs.events({
|
||||
});
|
||||
|
||||
Template.InternshipJob.onCreated(function() {
|
||||
});
|
||||
Template.InternshipJob.helpers({
|
||||
internship: function() {
|
||||
let id = FlowRouter.getParam('_id');
|
||||
return Meteor.collections.Internship.findOne(id);
|
||||
}
|
||||
});
|
||||
Template.InternshipJob.events({
|
||||
});
|
||||
Reference in New Issue
Block a user