It seems a shame to have a module that doesn’t have any programming in it, so let’s finish this one off with a simple programming WOD followed by pushing your enhancement to the cloud.
Currently, the “delete” action for surfers doesn’t request confirmation. Let’s fix that by adding a Twitter Bootstrap modal dialog that is triggered when the “delete” link is clicked:
You should quickly review the Twitter Bootstrap modal dialog documentation before starting this WOD. Unlike the first two WODs in this module, try this one on your own before looking at my solution.
Create a revised version of your Digits application in which you use the @select Scala template from the play-example-form system to implement a drop-down list indicating the type of phone.
When finished, stop your timer, and record how many minutes it took you to complete the WOD.
Rx: <5 min Av: 5-10 min Sd: 10-15 min DNF: 15+ min
Once you’ve finished doing the WOD a single time, watch me do it:
You’ll learn significantly less from watching me solve the WOD if you haven’t attempted the WOD yourself first.
While it’s an achievement to finish the WOD no matter how long it takes, you might experience “diminishing returns” if you work longer than the DNF time. Thus, it might be strategic to stop working at the DNF time and watch my solution.
After watching my solution, I recommend that you repeat the WOD if you have not achieved at least Av performance. If so, be sure to:
Feel free to keep trying until you make Rx if that’s of interest to you.