Requisiti: docker, libyaml-dev
$ systemctl start docker $ pip install tutor[full] $ tutor local quickstart
Account amministratore:
$ tutor local createuser --staff --superuser admin admin@mail.test
Installare il modulo per mostrare quiz dentro a un video:
$ tutor local stop $ tutor config save --set OPENEDX_EXTRA_PIP_REQUIREMENTS="- git+https://github.com/openedx/xblock-in-video-quiz.git" $ tutor images build openedx $ tutor local start -d
Aprire nel browser:
Abilitare il modulo in-video-quiz
Mostrare lista corsi:
$ tutor local run cms ./manage.py cms dump_course_ids
Eliminare un corso:
$ tutor local run cms ./manage.py cms delete_course [id corso]
$ tutor local stop $ nano $(tutor config printroot)/config.yml
Aggiungere al file le seguenti righe:
OPENEDX_EXTRA_PIP_REQUIREMENTS: - git+https://github.com/openedx/xblock-in-video-quiz.git - git+https://github.com/openedx-unsupported/xblock-ooyala.git - git+https://github.com/openedx-unsupported/xblock-mentoring.git - git+https://github.com/openedx/xblock-adventure.git
Salvare la configurazione:
$ tutor config save $ tutor images build openedx $ tutor local start -d
( ) <img src="..." width="200px" /> (x) <img src="..." width="200px" /> ( ) <img src="..." width="200px" />
Creare un quiz, passare alla modalità Advanced (xml) e aggiungere lo stile css:
<problem>
<multiplechoiceresponse>
<p>Question...</p>
<choicegroup type="MultipleChoice">
<choice correct="false"><img src="..." width="200px" /></choice>
<choice correct="true"><img src="..." width="200px" /></choice>
<choice correct="false"><img src="..." width="200px" /></choice>
</choicegroup>
<style>
.xmodule_display.xmodule_ProblemBlock div.problem .choicegroup .field {
float: left;
margin-right: 10px;
}
</style>
</multiplechoiceresponse>
</problem>
<problem>
<multiplechoiceresponse>
<p>Question...</p>
<choicegroup type="MultipleChoice">
<choice correct="false"><img src="..." width="200px" /></choice>
<choice correct="true"><img src="..." width="200px" /></choice>
<choice correct="false"><img src="..." width="200px" /></choice>
</choicegroup>
<style>
.xmodule_display.xmodule_ProblemBlock div.problem .choicegroup .field {
float: left;
margin-right: 10px;
}
.xmodule_display.xmodule_ProblemBlock h3.hd-3 {
display: none;
}
.xmodule_display.xmodule_ProblemBlock div.problem-progress {
display: none;
}
.xmodule_display.xmodule_ProblemBlock div.problem {
padding-top: 0px;
}
.xmodule_display.xmodule_ProblemBlock div.problem p {
font-size: 1.35em;
font-weight: 600;
}
.xmodule_display.xmodule_ProblemBlock div.problem .choicetextgroup .indicator-container {
display: none;
}
</style>
</multiplechoiceresponse>
</problem>