Edited wiki page through web user interface. git-svn-id: http://soc.googlecode.com/svn/wiki@3218 5fae56a1-394a-0410-ba46-5107137fd53f
diff --git a/SurveysModule.wiki b/SurveysModule.wiki index 80dd344..7f5ec2e 100644 --- a/SurveysModule.wiki +++ b/SurveysModule.wiki
@@ -60,9 +60,16 @@ A requirement for the midterm administration of surveys will be that survey results can be graded using a binary distinction like pass/fail. -This can be added by editing the row template for the results list so that each row includes a widget beside it consisting of two buttons to toggle pass/fail for the survey result on that row. A "save survey grades" button is added at the bottom. +Assuming that mentors aren't graded as students are, the grading feature should be conditional on a student taking the test, and to access the test, the student must have a project associated with the program associated with the survey. -On submission, a serialized array is sent in the POST that has pass/fail/none as options that are saved as a property for the particular SurveyResult entity. The id of the survey result can be used as an identifier for this process. +The scope_path property of the survey can be used to get the program associated with the survey, and verify that the survey-taker has permission to take the survey. The Survey model inherits from the soc.models.work.Work class, so it uses the Linkable class to give it a scope_path containing the program id. + +On the front-end, the grading feature for the survey edit view can be added by editing the row template for the results list so that each row includes a widget beside it consisting of two buttons to toggle pass/fail for the survey result on that row. A "save survey grades" button is added at the bottom. + +On submission, a serialized array is sent in the POST that has pass/fail/none as options that are saved as a 'grade' property for the particular SurveyResult entity. The id of the survey result can be used as an identifier for this process. + +The grade property of the SurveyResult can then be retrieved for any other view, given a project entity or a program entity. + == TODO ==