You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Include a button to "add an exercise" in the exercises tab on the course page. It should take the user to the exercise form and have the "visible to" drop down pre-filled with the course's user_group.
The text was updated successfully, but these errors were encountered:
Hello, is this issue up for grabs? I'd like to contribute!
Also, this other issue may be a duplicate? #131 (though there are other feature suggestions in the description, I think the main ask is to have an "Add an exercise" button
No, that's not a duplicate, but they are closely related—that issue is asking about giving users the ability to create new exercises (at the moment, only admins can). This issue is saying that whoever has the ability to create exercises, they should be able to do so from the course page.
So adding this button to the course show page entails a few things:
Actually showing the button ifcurrent_user.can? :create, Exercise(i.e., if the user as the permission to create exercises, according to abilities.rb)
Taking the user to the exercise form
The form has a dropdown menu which selects which exercise_collection the exercise should be placed in. Each exercise_collection is currently mapped to a user_group, which is in turn mapped to a course. Hence, the badly worded issue above says that the drop down menu should be "pre-filled with the course's user_group.
Include a button to "add an exercise" in the exercises tab on the course page. It should take the user to the exercise form and have the "visible to" drop down pre-filled with the course's
user_group
.The text was updated successfully, but these errors were encountered: