Hi:

We think that the way that an student create an answer it's to "hard" for the user. We think that the way of the comments its more natural. I mean: We think to use hook_link to create a link for answer directly an assignment. This work now (I'll send you a patch) but this require to have only one type for student response.

So we've thinking if have sense to have more than one type for students response. We can't imagine a case that uses more than one type. Other way that could be done is to make an association between the type of assignment and the type of student response but looks to complicate to make something that can be done easier with only one type for student response. What do you think?

CommentFileSizeAuthor
assignment_like_comments.patch6.55 KBmanolopm

Comments

MGN’s picture

Title: Answer to the assigment like comments. » Provide optional response links on gradebook assignment nodes

I like the idea.

Student's viewing an assignment node are presented with one or more links that they can click to respond to the assignment.

I think the way to do this is for gradebook_responses to add a 'response_types' column to the gradebookapi_assignmnent table. It should also provide a multiple select form element (added via hook_form_alter) on the create node form for the assignment types, allowing the teacher to select one or more allowed response types. This element should be optional. The response types can be stored in the 'response_types' column as an (imploded) string. Then, I think hook_links could be used to place appropriate links on assignments according to the allowed response types for that assignment, if present.

If a student creates a response without using the link, the list of assignments should also be filtered according to the allowed response types. If the type of response they are creating is not allowed for a given assignment, then it should not be an option in the $form['gradebook_responses']['aid'] select.

I think all of the modifications can be made to the gradebook_responses submodule. It shouldn't impact gradebook or gradebookapi.

MGN’s picture

Assigned: Unassigned » MGN

I think I have this working now. I'll test it for a few days to shake the obvious bugs out and then commit to 6.x-2.x-dev for others to test.

MGN’s picture

Status: Active » Fixed

committed to 6.x-2.x-dev

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.