Currently, studies are created and edited using a small modal. As more and more information are required, this is moved to a new page /admin/studies/new.
The creation/edition page should have the following fields:
The current ones: title, description (not mandatory), sessions duration (in minutes), starting/ending dates
User selection (as before, but also for study creation)
Tests & typing test selection & ordering
Informed consent
✓
4 éléments de la liste de contrôle sur 4 terminés
· Modifié
Delphine van Rossummarked the checklist item The current ones: title, description (not mandatory), sessions duration (in minutes), starting/ending dates as completed
marked the checklist item The current ones: title, description (not mandatory), sessions duration (in minutes), starting/ending dates as completed
Delphine van Rossummarked the checklist item Tests & typing test selection & ordering as completed
marked the checklist item Tests & typing test selection & ordering as completed
I added the new elements and moved the modification of a study to a new page.
The links to the backend that were already there are still there. So the modification of the title and description is saved, but not the rest.
One thing/bug I could not figure out is, when creating a study the date is correctly recorded. But when I update a project the variable doesn't change its value. In the component DateInput the date is updated perfectly but doesn't seem to update the parent variable, nothing I tried changed a thing :( . @bridubois maybe you have an idea where the problem could come from ?
Maybe define a placeholder text for each part to fill them with a very basic, generic consent info (either ask GenAI to generate a simple, short placeholder text for each section in French or English, whatever is fine, or just put Placeholder1, Placeholder2, etc. and I'll fill them at some point).
@dvanrossum I've been able to connect it to the new backend logic. You should now be able to use the latest commits. You will probably have to delete the database you have, because I didn't wrote the migrations scripts yet, and the changes are huge.
Hey! Sorry, between the time I run everything and push surveys back in my db, I didn't saw that you fixed it. I left my commit because it adds back the typing tests, but I don't know if we deal with them another way now, and I should revert my commit ?