Numbas icon indicating copy to clipboard operation
Numbas copied to clipboard

Add an end exam button for menu mode

Open chrismgraham opened this issue 2 years ago • 10 comments

chrismgraham avatar Jun 08 '22 11:06 chrismgraham

This should be optional: for bank of practice questions, there's no point in ending the attempt.

Some people are using menu mode for summative assessments, I suppose to make it clearer to students that they should choose the order they do questions in.

christianp avatar Sep 29 '22 15:09 christianp

Hi @christianp ! I wanted to claim this as my first project if it's still available. I was trying to set up a developer environment for the first time and when I was trying to set up the settings.py in Localhost, I keep receiving this error in my browser image And I received this error in the command prompt image "This is not python" Do you know why this is? I can't find out what's causing this and I want to get it solved ASAP so i can start working on this feature for the program. Let me know if you can help me, thanks!

soroushmahdavi01 avatar Jan 22 '23 07:01 soroushmahdavi01

Hi @christianp ! I wanted to claim this as my first project if it's still available. I was trying to set up a developer environment for the first time and when I was trying to set up the settings.py in Localhost, I keep receiving this error in my browser image And I received this error in the command prompt image "This is not python" Do you know why this is? I can't find out what's causing this and I want to get it solved ASAP so i can start working on this feature for the program. Let me know if you can help me, thanks!

Hi again! I've solved my issue and am able to work on the project, can I start working on implementing an "End Exam" Button for "Question navigation mode > “Choose from a menu”"?

soroushmahdavi01 avatar Jan 23 '23 04:01 soroushmahdavi01

Hi @sushiboytr, thanks for offering to help! Please make a pull request once you've made changes you'd like me to see. If you need any help finding where to start, please ask.

Can you tell me what the problem was with the development environment, so I can improve the instructions?

christianp avatar Jan 23 '23 08:01 christianp

Thanks Christian! If you don't mind, could you give me a small rough idea of where I should start? I'd appreciate it since this is my first time, but I'm more than dedicated to learning and figuring out how to solve this issue.

I honestly could not tell you what fixed it, I first tried installing Microsoft Store Python 3.10 to see if that would help, and I also moved everything to one single Numbas folder as well. Then I just started from the beginning of the instructions and tried again. When I ran the first_setup.py the first time, after installing Microsoft Store Python 3.10 and moving everything into one folder, it worked and accepted my settings! But it was in a forever loop of just adding more seconds to the setup screen for hours, no setting.py in sight. I eventually stopped it with control + c and ran it again. When I ran it the second time, it took me straight to the same "generating settings" page but this time instantly create the settings files and I was able to run the mange.py file!

Sorry for not the straight forward solution you were hoping for, I think in all honesty I got lucky and the issue was gone with good nights sleep.

soroushmahdavi01 avatar Jan 24 '23 00:01 soroushmahdavi01

Hi again! I was looking thru the pull requests to see where I should start, and I noticed #823 is this somewhat what you are looking for in this issue? I assume this solution does not relate the Menu Mode, which is why it targeted a separate issue.

soroushmahdavi01 avatar Jan 25 '23 00:01 soroushmahdavi01

@sushiboytr that pull request is for something a bit more complicated - it's about adding a text field to confirm ending the exam. This one's a bit more straightforward: you just need to copy the "End exam" button from the "sequence" navigation template to the "menu" template.

The button is defined for the sequence mode in themes/default/templates/nav-sequence.html. You should put that button somewhere in themes/default/templates/menu.html.

christianp avatar Jan 26 '23 08:01 christianp

kelvinlieu12345 avatar Apr 27 '23 20:04 kelvinlieu12345

<button>End Exam</button>

kelvinlieu12345 avatar Apr 27 '23 20:04 kelvinlieu12345

<button>End Exam</button>

kelvinlieu12345 avatar Apr 27 '23 20:04 kelvinlieu12345