Expand for Development Notes:
- oneProjectWithSteps/oneProjectWithSteps.html calls main.js which calls function buildSelectControl().
- The element selectList has an addEventListener("change", populateProjectId) that calls populateProjectId on change.
- populateProjectId calls function populateProjectName()
- populateProjectName() calls getSteps();
- getSteps() calls showStepsForThisProject(res) and passes in the response from getSteps();
- showStepsForThisProject(res) Adds:
- edit = onclick="editStep(\''+ sorted[i]._id +'\')">Edit
- The edit link calls a function called editStep(id) that is on the oneProjectWithSteps.html page. This function does the following:
- Saves the step/task id to local storage.
- Opens the file/page editStep.html
- markComplete = 'onclick="markStepComplete(\''+ sorted[i]._id +'\')">Mark Complete
Step |
Order |
Phase |
Assigned |
Complete |
Due |
Note |
Edit |
Mark Complete |