Use the current status of the task to display either the update form or the full task.
- [Instructor] I'm sure you've noticed by now…that this single task view is not complete.…We have the first half of the view…but not the second half,…and that's because here we need to set up some conditions.…If this task is an in progress task,…we should display a form that allows the user…to fill out the outcome field…and also select a post-task stress level.…If it is a completed task,…we should instead just display the output…from that outcome field and the post-task stress level.…In the exercise files for this movie,…you will find a new function called getOutcome…that grabs the object and just does what we've been doing…several times up until now.…
It sets up the HTML for those two different conditions.…So here you see we have the closedOutcome.…This is just standard straight-up HTML…that outputs the task outcome,…and then the field task outcome,…and then the level for the taskbook post level.…Scrolling further down,…you'll also find the variable openOutcome.…Here we output a form, and this form is pretty much…
- Planning the application
- Extending WordPress with a plugin
- Setting up the standalone application
- Configuring OAuth 2 in WordPress
- Building the task list view
- Building the new task view
- Creating a new task via the REST API
- Displaying conditional content
- Visualizing data using Graph.js
Skill Level Advanced
1. Plan the Application
2. Extend WordPress with a Plugin
3. Set Up the Standalone Application
Review of user flow2m 34s
4. Build the Task List View
5. Build the New Task View
6. Build the Update/View Task View
7. Bonus Features
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
This will not affect your course history, your reports, or your certificates of completion for this course.Cancel
Take notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.
Notes are saved with you account but can also be exported as plain text, MS Word, PDF, Google Doc, or Evernote.