Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add fill-in-the-blank questions #295

Open
1 of 3 tasks
Tracked by #245
afonsofsdomingues opened this issue Oct 5, 2022 · 1 comment
Open
1 of 3 tasks
Tracked by #245

Add fill-in-the-blank questions #295

afonsofsdomingues opened this issue Oct 5, 2022 · 1 comment
Assignees
Labels

Comments

@afonsofsdomingues
Copy link
Collaborator

afonsofsdomingues commented Oct 5, 2022

Usage of dropdown menus in the middle of a sentence to form a complete sentence. It's a matter of frontend (dropdown menus) and figuring out how to have multiple quiz-type answers in a question. This is very useful in History to test knowledge in dates, in Portuguese eventually, and in Philosophy.

What should be done:

@afonsofsdomingues
Copy link
Collaborator Author

Basically I'm going to create a new model called FillInTheBlank that has for attributes a question (to have all the information related to author, body, discipline, etc...), a list of lists of answers (basically groups of 4 answers with an answer marked as correct, each group corresponds to a dropdown menu on the page) and a number of fields in the question (to be able to do iterations and stuff like that). The order of the answers in the list would be the same as on the screen, so there are no mix-ups.

We have to use lists because it allows us to have field variability, i.e., the user can decide how many fields he wants in the question. If there is a more suitable structure, let me know.

All the attributes of the question would work as normal except image which we would have to leave null always and the body. However, for the latter I found a solution. We go to each textbox on the page (there are number of fields +1 textboxes, if we name them decently, we can iterate over them I guess like in HTML) and add the text from each of them putting each time the iterator changes (when moving on to the next text) some underscores to indicate the blank space.

I think that doing it this way the general functionality of the application remains the same and in my opinion we can use the functions that are already defined for the operations of this new model. Maybe we need to write functions for this model that iterate over the answers and do what the other functions do, only repeatedly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Status: In Progress
Development

When branches are created from issues, their pull requests are automatically linked.

1 participant