-
Notifications
You must be signed in to change notification settings - Fork 148
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
Assign contributor questionnaires per course type #2373
base: main
Are you sure you want to change the base?
Conversation
evap/staff/templates/staff_semester_questionnaire_assign_form.html
Outdated
Show resolved
Hide resolved
Currently there are two tests doing similiar things to test the questionaire assignment. |
@jooooosef If merging the tests makes your life easier for your testing here, feel free to do it, otherwise consider opening a separate PR - or we can show you how to clean up the commits on your branch next week and make it into two commits here :) |
@niklasmohrin I'll take the 2 commits option 👷 |
ad2fbb8
to
d9a9d31
Compare
d9a9d31
to
19083b5
Compare
added the option to specify course types, where specific contributor questionaires should be added to all such courses
one test that tests questionaire assignemnt was 3k lines below the other one
647ee37
to
25c52c0
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fantastic 🌱
evap/staff/forms.py
Outdated
self.fields["all-contributors"] = forms.ModelMultipleChoiceField( | ||
label=_("All contributors"), required=False, queryset=contributor_questionnaires |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@janno42 In the issue, you said
and for contributors the current field "All contributors" should also be displayed as the last input field
but it's missing and you already approved - do we not need this after all?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I did implemented it with the last fixup.
If necessary I can remove again.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good catch, @niklasmohrin
Yes, we need that, thanks for adding @jooooosef
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thanks :)
…he option to specify course types, where specific contributor questionaires should be added to all such courses
I just realised: Also: This deletes all previously assigned questionaires and assings the new ones. I think that this will delete all previously assigned questionaires and will only use the newly selected ones should be more clear in the info text. Alternatively there could be a confirm option added which then explains that this will remove the currently assigned questionaires? |
This is all correct. We could change the info text and add a sentence "This will only change evaluations in preparation. Their questionnaires will be overwritten by this operation." |
<h4 class="card-title">{% translate 'Contributors' %}</h4> | ||
<fieldset> | ||
{% for field in contributor_fields %} | ||
{% include 'bootstrap_form_field.html' with field=field %} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
{% include 'bootstrap_form_field.html' with field=field %} | |
{% include 'bootstrap_form_field.html' with field=field wide=True %} |
<h4 class="card-title">{% translate 'General' %}</h4> | ||
<fieldset> | ||
{% for field in general_fields %} | ||
{% include 'bootstrap_form_field.html' with field=field %} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
{% include 'bootstrap_form_field.html' with field=field %} | |
{% include 'bootstrap_form_field.html' with field=field wide=True %} |
fix #2299