numbas / Numbas

A completely browser-based e-assessment/e-learning system, with an emphasis on mathematics
http://www.numbas.org.uk
Apache License 2.0
199 stars 118 forks source link

Add an end exam button for menu mode #917

Open chrismgraham opened 2 years ago

christianp commented 1 year ago

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.

soroushmahdavi01 commented 1 year ago

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 commented 1 year ago

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”"?

christianp commented 1 year ago

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?

soroushmahdavi01 commented 1 year ago

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 commented 1 year ago

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.

christianp commented 1 year ago

@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.

kelvinlieu12345 commented 1 year ago
kelvinlieu12345 commented 1 year ago

<button>End Exam</button>

kelvinlieu12345 commented 1 year ago

<button>End Exam</button>