CSCI 446 Unit #11
Specific Requirements
This assignment is worth 66 points:
Home page
- (4) Home page has been updated to use the list of courses from
the database.
Course Info Page
- (2) Title has course id and name (matches link clicked on home page)
- (5) Assignment header has a Delete button. When pressed, the assignment
is deleted and the page redisplays (obviously without that assignment).
No "are you sure" is required.
- (10) "Show only unsubmitted assignments" button has been added to this
page. When clicked, only assignments that do not have status of "Submitted"
will be displayed.
- (4) "Show all assignments" button also added to the page. If clicked,
all assignments will be shown. Note that this behavior is the same as
the default behavior when the page loads (i.e., click on a course and
all assignments are shown; click "show only..." and only unsubmitted
assignments shown; click "show all..." and all assignments are shown
again).
Add Assignment page
- (4) Course title now comes from database
- (4) Submit button should actually save the record. NOTE: I changed
title from Add Assignment to Submit, so I could use the same view
for both adding and editing. You're not required to use the same
view, but I encourage you to try (being DRY - don't repeat yourself -
is one of the most important software engineering practices).
- (5) If any field is left blank, an error message displays that
all fields are required, and the page is redisplayed (retaining
the information would be nice, but is beyond our current scope).
- (5) If the points are out of range (i.e., < 0 or > 100), display
an appropriate error message and redisplay the page. NOTE: the
text shows how to do validation for a model, but does not show how
to do this type of error message... you'll need to figure out
a solution.
Edit Assignment page
- (10) Page is like Add Assignment except it shows the current information
as a default.
- (2) Page includes same validations (required fields, point range) as for
Add Assignments.
- (4) Assignment is updated when Submit is pressed.
Heroku
- (5) Your application must be posted on Heroku, with reasonable default
data on MongoLab.
- (2) For grading, simply submit your Heroku URL.