Things moved:
- Moves the submission download dialog for quizzes to a partial
- Moves the javascript for the submission download dialog to its own
file (instead of being in a script tag) and created a bundle for it.
- Changed the submission download dialog to optionally use an
environment variable for the title of the dialog (so if we need to
reuse it later, the title won't always be "Download Assignment
Submissions").
Behavior changed:
- Quiz statistics page for file upload questions now just shows a link
to download all files.
- "Download All Files" link should be hidden for quizzes on the quiz
show page unless the quiz has a file upload question.
Test Plan:
- As a teacher, create a quiz without a file upload question. When you
go to the quiz's show page, you shouldn't see a link on the right
side for "Download All Files."
- As a teacher, go to the quiz show page for a quiz with a file upload
question. You should see a "Download All Files" on the right side,
and it should work as usual.
- As a teacher, go to the quiz statistics page for a quiz with a file
upload question. Make sure some students have submitted the quiz
before you do this.You should see a "Download All Files" link.
Click it, you should get a dialog that will let you download all
quiz submissions like on the quiz show page.
fixes CNVS-3058
Change-Id: Ibdc7664e4bc6418d7fd1b4fbcbdcbcdd03f8d12b
Reviewed-on: https://gerrit.instructure.com/20760
Tested-by: Jenkins <jenkins@instructure.com>
QA-Review: Myller de Araujo <myller@instructure.com>
Reviewed-by: Ryan Florence <ryanf@instructure.com>
Product-Review: Stanley Stuart <stanley@instructure.com>