evap 2024.11.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of evap might be problematic. Click here for more details.
- evap-2024.11.0/LICENSE.md +38 -0
- evap-2024.11.0/PKG-INFO +96 -0
- evap-2024.11.0/README.md +76 -0
- evap-2024.11.0/evap/__init__.py +0 -0
- evap-2024.11.0/evap/context_processors.py +26 -0
- evap-2024.11.0/evap/contributor/__init__.py +0 -0
- evap-2024.11.0/evap/contributor/forms.py +125 -0
- evap-2024.11.0/evap/contributor/templates/contributor_evaluation_form.html +154 -0
- evap-2024.11.0/evap/contributor/templates/contributor_index.html +252 -0
- evap-2024.11.0/evap/contributor/tests/__init__.py +0 -0
- evap-2024.11.0/evap/contributor/tests/test_forms.py +204 -0
- evap-2024.11.0/evap/contributor/tests/test_views.py +307 -0
- evap-2024.11.0/evap/contributor/urls.py +14 -0
- evap-2024.11.0/evap/contributor/views.py +304 -0
- evap-2024.11.0/evap/development/__init__.py +0 -0
- evap-2024.11.0/evap/development/fixtures/test_data.json +155347 -0
- evap-2024.11.0/evap/development/management/__init__.py +0 -0
- evap-2024.11.0/evap/development/management/commands/__init__.py +0 -0
- evap-2024.11.0/evap/development/management/commands/dump_testdata.py +29 -0
- evap-2024.11.0/evap/development/management/commands/reload_testdata.py +30 -0
- evap-2024.11.0/evap/development/management/commands/run.py +17 -0
- evap-2024.11.0/evap/development/management/commands/translate.py +20 -0
- evap-2024.11.0/evap/development/templates/development_components.html +515 -0
- evap-2024.11.0/evap/development/tests/__init__.py +0 -0
- evap-2024.11.0/evap/development/tests/test_commands.py +73 -0
- evap-2024.11.0/evap/development/urls.py +8 -0
- evap-2024.11.0/evap/development/views.py +24 -0
- evap-2024.11.0/evap/evaluation/__init__.py +0 -0
- evap-2024.11.0/evap/evaluation/auth.py +163 -0
- evap-2024.11.0/evap/evaluation/forms.py +158 -0
- evap-2024.11.0/evap/evaluation/management/__init__.py +0 -0
- evap-2024.11.0/evap/evaluation/management/commands/__init__.py +0 -0
- evap-2024.11.0/evap/evaluation/management/commands/anonymize.py +281 -0
- evap-2024.11.0/evap/evaluation/management/commands/anonymize_data/first_names.txt +5163 -0
- evap-2024.11.0/evap/evaluation/management/commands/anonymize_data/last_names.txt +5000 -0
- evap-2024.11.0/evap/evaluation/management/commands/anonymize_data/lorem_ipsum.txt +1 -0
- evap-2024.11.0/evap/evaluation/management/commands/format.py +14 -0
- evap-2024.11.0/evap/evaluation/management/commands/lint.py +15 -0
- evap-2024.11.0/evap/evaluation/management/commands/loaddata_unlogged.py +12 -0
- evap-2024.11.0/evap/evaluation/management/commands/precommit.py +25 -0
- evap-2024.11.0/evap/evaluation/management/commands/refresh_results_cache.py +35 -0
- evap-2024.11.0/evap/evaluation/management/commands/scss.py +42 -0
- evap-2024.11.0/evap/evaluation/management/commands/send_reminders.py +112 -0
- evap-2024.11.0/evap/evaluation/management/commands/tools.py +49 -0
- evap-2024.11.0/evap/evaluation/management/commands/ts.py +97 -0
- evap-2024.11.0/evap/evaluation/management/commands/typecheck.py +12 -0
- evap-2024.11.0/evap/evaluation/management/commands/update_evaluation_states.py +12 -0
- evap-2024.11.0/evap/evaluation/middleware.py +32 -0
- evap-2024.11.0/evap/evaluation/migrations/0001_initial.py +278 -0
- evap-2024.11.0/evap/evaluation/migrations/0002_initial_data.py +30 -0
- evap-2024.11.0/evap/evaluation/migrations/0003_auto_add_course_is_graded.py +24 -0
- evap-2024.11.0/evap/evaluation/migrations/0004_evaluation_start_email_template.py +24 -0
- evap-2024.11.0/evap/evaluation/migrations/0005_auto_20150115_1717.py +17 -0
- evap-2024.11.0/evap/evaluation/migrations/0006_archiving_and_order_default.py +48 -0
- evap-2024.11.0/evap/evaluation/migrations/0007_fsmfield_python3.py +18 -0
- evap-2024.11.0/evap/evaluation/migrations/0008_make_course_state_protected.py +18 -0
- evap-2024.11.0/evap/evaluation/migrations/0009_add_textanswer_state.py +16 -0
- evap-2024.11.0/evap/evaluation/migrations/0010_fill_textanswer_state.py +42 -0
- evap-2024.11.0/evap/evaluation/migrations/0011_remove_textanswer_checked_and_hidden.py +19 -0
- evap-2024.11.0/evap/evaluation/migrations/0012_change_questionnaire_ordering.py +15 -0
- evap-2024.11.0/evap/evaluation/migrations/0013_rename_kind_to_type.py +27 -0
- evap-2024.11.0/evap/evaluation/migrations/0014_create_degree_model.py +24 -0
- evap-2024.11.0/evap/evaluation/migrations/0014_rename_lecturer.py +28 -0
- evap-2024.11.0/evap/evaluation/migrations/0015_initial_degrees.py +26 -0
- evap-2024.11.0/evap/evaluation/migrations/0016_apply_course_degrees.py +36 -0
- evap-2024.11.0/evap/evaluation/migrations/0017_delete_old_degrees.py +23 -0
- evap-2024.11.0/evap/evaluation/migrations/0018_unique_degrees.py +23 -0
- evap-2024.11.0/evap/evaluation/migrations/0019_merge.py +9 -0
- evap-2024.11.0/evap/evaluation/migrations/0020_change_vote_date_texts.py +23 -0
- evap-2024.11.0/evap/evaluation/migrations/0021_django_1_8_upgrade.py +21 -0
- evap-2024.11.0/evap/evaluation/migrations/0022_gradeanswercounter_likertanswercounter.py +40 -0
- evap-2024.11.0/evap/evaluation/migrations/0023_create_answer_counters.py +29 -0
- evap-2024.11.0/evap/evaluation/migrations/0024_remove_likertanswers_and_gradeanswers.py +33 -0
- evap-2024.11.0/evap/evaluation/migrations/0025_single_result_questionnaire.py +22 -0
- evap-2024.11.0/evap/evaluation/migrations/0026_make_result_counters_unique.py +19 -0
- evap-2024.11.0/evap/evaluation/migrations/0027_course_is_required_for_reward.py +16 -0
- evap-2024.11.0/evap/evaluation/migrations/0028_make_vote_dates_non_null.py +21 -0
- evap-2024.11.0/evap/evaluation/migrations/0029_user_sorting_and_related_names_to_contribution.py +31 -0
- evap-2024.11.0/evap/evaluation/migrations/0030_change_course_ordering.py +15 -0
- evap-2024.11.0/evap/evaluation/migrations/0031_add_rating_answer_counter.py +30 -0
- evap-2024.11.0/evap/evaluation/migrations/0032_populate_rating_answer_counters.py +21 -0
- evap-2024.11.0/evap/evaluation/migrations/0033_remove_likert_and_grade_answer.py +41 -0
- evap-2024.11.0/evap/evaluation/migrations/0034_course_gets_no_grade_documents.py +16 -0
- evap-2024.11.0/evap/evaluation/migrations/0035_contribution_comment_visibility.py +25 -0
- evap-2024.11.0/evap/evaluation/migrations/0036_contribution_label.py +16 -0
- evap-2024.11.0/evap/evaluation/migrations/0037_specify_on_delete.py +45 -0
- evap-2024.11.0/evap/evaluation/migrations/0038_questionnaire_staff_only.py +17 -0
- evap-2024.11.0/evap/evaluation/migrations/0039_auto_20160104_1726.py +17 -0
- evap-2024.11.0/evap/evaluation/migrations/0040_add_semester_is_archived.py +18 -0
- evap-2024.11.0/evap/evaluation/migrations/0041_populate_semester_is_archived.py +34 -0
- evap-2024.11.0/evap/evaluation/migrations/0042_populate_single_result_participant_count.py +40 -0
- evap-2024.11.0/evap/evaluation/migrations/0043_auto_20160221_1543.py +24 -0
- evap-2024.11.0/evap/evaluation/migrations/0044_add_course_type_model.py +49 -0
- evap-2024.11.0/evap/evaluation/migrations/0045_populate_course_types.py +31 -0
- evap-2024.11.0/evap/evaluation/migrations/0046_delete_old_course_type.py +23 -0
- evap-2024.11.0/evap/evaluation/migrations/0047_add_related_name_for_degrees.py +18 -0
- evap-2024.11.0/evap/evaluation/migrations/0048_auto_20160301_1438.py +25 -0
- evap-2024.11.0/evap/evaluation/migrations/0049_rename_course_states.py +28 -0
- evap-2024.11.0/evap/evaluation/migrations/0050_auto_20160509_1943.py +26 -0
- evap-2024.11.0/evap/evaluation/migrations/0051_change_question_order_verbose.py +18 -0
- evap-2024.11.0/evap/evaluation/migrations/0052_add_course_is_private.py +18 -0
- evap-2024.11.0/evap/evaluation/migrations/0053_create_cronjob_user.py +26 -0
- evap-2024.11.0/evap/evaluation/migrations/0054_userprofile_language.py +18 -0
- evap-2024.11.0/evap/evaluation/migrations/0055_reviewer_group.py +22 -0
- evap-2024.11.0/evap/evaluation/migrations/0056_alter_userprofile_email.py +18 -0
- evap-2024.11.0/evap/evaluation/migrations/0057_alter_and_rename_vote_start_date.py +23 -0
- evap-2024.11.0/evap/evaluation/migrations/0058_userprofile_is_active.py +18 -0
- evap-2024.11.0/evap/evaluation/migrations/0059_add_yes_no_questions.py +18 -0
- evap-2024.11.0/evap/evaluation/migrations/0060_change_text_fields_to_char_fields.py +43 -0
- evap-2024.11.0/evap/evaluation/migrations/0061_editor_review_reminder_template.py +31 -0
- evap-2024.11.0/evap/evaluation/migrations/0062_replace_textanswer_id_with_uuid.py +56 -0
- evap-2024.11.0/evap/evaluation/migrations/0063_add_heading_question_type.py +18 -0
- evap-2024.11.0/evap/evaluation/migrations/0064_questionnaire_index_rename.py +22 -0
- evap-2024.11.0/evap/evaluation/migrations/0065_questionnaire_type.py +41 -0
- evap-2024.11.0/evap/evaluation/migrations/0066_rename_course_is_required_for_reward.py +25 -0
- evap-2024.11.0/evap/evaluation/migrations/0067_course_is_midterm_evaluation.py +18 -0
- evap-2024.11.0/evap/evaluation/migrations/0068_course_can_publish_text_results.py +30 -0
- evap-2024.11.0/evap/evaluation/migrations/0069_delete_hidden_text_answers.py +19 -0
- evap-2024.11.0/evap/evaluation/migrations/0070_add_answer_field_for_textanswer.py +46 -0
- evap-2024.11.0/evap/evaluation/migrations/0071_remove_reviewed_answer_field_for_textanswers.py +22 -0
- evap-2024.11.0/evap/evaluation/migrations/0072_delete_original_answers.py +19 -0
- evap-2024.11.0/evap/evaluation/migrations/0073_rename_is_archived_to_participations_are_archived.py +23 -0
- evap-2024.11.0/evap/evaluation/migrations/0074_semester_grade_documents_are_deleted.py +18 -0
- evap-2024.11.0/evap/evaluation/migrations/0075_semester_results_are_archived.py +18 -0
- evap-2024.11.0/evap/evaluation/migrations/0076_add_semester_short_names.py +53 -0
- evap-2024.11.0/evap/evaluation/migrations/0077_course_is_single_result.py +32 -0
- evap-2024.11.0/evap/evaluation/migrations/0078_populate_voter_and_participant_count.py +33 -0
- evap-2024.11.0/evap/evaluation/migrations/0079_rename_staff_to_manager.py +38 -0
- evap-2024.11.0/evap/evaluation/migrations/0080_add_order_to_coursetype.py +22 -0
- evap-2024.11.0/evap/evaluation/migrations/0081_create_direct_delegation_email_template.py +27 -0
- evap-2024.11.0/evap/evaluation/migrations/0082_add_related_names_fix_verbose_name.py +29 -0
- evap-2024.11.0/evap/evaluation/migrations/0083_remove_general_contributions_on_single_results.py +31 -0
- evap-2024.11.0/evap/evaluation/migrations/0084_rename_course_comments_to_general_comments.py +32 -0
- evap-2024.11.0/evap/evaluation/migrations/0085_delete_cronjob_user.py +35 -0
- evap-2024.11.0/evap/evaluation/migrations/0086_downgrade_comment_visibility.py +29 -0
- evap-2024.11.0/evap/evaluation/migrations/0087_rename_comment_visibility_to_textanswer_visibility.py +23 -0
- evap-2024.11.0/evap/evaluation/migrations/0088_prepare_use_integers_and_groups_for_question_type.py +40 -0
- evap-2024.11.0/evap/evaluation/migrations/0089_use_integers_for_question_type.py +47 -0
- evap-2024.11.0/evap/evaluation/migrations/0090_add_bipolar_question_type.py +43 -0
- evap-2024.11.0/evap/evaluation/migrations/0091_rename_course_to_evaluation.py +72 -0
- evap-2024.11.0/evap/evaluation/migrations/0092_add_course.py +60 -0
- evap-2024.11.0/evap/evaluation/migrations/0093_move_data_from_evaluation_to_course.py +50 -0
- evap-2024.11.0/evap/evaluation/migrations/0094_remove_unused_evaluation_fields.py +45 -0
- evap-2024.11.0/evap/evaluation/migrations/0095_add_course_responsibles.py +19 -0
- evap-2024.11.0/evap/evaluation/migrations/0096_move_responsibilities_into_course.py +34 -0
- evap-2024.11.0/evap/evaluation/migrations/0097_remove_contribution_responsible.py +17 -0
- evap-2024.11.0/evap/evaluation/migrations/0098_remove_contributors_from_single_results.py +49 -0
- evap-2024.11.0/evap/evaluation/migrations/0099_multiple_evaluations_per_course.py +23 -0
- evap-2024.11.0/evap/evaluation/migrations/0100_clear_evaluation_names.py +55 -0
- evap-2024.11.0/evap/evaluation/migrations/0101_evaluation_weight.py +18 -0
- evap-2024.11.0/evap/evaluation/migrations/0102_individual_publishing_notice_email_template.py +31 -0
- evap-2024.11.0/evap/evaluation/migrations/0103_questionnaire_visibility.py +54 -0
- evap-2024.11.0/evap/evaluation/migrations/0104_userprofile_is_proxy_user.py +18 -0
- evap-2024.11.0/evap/evaluation/migrations/0105_uuids_for_ratinganswercounter.py +51 -0
- evap-2024.11.0/evap/evaluation/migrations/0106_add_short_long_question.py +37 -0
- evap-2024.11.0/evap/evaluation/migrations/0107_remove_default_evaluation_ordering.py +17 -0
- evap-2024.11.0/evap/evaluation/migrations/0108_remove_default_name_de_ordering.py +25 -0
- evap-2024.11.0/evap/evaluation/migrations/0109_questionnaire_is_locked.py +18 -0
- evap-2024.11.0/evap/evaluation/migrations/0110_semester_is_active.py +28 -0
- evap-2024.11.0/evap/evaluation/migrations/0111_move_grading_information_from_course_to_evaluation.py +36 -0
- evap-2024.11.0/evap/evaluation/migrations/0112_evaluation_allow_editors_to_edit.py +18 -0
- evap-2024.11.0/evap/evaluation/migrations/0113_import_names.py +50 -0
- evap-2024.11.0/evap/evaluation/migrations/0114_remove_username.py +21 -0
- evap-2024.11.0/evap/evaluation/migrations/0115_add_contribution_role.py +33 -0
- evap-2024.11.0/evap/evaluation/migrations/0116_remove_contributon_can_edit.py +15 -0
- evap-2024.11.0/evap/evaluation/migrations/0117_logentry.py +40 -0
- evap-2024.11.0/evap/evaluation/migrations/0118_remove_last_modified_fields.py +29 -0
- evap-2024.11.0/evap/evaluation/migrations/0119_contribution_verbose_name.py +17 -0
- evap-2024.11.0/evap/evaluation/migrations/0120_use_django_db_models_jsonfield.py +19 -0
- evap-2024.11.0/evap/evaluation/migrations/0121_add_allows_textanswers_to_question.py +33 -0
- evap-2024.11.0/evap/evaluation/migrations/0122_prepare_evaluation_state_fsm_int.py +17 -0
- evap-2024.11.0/evap/evaluation/migrations/0123_evaluation_state_fsm_int.py +81 -0
- evap-2024.11.0/evap/evaluation/migrations/0124_add_html_content.py +30 -0
- evap-2024.11.0/evap/evaluation/migrations/0125_use_lists_for_ordering.py +29 -0
- evap-2024.11.0/evap/evaluation/migrations/0126_add_textanswer_review_email_template.py +25 -0
- evap-2024.11.0/evap/evaluation/migrations/0127_fix_logentry_types.py +19 -0
- evap-2024.11.0/evap/evaluation/migrations/0128_django_40_noop.py +31 -0
- evap-2024.11.0/evap/evaluation/migrations/0129_rename_state_textanswer_review_decision.py +16 -0
- evap-2024.11.0/evap/evaluation/migrations/0130_alter_textanswer_review_decision.py +34 -0
- evap-2024.11.0/evap/evaluation/migrations/0131_userprofile_ordering.py +26 -0
- evap-2024.11.0/evap/evaluation/migrations/0132_textanswer_is_flagged.py +16 -0
- evap-2024.11.0/evap/evaluation/migrations/0133_add_infotext_model.py +44 -0
- evap-2024.11.0/evap/evaluation/migrations/0134_userprofile_display_name.py +44 -0
- evap-2024.11.0/evap/evaluation/migrations/0135_consistent_no_data_representation_on_text_fields.py +96 -0
- evap-2024.11.0/evap/evaluation/migrations/0136_alter_userprofile_first_name_chosen_and_more.py +28 -0
- evap-2024.11.0/evap/evaluation/migrations/0137_use_more_database_constraints.py +55 -0
- evap-2024.11.0/evap/evaluation/migrations/0138_votetimestamp.py +25 -0
- evap-2024.11.0/evap/evaluation/migrations/0139_userprofile_startpage.py +22 -0
- evap-2024.11.0/evap/evaluation/migrations/0140_alter_question_type.py +37 -0
- evap-2024.11.0/evap/evaluation/migrations/0141_userprofile_notes.py +17 -0
- evap-2024.11.0/evap/evaluation/migrations/0142_alter_evaluation_state.py +18 -0
- evap-2024.11.0/evap/evaluation/migrations/0143_alter_evaluation_state.py +33 -0
- evap-2024.11.0/evap/evaluation/migrations/0144_alter_evaluation_state.py +33 -0
- evap-2024.11.0/evap/evaluation/migrations/0145_rename_degree_to_program.py +30 -0
- evap-2024.11.0/evap/evaluation/migrations/0146_grade_reminder_template.py +31 -0
- evap-2024.11.0/evap/evaluation/migrations/0147_unusable_password_default.py +24 -0
- evap-2024.11.0/evap/evaluation/migrations/__init__.py +0 -0
- evap-2024.11.0/evap/evaluation/models.py +2336 -0
- evap-2024.11.0/evap/evaluation/models_logging.py +368 -0
- evap-2024.11.0/evap/evaluation/templates/400.html +10 -0
- evap-2024.11.0/evap/evaluation/templates/403.html +10 -0
- evap-2024.11.0/evap/evaluation/templates/404.html +10 -0
- evap-2024.11.0/evap/evaluation/templates/500.html +10 -0
- evap-2024.11.0/evap/evaluation/templates/base.html +215 -0
- evap-2024.11.0/evap/evaluation/templates/base_empty.html +5 -0
- evap-2024.11.0/evap/evaluation/templates/bootstrap_datetimepicker.html +32 -0
- evap-2024.11.0/evap/evaluation/templates/bootstrap_form.html +13 -0
- evap-2024.11.0/evap/evaluation/templates/bootstrap_form_errors.html +3 -0
- evap-2024.11.0/evap/evaluation/templates/bootstrap_form_field.html +16 -0
- evap-2024.11.0/evap/evaluation/templates/bootstrap_form_field_label.html +3 -0
- evap-2024.11.0/evap/evaluation/templates/bootstrap_form_field_widget.html +5 -0
- evap-2024.11.0/evap/evaluation/templates/bootstrap_form_pill_group.html +18 -0
- evap-2024.11.0/evap/evaluation/templates/choice_button.html +12 -0
- evap-2024.11.0/evap/evaluation/templates/confirmation_modal_template.html +33 -0
- evap-2024.11.0/evap/evaluation/templates/contact_modal.html +55 -0
- evap-2024.11.0/evap/evaluation/templates/contribution_formset.html +77 -0
- evap-2024.11.0/evap/evaluation/templates/course_badges.html +5 -0
- evap-2024.11.0/evap/evaluation/templates/custom_elements.html +9 -0
- evap-2024.11.0/evap/evaluation/templates/django/forms/widgets/checkbox.html +6 -0
- evap-2024.11.0/evap/evaluation/templates/django/forms/widgets/input.html +1 -0
- evap-2024.11.0/evap/evaluation/templates/django/forms/widgets/select.html +13 -0
- evap-2024.11.0/evap/evaluation/templates/django/forms/widgets/textarea.html +2 -0
- evap-2024.11.0/evap/evaluation/templates/email_base.html +62 -0
- evap-2024.11.0/evap/evaluation/templates/evaluation_badges.html +20 -0
- evap-2024.11.0/evap/evaluation/templates/evaluation_form_general_questionnaires.html +17 -0
- evap-2024.11.0/evap/evaluation/templates/evap_evaluation_edit_js.html +78 -0
- evap-2024.11.0/evap/evaluation/templates/external_user_confirm_login.html +28 -0
- evap-2024.11.0/evap/evaluation/templates/faq.html +50 -0
- evap-2024.11.0/evap/evaluation/templates/footer.html +33 -0
- evap-2024.11.0/evap/evaluation/templates/index.html +82 -0
- evap-2024.11.0/evap/evaluation/templates/infobox.html +26 -0
- evap-2024.11.0/evap/evaluation/templates/legal_notice.html +12 -0
- evap-2024.11.0/evap/evaluation/templates/legal_notice_text.html +0 -0
- evap-2024.11.0/evap/evaluation/templates/log/changed_fields_entry.html +29 -0
- evap-2024.11.0/evap/evaluation/templates/log/logentries.html +30 -0
- evap-2024.11.0/evap/evaluation/templates/multiple_checkbox_widget.html +10 -0
- evap-2024.11.0/evap/evaluation/templates/navbar.html +134 -0
- evap-2024.11.0/evap/evaluation/templates/notebook.html +42 -0
- evap-2024.11.0/evap/evaluation/templates/profile.html +95 -0
- evap-2024.11.0/evap/evaluation/templates/progress_bar.html +16 -0
- evap-2024.11.0/evap/evaluation/templates/progress_bar_fill.html +15 -0
- evap-2024.11.0/evap/evaluation/templates/questionnaires_widget.html +37 -0
- evap-2024.11.0/evap/evaluation/templates/role_buttons.html +12 -0
- evap-2024.11.0/evap/evaluation/templates/startpage_button.html +13 -0
- evap-2024.11.0/evap/evaluation/templates/textanswer_visibility_buttons.html +10 -0
- evap-2024.11.0/evap/evaluation/templates/textanswer_visibility_info.html +10 -0
- evap-2024.11.0/evap/evaluation/templates/user_list_with_links.html +11 -0
- evap-2024.11.0/evap/evaluation/templatetags/__init__.py +0 -0
- evap-2024.11.0/evap/evaluation/templatetags/evaluation_filters.py +232 -0
- evap-2024.11.0/evap/evaluation/templatetags/infotext_templatetags.py +16 -0
- evap-2024.11.0/evap/evaluation/templatetags/navbar_templatetags.py +34 -0
- evap-2024.11.0/evap/evaluation/tests/__init__.py +0 -0
- evap-2024.11.0/evap/evaluation/tests/test_auth.py +268 -0
- evap-2024.11.0/evap/evaluation/tests/test_commands.py +522 -0
- evap-2024.11.0/evap/evaluation/tests/test_forms.py +55 -0
- evap-2024.11.0/evap/evaluation/tests/test_misc.py +64 -0
- evap-2024.11.0/evap/evaluation/tests/test_models.py +1140 -0
- evap-2024.11.0/evap/evaluation/tests/test_models_logging.py +149 -0
- evap-2024.11.0/evap/evaluation/tests/test_tools.py +201 -0
- evap-2024.11.0/evap/evaluation/tests/test_views.py +289 -0
- evap-2024.11.0/evap/evaluation/tests/tools.py +258 -0
- evap-2024.11.0/evap/evaluation/tools.py +292 -0
- evap-2024.11.0/evap/evaluation/urls.py +17 -0
- evap-2024.11.0/evap/evaluation/views.py +248 -0
- evap-2024.11.0/evap/grades/__init__.py +0 -0
- evap-2024.11.0/evap/grades/forms.py +53 -0
- evap-2024.11.0/evap/grades/migrations/0001_initial.py +30 -0
- evap-2024.11.0/evap/grades/migrations/0002_initial_data.py +17 -0
- evap-2024.11.0/evap/grades/migrations/0003_add_upload_path_and_change_last_modified_user_related_name.py +24 -0
- evap-2024.11.0/evap/grades/migrations/0004_rename_preliminary_to_midterm.py +25 -0
- evap-2024.11.0/evap/grades/migrations/0005_make_description_unique_per_course.py +15 -0
- evap-2024.11.0/evap/grades/migrations/0006_specify_on_delete.py +19 -0
- evap-2024.11.0/evap/grades/migrations/0007_semestergradedownloadactivation.py +23 -0
- evap-2024.11.0/evap/grades/migrations/0008_add_gradedocument_description_en.py +33 -0
- evap-2024.11.0/evap/grades/migrations/0009_fill_description_en.py +22 -0
- evap-2024.11.0/evap/grades/migrations/0010_gradedocument_description_en_add_unique.py +17 -0
- evap-2024.11.0/evap/grades/migrations/0011_auto_20160301_1438.py +20 -0
- evap-2024.11.0/evap/grades/migrations/0012_remove_semester_grade_download_activation.py +20 -0
- evap-2024.11.0/evap/grades/migrations/0013_prepare_rename_course_to_evaluation.py +19 -0
- evap-2024.11.0/evap/grades/migrations/0014_rename_course_to_evaluation.py +23 -0
- evap-2024.11.0/evap/grades/migrations/0015_add_grade_documents_on_course.py +28 -0
- evap-2024.11.0/evap/grades/migrations/0016_move_grade_documents_to_course.py +27 -0
- evap-2024.11.0/evap/grades/migrations/0017_remove_grade_documents_from_evaluations.py +29 -0
- evap-2024.11.0/evap/grades/migrations/__init__.py +0 -0
- evap-2024.11.0/evap/grades/models.py +67 -0
- evap-2024.11.0/evap/grades/templates/grade_document_file_widget.html +6 -0
- evap-2024.11.0/evap/grades/templates/grades_base.html +17 -0
- evap-2024.11.0/evap/grades/templates/grades_course_base.html +14 -0
- evap-2024.11.0/evap/grades/templates/grades_course_view.html +71 -0
- evap-2024.11.0/evap/grades/templates/grades_index.html +22 -0
- evap-2024.11.0/evap/grades/templates/grades_semester_base.html +16 -0
- evap-2024.11.0/evap/grades/templates/grades_semester_view.html +147 -0
- evap-2024.11.0/evap/grades/templates/grades_upload_form.html +38 -0
- evap-2024.11.0/evap/grades/tests.py +283 -0
- evap-2024.11.0/evap/grades/urls.py +17 -0
- evap-2024.11.0/evap/grades/views.py +216 -0
- evap-2024.11.0/evap/locale/__init__.py +0 -0
- evap-2024.11.0/evap/locale/de/LC_MESSAGES/django.po +5836 -0
- evap-2024.11.0/evap/locale/de/LC_MESSAGES/djangojs.po +31 -0
- evap-2024.11.0/evap/locale/de/__init__.py +0 -0
- evap-2024.11.0/evap/locale/de/formats.py +1 -0
- evap-2024.11.0/evap/locale/en/__init__.py +0 -0
- evap-2024.11.0/evap/locale/en/formats.py +11 -0
- evap-2024.11.0/evap/logs/.gitignore +4 -0
- evap-2024.11.0/evap/middleware.py +53 -0
- evap-2024.11.0/evap/results/__init__.py +0 -0
- evap-2024.11.0/evap/results/exporters.py +417 -0
- evap-2024.11.0/evap/results/fixtures/minimal_test_data_results.json +538 -0
- evap-2024.11.0/evap/results/templates/distribution_widget.html +26 -0
- evap-2024.11.0/evap/results/templates/distribution_with_grade.html +51 -0
- evap-2024.11.0/evap/results/templates/distribution_with_grade_disabled.html +9 -0
- evap-2024.11.0/evap/results/templates/evaluation_result_widget.html +17 -0
- evap-2024.11.0/evap/results/templates/result_widget_tooltip.html +26 -0
- evap-2024.11.0/evap/results/templates/results_evaluation_detail.html +232 -0
- evap-2024.11.0/evap/results/templates/results_evaluation_detail_questionnaires.html +41 -0
- evap-2024.11.0/evap/results/templates/results_index.html +173 -0
- evap-2024.11.0/evap/results/templates/results_index_course.html +8 -0
- evap-2024.11.0/evap/results/templates/results_index_course_impl.html +30 -0
- evap-2024.11.0/evap/results/templates/results_index_evaluation.html +8 -0
- evap-2024.11.0/evap/results/templates/results_index_evaluation_impl.html +69 -0
- evap-2024.11.0/evap/results/templates/results_widget_range_slider.html +9 -0
- evap-2024.11.0/evap/results/templates/textanswer_list.html +23 -0
- evap-2024.11.0/evap/results/templatetags/__init__.py +0 -0
- evap-2024.11.0/evap/results/templatetags/results_templatetags.py +56 -0
- evap-2024.11.0/evap/results/tests/__init__.py +0 -0
- evap-2024.11.0/evap/results/tests/test_exporters.py +592 -0
- evap-2024.11.0/evap/results/tests/test_tools.py +589 -0
- evap-2024.11.0/evap/results/tests/test_views.py +1240 -0
- evap-2024.11.0/evap/results/tools.py +521 -0
- evap-2024.11.0/evap/results/urls.py +11 -0
- evap-2024.11.0/evap/results/views.py +436 -0
- evap-2024.11.0/evap/rewards/__init__.py +0 -0
- evap-2024.11.0/evap/rewards/exporters.py +21 -0
- evap-2024.11.0/evap/rewards/forms.py +14 -0
- evap-2024.11.0/evap/rewards/migrations/0001_initial.py +73 -0
- evap-2024.11.0/evap/rewards/migrations/0002_django18warning.py +17 -0
- evap-2024.11.0/evap/rewards/migrations/0003_specify_on_delete.py +24 -0
- evap-2024.11.0/evap/rewards/migrations/0004_make_granting_semester_non_null.py +19 -0
- evap-2024.11.0/evap/rewards/migrations/0005_alter_rewardpoint_minvalue.py +23 -0
- evap-2024.11.0/evap/rewards/migrations/__init__.py +0 -0
- evap-2024.11.0/evap/rewards/models.py +69 -0
- evap-2024.11.0/evap/rewards/templates/rewards_index.html +92 -0
- evap-2024.11.0/evap/rewards/templates/rewards_reward_point_redemption_event_form.html +28 -0
- evap-2024.11.0/evap/rewards/templates/rewards_reward_point_redemption_event_list.html +54 -0
- evap-2024.11.0/evap/rewards/templates/rewards_reward_point_redemption_events.html +51 -0
- evap-2024.11.0/evap/rewards/tests/__init__.py +0 -0
- evap-2024.11.0/evap/rewards/tests/test_tools.py +106 -0
- evap-2024.11.0/evap/rewards/tests/test_views.py +264 -0
- evap-2024.11.0/evap/rewards/tools.py +167 -0
- evap-2024.11.0/evap/rewards/urls.py +18 -0
- evap-2024.11.0/evap/rewards/views.py +207 -0
- evap-2024.11.0/evap/settings.py +489 -0
- evap-2024.11.0/evap/settings_test.py +30 -0
- evap-2024.11.0/evap/staff/__init__.py +0 -0
- evap-2024.11.0/evap/staff/fixtures/__init__.py +0 -0
- evap-2024.11.0/evap/staff/fixtures/excel_files_test_data.py +241 -0
- evap-2024.11.0/evap/staff/fixtures/invalid_user_import.xlsx +0 -0
- evap-2024.11.0/evap/staff/fixtures/test_user_bulk_update_file.txt +4 -0
- evap-2024.11.0/evap/staff/fixtures/valid_user_import.xlsx +0 -0
- evap-2024.11.0/evap/staff/forms.py +1136 -0
- evap-2024.11.0/evap/staff/importers/__init__.py +13 -0
- evap-2024.11.0/evap/staff/importers/base.py +306 -0
- evap-2024.11.0/evap/staff/importers/enrollment.py +893 -0
- evap-2024.11.0/evap/staff/importers/person.py +119 -0
- evap-2024.11.0/evap/staff/importers/user.py +398 -0
- evap-2024.11.0/evap/staff/staff_mode.py +68 -0
- evap-2024.11.0/evap/staff/templates/staff_base.html +17 -0
- evap-2024.11.0/evap/staff/templates/staff_course_base.html +23 -0
- evap-2024.11.0/evap/staff/templates/staff_course_copyform.html +44 -0
- evap-2024.11.0/evap/staff/templates/staff_course_form.html +55 -0
- evap-2024.11.0/evap/staff/templates/staff_course_type_index.html +89 -0
- evap-2024.11.0/evap/staff/templates/staff_course_type_merge.html +39 -0
- evap-2024.11.0/evap/staff/templates/staff_course_type_merge_selection.html +27 -0
- evap-2024.11.0/evap/staff/templates/staff_email_preview_form.html +38 -0
- evap-2024.11.0/evap/staff/templates/staff_evaluation_base.html +19 -0
- evap-2024.11.0/evap/staff/templates/staff_evaluation_email.html +51 -0
- evap-2024.11.0/evap/staff/templates/staff_evaluation_evaluation_period.html +27 -0
- evap-2024.11.0/evap/staff/templates/staff_evaluation_form.html +66 -0
- evap-2024.11.0/evap/staff/templates/staff_evaluation_operation.html +103 -0
- evap-2024.11.0/evap/staff/templates/staff_evaluation_person_management.html +226 -0
- evap-2024.11.0/evap/staff/templates/staff_evaluation_textanswer_edit.html +25 -0
- evap-2024.11.0/evap/staff/templates/staff_evaluation_textanswer_flag_radios.html +40 -0
- evap-2024.11.0/evap/staff/templates/staff_evaluation_textanswers.html +64 -0
- evap-2024.11.0/evap/staff/templates/staff_evaluation_textanswers_full.html +43 -0
- evap-2024.11.0/evap/staff/templates/staff_evaluation_textanswers_quick.html +205 -0
- evap-2024.11.0/evap/staff/templates/staff_evaluation_textanswers_section.html +68 -0
- evap-2024.11.0/evap/staff/templates/staff_faq_index.html +76 -0
- evap-2024.11.0/evap/staff/templates/staff_faq_section.html +72 -0
- evap-2024.11.0/evap/staff/templates/staff_index.html +81 -0
- evap-2024.11.0/evap/staff/templates/staff_infotexts.html +40 -0
- evap-2024.11.0/evap/staff/templates/staff_message_rendering_template.html +48 -0
- evap-2024.11.0/evap/staff/templates/staff_program_index.html +86 -0
- evap-2024.11.0/evap/staff/templates/staff_questionnaire_base.html +15 -0
- evap-2024.11.0/evap/staff/templates/staff_questionnaire_form.html +118 -0
- evap-2024.11.0/evap/staff/templates/staff_questionnaire_index.html +121 -0
- evap-2024.11.0/evap/staff/templates/staff_questionnaire_index_list.html +82 -0
- evap-2024.11.0/evap/staff/templates/staff_questionnaire_view.html +15 -0
- evap-2024.11.0/evap/staff/templates/staff_semester_base.html +20 -0
- evap-2024.11.0/evap/staff/templates/staff_semester_export.html +84 -0
- evap-2024.11.0/evap/staff/templates/staff_semester_flagged_textanswers.html +35 -0
- evap-2024.11.0/evap/staff/templates/staff_semester_form.html +18 -0
- evap-2024.11.0/evap/staff/templates/staff_semester_grade_reminder.html +26 -0
- evap-2024.11.0/evap/staff/templates/staff_semester_import.html +59 -0
- evap-2024.11.0/evap/staff/templates/staff_semester_preparation_reminder.html +84 -0
- evap-2024.11.0/evap/staff/templates/staff_semester_questionnaire_assign_form.html +28 -0
- evap-2024.11.0/evap/staff/templates/staff_semester_send_reminder.html +32 -0
- evap-2024.11.0/evap/staff/templates/staff_semester_view.html +640 -0
- evap-2024.11.0/evap/staff/templates/staff_semester_view_evaluation.html +227 -0
- evap-2024.11.0/evap/staff/templates/staff_single_result_form.html +32 -0
- evap-2024.11.0/evap/staff/templates/staff_template_form.html +50 -0
- evap-2024.11.0/evap/staff/templates/staff_text_answer_warnings.html +117 -0
- evap-2024.11.0/evap/staff/templates/staff_user_badges.html +28 -0
- evap-2024.11.0/evap/staff/templates/staff_user_bulk_update.html +32 -0
- evap-2024.11.0/evap/staff/templates/staff_user_form.html +145 -0
- evap-2024.11.0/evap/staff/templates/staff_user_import.html +58 -0
- evap-2024.11.0/evap/staff/templates/staff_user_index.html +43 -0
- evap-2024.11.0/evap/staff/templates/staff_user_list.html +77 -0
- evap-2024.11.0/evap/staff/templates/staff_user_merge.html +251 -0
- evap-2024.11.0/evap/staff/templates/staff_user_merge_grouped_list.html +14 -0
- evap-2024.11.0/evap/staff/templates/staff_user_merge_reward_points_list.html +16 -0
- evap-2024.11.0/evap/staff/templates/staff_user_merge_selection.html +57 -0
- evap-2024.11.0/evap/staff/tests/__init__.py +0 -0
- evap-2024.11.0/evap/staff/tests/test_forms.py +1148 -0
- evap-2024.11.0/evap/staff/tests/test_importers.py +1068 -0
- evap-2024.11.0/evap/staff/tests/test_tools.py +306 -0
- evap-2024.11.0/evap/staff/tests/test_views.py +3838 -0
- evap-2024.11.0/evap/staff/tests/utils.py +71 -0
- evap-2024.11.0/evap/staff/tools.py +383 -0
- evap-2024.11.0/evap/staff/urls.py +101 -0
- evap-2024.11.0/evap/staff/views.py +2574 -0
- evap-2024.11.0/evap/static/css/bootstrap-datetimepicker.min.css +5 -0
- evap-2024.11.0/evap/static/css/tom-select.bootstrap5.min.css +2 -0
- evap-2024.11.0/evap/static/css/tom-select.bootstrap5.min.css.map +1 -0
- evap-2024.11.0/evap/static/font-awesome/scss/_animated.scss +152 -0
- evap-2024.11.0/evap/static/font-awesome/scss/_bordered-pulled.scss +20 -0
- evap-2024.11.0/evap/static/font-awesome/scss/_core.scss +43 -0
- evap-2024.11.0/evap/static/font-awesome/scss/_fixed-width.scss +7 -0
- evap-2024.11.0/evap/static/font-awesome/scss/_functions.scss +57 -0
- evap-2024.11.0/evap/static/font-awesome/scss/_icons.scss +10 -0
- evap-2024.11.0/evap/static/font-awesome/scss/_list.scss +18 -0
- evap-2024.11.0/evap/static/font-awesome/scss/_mixins.scss +72 -0
- evap-2024.11.0/evap/static/font-awesome/scss/_rotated-flipped.scss +31 -0
- evap-2024.11.0/evap/static/font-awesome/scss/_screen-reader.scss +14 -0
- evap-2024.11.0/evap/static/font-awesome/scss/_shims.scss +1578 -0
- evap-2024.11.0/evap/static/font-awesome/scss/_sizing.scss +16 -0
- evap-2024.11.0/evap/static/font-awesome/scss/_stacked.scss +32 -0
- evap-2024.11.0/evap/static/font-awesome/scss/_variables.scss +5021 -0
- evap-2024.11.0/evap/static/font-awesome/scss/fontawesome.scss +21 -0
- evap-2024.11.0/evap/static/font-awesome/scss/regular.scss +27 -0
- evap-2024.11.0/evap/static/font-awesome/scss/solid.scss +27 -0
- evap-2024.11.0/evap/static/font-awesome/webfonts/fa-regular-400.woff2 +0 -0
- evap-2024.11.0/evap/static/font-awesome/webfonts/fa-solid-900.woff2 +0 -0
- evap-2024.11.0/evap/static/images/evap.png +0 -0
- evap-2024.11.0/evap/static/images/favicon_16.png +0 -0
- evap-2024.11.0/evap/static/images/favicon_32.png +0 -0
- evap-2024.11.0/evap/static/images/favicon_64.png +0 -0
- evap-2024.11.0/evap/static/images/favicon_gray.png +0 -0
- evap-2024.11.0/evap/static/images/triangles_color.svg +160 -0
- evap-2024.11.0/evap/static/images/triangles_gray.svg +154 -0
- evap-2024.11.0/evap/static/js/.gitignore +3 -0
- evap-2024.11.0/evap/static/js/Sortable.min.js +2 -0
- evap-2024.11.0/evap/static/js/bootstrap-datetimepicker.min.js +2 -0
- evap-2024.11.0/evap/static/js/jquery-2.1.3.min.js +4 -0
- evap-2024.11.0/evap/static/js/moment.min.js +2 -0
- evap-2024.11.0/evap/static/js/moment.min.js.map +1 -0
- evap-2024.11.0/evap/static/js/moment_de.js +1 -0
- evap-2024.11.0/evap/static/js/plugins/jquery.formset.js +213 -0
- evap-2024.11.0/evap/static/js/sisyphus.min.js +13 -0
- evap-2024.11.0/evap/static/js/tom-select.complete.min.js +363 -0
- evap-2024.11.0/evap/static/js/tom-select.complete.min.js.map +1 -0
- evap-2024.11.0/evap/static/maintenance/maintenance.html +36 -0
- evap-2024.11.0/evap/static/sample.xlsx +0 -0
- evap-2024.11.0/evap/static/sample_user.xlsx +0 -0
- evap-2024.11.0/evap/static/scss/_adjustments.scss +156 -0
- evap-2024.11.0/evap/static/scss/_bootstrap.scss +48 -0
- evap-2024.11.0/evap/static/scss/_colors.scss +48 -0
- evap-2024.11.0/evap/static/scss/_components.scss +25 -0
- evap-2024.11.0/evap/static/scss/_font-awesome.scss +23 -0
- evap-2024.11.0/evap/static/scss/_mixins.scss +67 -0
- evap-2024.11.0/evap/static/scss/_print.scss +52 -0
- evap-2024.11.0/evap/static/scss/_utilities.scss +91 -0
- evap-2024.11.0/evap/static/scss/_variables.scss +91 -0
- evap-2024.11.0/evap/static/scss/components/_badge.scss +75 -0
- evap-2024.11.0/evap/static/scss/components/_breadcrumb.scss +31 -0
- evap-2024.11.0/evap/static/scss/components/_button-group.scss +19 -0
- evap-2024.11.0/evap/static/scss/components/_buttons.scss +288 -0
- evap-2024.11.0/evap/static/scss/components/_callouts.scss +97 -0
- evap-2024.11.0/evap/static/scss/components/_card.scss +106 -0
- evap-2024.11.0/evap/static/scss/components/_close.scss +8 -0
- evap-2024.11.0/evap/static/scss/components/_confirmation-modal.scss +87 -0
- evap-2024.11.0/evap/static/scss/components/_distribution-bar.scss +109 -0
- evap-2024.11.0/evap/static/scss/components/_dropdown.scss +3 -0
- evap-2024.11.0/evap/static/scss/components/_forms.scss +73 -0
- evap-2024.11.0/evap/static/scss/components/_grid.scss +228 -0
- evap-2024.11.0/evap/static/scss/components/_jumbotron.scss +10 -0
- evap-2024.11.0/evap/static/scss/components/_modal.scss +31 -0
- evap-2024.11.0/evap/static/scss/components/_nav.scss +39 -0
- evap-2024.11.0/evap/static/scss/components/_notebook.scss +84 -0
- evap-2024.11.0/evap/static/scss/components/_progress.scss +84 -0
- evap-2024.11.0/evap/static/scss/components/_quick-review.scss +83 -0
- evap-2024.11.0/evap/static/scss/components/_range-slider.scss +47 -0
- evap-2024.11.0/evap/static/scss/components/_staff-index.scss +17 -0
- evap-2024.11.0/evap/static/scss/components/_tables.scss +125 -0
- evap-2024.11.0/evap/static/scss/components/_tooltip.scss +13 -0
- evap-2024.11.0/evap/static/scss/components/_transitions.scss +36 -0
- evap-2024.11.0/evap/static/scss/components/_type.scss +9 -0
- evap-2024.11.0/evap/static/scss/evap.scss +149 -0
- evap-2024.11.0/evap/static/ts/.prettierrc.json +5 -0
- evap-2024.11.0/evap/static/ts/src/base-template.ts +11 -0
- evap-2024.11.0/evap/static/ts/src/confirmation-modal.ts +82 -0
- evap-2024.11.0/evap/static/ts/src/contact_modal.ts +69 -0
- evap-2024.11.0/evap/static/ts/src/copy-to-clipboard.ts +18 -0
- evap-2024.11.0/evap/static/ts/src/csrf-utils.ts +21 -0
- evap-2024.11.0/evap/static/ts/src/custom-success-form.ts +42 -0
- evap-2024.11.0/evap/static/ts/src/datagrid.ts +530 -0
- evap-2024.11.0/evap/static/ts/src/infobox.ts +41 -0
- evap-2024.11.0/evap/static/ts/src/notebook.ts +80 -0
- evap-2024.11.0/evap/static/ts/src/quick-review-slider.ts +453 -0
- evap-2024.11.0/evap/static/ts/src/slider.ts +89 -0
- evap-2024.11.0/evap/static/ts/src/sortable-form.ts +109 -0
- evap-2024.11.0/evap/static/ts/src/student-vote.ts +178 -0
- evap-2024.11.0/evap/static/ts/src/text-answer-warnings.ts +56 -0
- evap-2024.11.0/evap/static/ts/src/translation.ts +16 -0
- evap-2024.11.0/evap/static/ts/src/utils.ts +57 -0
- evap-2024.11.0/evap/static/ts/tests/frontend/results-index.ts +98 -0
- evap-2024.11.0/evap/static/ts/tests/frontend/staff-evaluation-edit.ts +40 -0
- evap-2024.11.0/evap/static/ts/tests/frontend/staff-user-import.ts +14 -0
- evap-2024.11.0/evap/static/ts/tests/frontend/student-vote.ts +84 -0
- evap-2024.11.0/evap/static/ts/tests/unit/csrf-utils.ts +23 -0
- evap-2024.11.0/evap/static/ts/tests/unit/text-answer-warnings.ts +36 -0
- evap-2024.11.0/evap/static/ts/tests/utils/constants.ts +7 -0
- evap-2024.11.0/evap/static/ts/tests/utils/matchers.ts +70 -0
- evap-2024.11.0/evap/static/ts/tests/utils/page.ts +84 -0
- evap-2024.11.0/evap/static/ts/tsconfig.compile.json +15 -0
- evap-2024.11.0/evap/static/ts/tsconfig.json +10 -0
- evap-2024.11.0/evap/student/__init__.py +0 -0
- evap-2024.11.0/evap/student/forms.py +95 -0
- evap-2024.11.0/evap/student/migrations/0001_text_answer_warnings.py +27 -0
- evap-2024.11.0/evap/student/migrations/__init__.py +0 -0
- evap-2024.11.0/evap/student/models.py +23 -0
- evap-2024.11.0/evap/student/templates/student_global_reward.html +53 -0
- evap-2024.11.0/evap/student/templates/student_index.html +33 -0
- evap-2024.11.0/evap/student/templates/student_index_evaluation_period.html +28 -0
- evap-2024.11.0/evap/student/templates/student_index_semester_evaluations_list.html +178 -0
- evap-2024.11.0/evap/student/templates/student_index_unfinished_evaluations_list.html +34 -0
- evap-2024.11.0/evap/student/templates/student_text_answer_warnings.html +10 -0
- evap-2024.11.0/evap/student/templates/student_vote.html +385 -0
- evap-2024.11.0/evap/student/templates/student_vote_questionnaire_group.html +90 -0
- evap-2024.11.0/evap/student/templatetags/__init__.py +0 -0
- evap-2024.11.0/evap/student/templatetags/student_filters.py +8 -0
- evap-2024.11.0/evap/student/tests/__init__.py +0 -0
- evap-2024.11.0/evap/student/tests/test_views.py +578 -0
- evap-2024.11.0/evap/student/tools.py +8 -0
- evap-2024.11.0/evap/student/urls.py +10 -0
- evap-2024.11.0/evap/student/views.py +326 -0
- evap-2024.11.0/evap/tools.py +42 -0
- evap-2024.11.0/evap/upload/grades/1525/test_results_01.txt +1 -0
- evap-2024.11.0/evap/upload/grades/1577/test_results_03.txt +1 -0
- evap-2024.11.0/evap/upload/grades/1694/test_results_02.txt +1 -0
- evap-2024.11.0/evap/urls.py +30 -0
- evap-2024.11.0/evap/wsgi.py +21 -0
- evap-2024.11.0/pyproject.toml +194 -0
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
# License
|
|
2
|
+
|
|
3
|
+
The software is licensed under the MIT license. The source code includes other
|
|
4
|
+
components in whole or in part, used under these licenses:
|
|
5
|
+
* [Apache-2.0](https://www.apache.org/licenses/LICENSE-2.0): Bootstrap Datetimepicker, Tom Select
|
|
6
|
+
* [CC-BY-4.0](https://creativecommons.org/licenses/by/4.0/legalcode): Font Awesome Icons
|
|
7
|
+
* [OFL-1.1](https://scripts.sil.org/OFL): Font Awesome Fonts
|
|
8
|
+
* [MIT](https://opensource.org/licenses/MIT): Bootstrap, Font Awesome Code, jQuery, Moment, Sisyphus, Sortable
|
|
9
|
+
* [BSD-2-Clause](https://opensource.org/licenses/bsd-license.php): jQuery Formset
|
|
10
|
+
|
|
11
|
+
The source repository may include logos, names or other trademarks of the
|
|
12
|
+
Hasso Plattner Institute, the Fachschaftsrat Digital Engineering or other
|
|
13
|
+
entities; potential usage restrictions for these elements still apply and are
|
|
14
|
+
not touched by the software license.
|
|
15
|
+
|
|
16
|
+
```
|
|
17
|
+
EvaP – Evaluation Platform
|
|
18
|
+
Copyright (C) 2011-2023 by Johannes Wolf, Johannes Linke, Michael Grünewald,
|
|
19
|
+
Stefan Richter, and Richard Ebeling
|
|
20
|
+
|
|
21
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
22
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
23
|
+
in the Software without restriction, including without limitation the rights
|
|
24
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
25
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
26
|
+
furnished to do so, subject to the following conditions:
|
|
27
|
+
|
|
28
|
+
The above copyright notice and this permission notice shall be included in
|
|
29
|
+
all copies or substantial portions of the Software.
|
|
30
|
+
|
|
31
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
32
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
33
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
34
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
35
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
36
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
37
|
+
THE SOFTWARE.
|
|
38
|
+
```
|
evap-2024.11.0/PKG-INFO
ADDED
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
Metadata-Version: 2.1
|
|
2
|
+
Name: evap
|
|
3
|
+
Version: 2024.11.0
|
|
4
|
+
Summary: EvaP
|
|
5
|
+
Author: EvaP Developers
|
|
6
|
+
Requires-Python: >=3.10.0,<3.11.0
|
|
7
|
+
Classifier: Programming Language :: Python :: 3
|
|
8
|
+
Classifier: Programming Language :: Python :: 3.10
|
|
9
|
+
Requires-Dist: Django (>=5.1.0,<5.2.0)
|
|
10
|
+
Requires-Dist: django-extensions (>=3.2.3,<3.3.0)
|
|
11
|
+
Requires-Dist: django-fsm (>=2.8.2,<2.9.0)
|
|
12
|
+
Requires-Dist: mozilla-django-oidc (>=4.0.1,<4.1.0)
|
|
13
|
+
Requires-Dist: openpyxl (>=3.1.5,<3.2.0)
|
|
14
|
+
Requires-Dist: psycopg[binary] (>=3.2.3,<3.3.0)
|
|
15
|
+
Requires-Dist: redis (>=5.2.0,<5.3.0)
|
|
16
|
+
Requires-Dist: typing-extensions (>=4.12.2,<4.13.0)
|
|
17
|
+
Requires-Dist: xlwt (>=1.3.0,<1.4.0)
|
|
18
|
+
Description-Content-Type: text/markdown
|
|
19
|
+
|
|
20
|
+
# EvaP - Evaluation Platform
|
|
21
|
+
|
|
22
|
+
[](https://github.com/e-valuation/EvaP/actions?query=workflow%3A%22EvaP+Test+Suite%22)
|
|
23
|
+
[](https://app.codacy.com/gh/e-valuation/EvaP/dashboard)
|
|
24
|
+
[](https://codecov.io/gh/e-valuation/EvaP)
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
## What is EvaP?
|
|
28
|
+
|
|
29
|
+
EvaP is the course evaluation system used internally at Hasso Plattner Institute at the University of Potsdam.
|
|
30
|
+
|
|
31
|
+
For the documentation, please see our [wiki](https://github.com/e-valuation/EvaP/wiki).
|
|
32
|
+
|
|
33
|
+
## Development Setup
|
|
34
|
+
|
|
35
|
+
We use [nix](https://nixos.org/) to manage the development environment.
|
|
36
|
+
|
|
37
|
+
1. Windows only: Install the Windows Subsystem for Linux (WSL) using `wsl --install -d Ubuntu-24.04` (you may have to restart your computer and run this command again). Enter the WSL environment using the `wsl` command. On your first entry, you need to choose a username and password - anything works (for example: username "evap", password "evap"). Perform the next step outside of `/mnt`, for example by going to your home directory (`cd ~`).
|
|
38
|
+
2. Install [git](https://git-scm.com/downloads). Run the following commands to clone and enter the EvaP repository:
|
|
39
|
+
```
|
|
40
|
+
git clone --recurse-submodules https://github.com/e-valuation/EvaP.git
|
|
41
|
+
cd EvaP
|
|
42
|
+
```
|
|
43
|
+
3. On Linux and WSL, install nix by running `./nix/setup-nix`. On MacOS, install nix using the [Determinate Nix Installer](https://install.determinate.systems/). Afterwards, if you get a permission error when running nix, restart your computer.
|
|
44
|
+
4. Start the needed background services for EvaP:
|
|
45
|
+
```
|
|
46
|
+
nix run .#services-full
|
|
47
|
+
```
|
|
48
|
+
5. Open a new terminal. Enter the development shell and start EvaP:
|
|
49
|
+
```
|
|
50
|
+
cd EvaP
|
|
51
|
+
nix develop
|
|
52
|
+
./manage.py run
|
|
53
|
+
```
|
|
54
|
+
6. Open your web browser at http://localhost:8000/ and login with email `evap@institution.example.com` and password `evap`.
|
|
55
|
+
|
|
56
|
+
To stop EvaP or the background services, press `Ctrl-C`.
|
|
57
|
+
To exit the development shell, press `Ctrl-D` or type `exit`.
|
|
58
|
+
|
|
59
|
+
## Contributing
|
|
60
|
+
|
|
61
|
+
We'd love to see contributions! PRs solving existing issues are most helpful to us. It's best if you ask to be assigned for the issue so we won't have multiple people working on the same issue. Feel free to open issues for bugs, setup problems, or feature requests. If you have other questions, feel free to contact the [organization members](https://github.com/orgs/e-valuation/people). You should probably branch off `main`, the branch `release` is used for stable revisions.
|
|
62
|
+
|
|
63
|
+
Before committing, run the following commands:
|
|
64
|
+
- `./manage.py test` (runs the test suite)
|
|
65
|
+
- `./manage.py lint` (runs linting)
|
|
66
|
+
- `./manage.py format` (applies automatic code formatting)
|
|
67
|
+
|
|
68
|
+
or, to combine all three, simply run `./manage.py precommit`.
|
|
69
|
+
|
|
70
|
+
You can also set up `pylint`, `isort`, `black` and `prettier` in your IDE to avoid doing this manually all the time.
|
|
71
|
+
|
|
72
|
+
### Creating a Pull Request (Workflow Suggestion)
|
|
73
|
+
1. (once) [Fork](https://github.com/e-valuation/EvaP/fork) the repository so you have a GitHub repo that you have write access to.
|
|
74
|
+
|
|
75
|
+
2. (once) Set up some authentication for GitHub that allows push access. A common option is using [SSH keys](https://docs.github.com/en/authentication/connecting-to-github-with-ssh/about-ssh), the remaining instructions assume an SSH key setup. An alternative is using the [GitHub CLI tool](https://cli.github.com/).
|
|
76
|
+
|
|
77
|
+
3. (once) Ensure your [git remotes](https://git-scm.com/book/en/v2/Git-Basics-Working-with-Remotes) are setup to use SSH. To fetch the up-to-date state of the official repo, it's useful to have an "upstream" remote configured:
|
|
78
|
+
```bash
|
|
79
|
+
git remote set-url origin git@github.com:<your-username>/EvaP.git
|
|
80
|
+
git remote add upstream git@github.com:e-valuation/EvaP.git
|
|
81
|
+
```
|
|
82
|
+
|
|
83
|
+
4. Create a branch (`git switch -c <your-branch-name>`), commit your changes (`git add` and `git commit`), and push them (`git push`). "Push" will ask you to specify an upstream branch (`git push -u origin <your-branch-name>`).
|
|
84
|
+
|
|
85
|
+
5. GitHub should now ask you whether you want to open a pull request ("PR"). If the PR solves an issue, use one of GitHub's [magic keywords](https://docs.github.com/en/issues/tracking-your-work-with-issues/linking-a-pull-request-to-an-issue) (like "fixes") in the pull request description to create a link between your PR and the issue. If necessary, please also provide a short summary of your changes in the description.
|
|
86
|
+
|
|
87
|
+
|
|
88
|
+
## License
|
|
89
|
+
|
|
90
|
+
MIT, see [LICENSE.md](LICENSE.md).
|
|
91
|
+
|
|
92
|
+
|
|
93
|
+
## Supported Browsers
|
|
94
|
+
|
|
95
|
+
The platform is only tested in Mozilla Firefox and Google Chrome. Other browsers might not render all pages correctly.
|
|
96
|
+
|
evap-2024.11.0/README.md
ADDED
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
# EvaP - Evaluation Platform
|
|
2
|
+
|
|
3
|
+
[](https://github.com/e-valuation/EvaP/actions?query=workflow%3A%22EvaP+Test+Suite%22)
|
|
4
|
+
[](https://app.codacy.com/gh/e-valuation/EvaP/dashboard)
|
|
5
|
+
[](https://codecov.io/gh/e-valuation/EvaP)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
## What is EvaP?
|
|
9
|
+
|
|
10
|
+
EvaP is the course evaluation system used internally at Hasso Plattner Institute at the University of Potsdam.
|
|
11
|
+
|
|
12
|
+
For the documentation, please see our [wiki](https://github.com/e-valuation/EvaP/wiki).
|
|
13
|
+
|
|
14
|
+
## Development Setup
|
|
15
|
+
|
|
16
|
+
We use [nix](https://nixos.org/) to manage the development environment.
|
|
17
|
+
|
|
18
|
+
1. Windows only: Install the Windows Subsystem for Linux (WSL) using `wsl --install -d Ubuntu-24.04` (you may have to restart your computer and run this command again). Enter the WSL environment using the `wsl` command. On your first entry, you need to choose a username and password - anything works (for example: username "evap", password "evap"). Perform the next step outside of `/mnt`, for example by going to your home directory (`cd ~`).
|
|
19
|
+
2. Install [git](https://git-scm.com/downloads). Run the following commands to clone and enter the EvaP repository:
|
|
20
|
+
```
|
|
21
|
+
git clone --recurse-submodules https://github.com/e-valuation/EvaP.git
|
|
22
|
+
cd EvaP
|
|
23
|
+
```
|
|
24
|
+
3. On Linux and WSL, install nix by running `./nix/setup-nix`. On MacOS, install nix using the [Determinate Nix Installer](https://install.determinate.systems/). Afterwards, if you get a permission error when running nix, restart your computer.
|
|
25
|
+
4. Start the needed background services for EvaP:
|
|
26
|
+
```
|
|
27
|
+
nix run .#services-full
|
|
28
|
+
```
|
|
29
|
+
5. Open a new terminal. Enter the development shell and start EvaP:
|
|
30
|
+
```
|
|
31
|
+
cd EvaP
|
|
32
|
+
nix develop
|
|
33
|
+
./manage.py run
|
|
34
|
+
```
|
|
35
|
+
6. Open your web browser at http://localhost:8000/ and login with email `evap@institution.example.com` and password `evap`.
|
|
36
|
+
|
|
37
|
+
To stop EvaP or the background services, press `Ctrl-C`.
|
|
38
|
+
To exit the development shell, press `Ctrl-D` or type `exit`.
|
|
39
|
+
|
|
40
|
+
## Contributing
|
|
41
|
+
|
|
42
|
+
We'd love to see contributions! PRs solving existing issues are most helpful to us. It's best if you ask to be assigned for the issue so we won't have multiple people working on the same issue. Feel free to open issues for bugs, setup problems, or feature requests. If you have other questions, feel free to contact the [organization members](https://github.com/orgs/e-valuation/people). You should probably branch off `main`, the branch `release` is used for stable revisions.
|
|
43
|
+
|
|
44
|
+
Before committing, run the following commands:
|
|
45
|
+
- `./manage.py test` (runs the test suite)
|
|
46
|
+
- `./manage.py lint` (runs linting)
|
|
47
|
+
- `./manage.py format` (applies automatic code formatting)
|
|
48
|
+
|
|
49
|
+
or, to combine all three, simply run `./manage.py precommit`.
|
|
50
|
+
|
|
51
|
+
You can also set up `pylint`, `isort`, `black` and `prettier` in your IDE to avoid doing this manually all the time.
|
|
52
|
+
|
|
53
|
+
### Creating a Pull Request (Workflow Suggestion)
|
|
54
|
+
1. (once) [Fork](https://github.com/e-valuation/EvaP/fork) the repository so you have a GitHub repo that you have write access to.
|
|
55
|
+
|
|
56
|
+
2. (once) Set up some authentication for GitHub that allows push access. A common option is using [SSH keys](https://docs.github.com/en/authentication/connecting-to-github-with-ssh/about-ssh), the remaining instructions assume an SSH key setup. An alternative is using the [GitHub CLI tool](https://cli.github.com/).
|
|
57
|
+
|
|
58
|
+
3. (once) Ensure your [git remotes](https://git-scm.com/book/en/v2/Git-Basics-Working-with-Remotes) are setup to use SSH. To fetch the up-to-date state of the official repo, it's useful to have an "upstream" remote configured:
|
|
59
|
+
```bash
|
|
60
|
+
git remote set-url origin git@github.com:<your-username>/EvaP.git
|
|
61
|
+
git remote add upstream git@github.com:e-valuation/EvaP.git
|
|
62
|
+
```
|
|
63
|
+
|
|
64
|
+
4. Create a branch (`git switch -c <your-branch-name>`), commit your changes (`git add` and `git commit`), and push them (`git push`). "Push" will ask you to specify an upstream branch (`git push -u origin <your-branch-name>`).
|
|
65
|
+
|
|
66
|
+
5. GitHub should now ask you whether you want to open a pull request ("PR"). If the PR solves an issue, use one of GitHub's [magic keywords](https://docs.github.com/en/issues/tracking-your-work-with-issues/linking-a-pull-request-to-an-issue) (like "fixes") in the pull request description to create a link between your PR and the issue. If necessary, please also provide a short summary of your changes in the description.
|
|
67
|
+
|
|
68
|
+
|
|
69
|
+
## License
|
|
70
|
+
|
|
71
|
+
MIT, see [LICENSE.md](LICENSE.md).
|
|
72
|
+
|
|
73
|
+
|
|
74
|
+
## Supported Browsers
|
|
75
|
+
|
|
76
|
+
The platform is only tested in Mozilla Firefox and Google Chrome. Other browsers might not render all pages correctly.
|
|
File without changes
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import random
|
|
2
|
+
|
|
3
|
+
from django.conf import settings
|
|
4
|
+
from django.utils.translation import get_language
|
|
5
|
+
|
|
6
|
+
from evap.evaluation.forms import NotebookForm
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
def slogan(request):
|
|
10
|
+
if get_language() == "de":
|
|
11
|
+
return {"slogan": random.choice(settings.SLOGANS_DE)} # nosec
|
|
12
|
+
return {"slogan": random.choice(settings.SLOGANS_EN)} # nosec
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
def debug(request):
|
|
16
|
+
return {"debug": settings.DEBUG}
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
def notebook_form(request):
|
|
20
|
+
if request.user.is_authenticated:
|
|
21
|
+
return {"notebook_form": NotebookForm(instance=request.user)}
|
|
22
|
+
return {}
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
def allow_anonymous_feedback_messages(request):
|
|
26
|
+
return {"allow_anonymous_feedback_messages": settings.ALLOW_ANONYMOUS_FEEDBACK_MESSAGES}
|
|
File without changes
|
|
@@ -0,0 +1,125 @@
|
|
|
1
|
+
from datetime import datetime
|
|
2
|
+
|
|
3
|
+
from django import forms
|
|
4
|
+
from django.db.models import Q
|
|
5
|
+
from django.forms.widgets import CheckboxSelectMultiple
|
|
6
|
+
from django.utils.translation import gettext_lazy as _
|
|
7
|
+
|
|
8
|
+
from evap.evaluation.forms import UserModelChoiceField, UserModelMultipleChoiceField
|
|
9
|
+
from evap.evaluation.models import Course, Evaluation, Questionnaire, UserProfile
|
|
10
|
+
from evap.evaluation.tools import vote_end_datetime
|
|
11
|
+
from evap.staff.forms import ContributionForm
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
class EvaluationForm(forms.ModelForm):
|
|
15
|
+
general_questionnaires: "forms.ModelMultipleChoiceField[Questionnaire]" = forms.ModelMultipleChoiceField(
|
|
16
|
+
queryset=None, required=False, widget=CheckboxSelectMultiple, label=_("General questionnaires")
|
|
17
|
+
)
|
|
18
|
+
course = forms.ModelChoiceField(Course.objects.all(), disabled=True, required=False, widget=forms.HiddenInput())
|
|
19
|
+
name_de_field = forms.CharField(label=_("Name (German)"), disabled=True, required=False)
|
|
20
|
+
name_en_field = forms.CharField(label=_("Name (English)"), disabled=True, required=False)
|
|
21
|
+
|
|
22
|
+
class Meta:
|
|
23
|
+
model = Evaluation
|
|
24
|
+
fields = (
|
|
25
|
+
"name_de_field",
|
|
26
|
+
"name_en_field",
|
|
27
|
+
"vote_start_datetime",
|
|
28
|
+
"vote_end_date",
|
|
29
|
+
"participants",
|
|
30
|
+
"general_questionnaires",
|
|
31
|
+
"course",
|
|
32
|
+
)
|
|
33
|
+
field_classes = {
|
|
34
|
+
"participants": UserModelMultipleChoiceField,
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
def __init__(self, *args, **kwargs):
|
|
38
|
+
super().__init__(*args, **kwargs)
|
|
39
|
+
|
|
40
|
+
self.fields["name_de_field"].initial = self.instance.full_name_de
|
|
41
|
+
self.fields["name_en_field"].initial = self.instance.full_name_en
|
|
42
|
+
|
|
43
|
+
self.fields["general_questionnaires"].queryset = (
|
|
44
|
+
Questionnaire.objects.general_questionnaires()
|
|
45
|
+
.filter(Q(visibility=Questionnaire.Visibility.EDITORS) | Q(contributions__evaluation=self.instance))
|
|
46
|
+
.distinct()
|
|
47
|
+
.prefetch_related("questions")
|
|
48
|
+
)
|
|
49
|
+
|
|
50
|
+
self.fields["vote_start_datetime"].localize = True
|
|
51
|
+
self.fields["vote_end_date"].localize = True
|
|
52
|
+
|
|
53
|
+
queryset = UserProfile.objects.exclude(is_active=False)
|
|
54
|
+
if self.instance.pk is not None:
|
|
55
|
+
queryset = (queryset | self.instance.participants.all()).distinct()
|
|
56
|
+
self.fields["participants"].queryset = queryset
|
|
57
|
+
|
|
58
|
+
if self.instance.general_contribution:
|
|
59
|
+
self.fields["general_questionnaires"].initial = [
|
|
60
|
+
q.pk for q in self.instance.general_contribution.questionnaires.all()
|
|
61
|
+
]
|
|
62
|
+
|
|
63
|
+
if not self.instance.allow_editors_to_edit:
|
|
64
|
+
for field in self._meta.fields:
|
|
65
|
+
self.fields[field].disabled = True
|
|
66
|
+
|
|
67
|
+
def clean(self):
|
|
68
|
+
super().clean()
|
|
69
|
+
|
|
70
|
+
vote_start_datetime = self.cleaned_data.get("vote_start_datetime")
|
|
71
|
+
vote_end_date = self.cleaned_data.get("vote_end_date")
|
|
72
|
+
if vote_start_datetime and vote_end_date and vote_start_datetime.date() > vote_end_date:
|
|
73
|
+
self.add_error("vote_start_datetime", "")
|
|
74
|
+
self.add_error("vote_end_date", _("The first day of evaluation must be before the last one."))
|
|
75
|
+
|
|
76
|
+
def clean_vote_end_date(self):
|
|
77
|
+
vote_end_date = self.cleaned_data.get("vote_end_date")
|
|
78
|
+
|
|
79
|
+
# The actual deadline is EVALUATION_END_OFFSET_HOURS:00 AM of the day after vote_end_date.
|
|
80
|
+
# Therefore an evaluation date 24h + EVALUATION_END_OFFSET_HOURS in the past would technically still be in the future.
|
|
81
|
+
if vote_end_datetime(vote_end_date) < datetime.now():
|
|
82
|
+
raise forms.ValidationError(_("The last day of evaluation must be in the future."))
|
|
83
|
+
|
|
84
|
+
return vote_end_date
|
|
85
|
+
|
|
86
|
+
def clean_general_questionnaires(self):
|
|
87
|
+
# Ensure all locked questionnaires still have the same status (included or not)
|
|
88
|
+
not_locked = []
|
|
89
|
+
if self.cleaned_data.get("general_questionnaires"):
|
|
90
|
+
not_locked = list(self.cleaned_data.get("general_questionnaires").filter(is_locked=False))
|
|
91
|
+
|
|
92
|
+
locked = list(self.instance.general_contribution.questionnaires.filter(is_locked=True))
|
|
93
|
+
|
|
94
|
+
if not not_locked + locked:
|
|
95
|
+
self.add_error("general_questionnaires", _("At least one questionnaire must be selected."))
|
|
96
|
+
|
|
97
|
+
return not_locked + locked
|
|
98
|
+
|
|
99
|
+
def save(self, *args, **kw):
|
|
100
|
+
evaluation = super().save(*args, **kw)
|
|
101
|
+
evaluation.general_contribution.questionnaires.set(self.cleaned_data.get("general_questionnaires"))
|
|
102
|
+
return evaluation
|
|
103
|
+
|
|
104
|
+
|
|
105
|
+
class EditorContributionForm(ContributionForm):
|
|
106
|
+
def __init__(self, *args, **kwargs):
|
|
107
|
+
super().__init__(*args, **kwargs)
|
|
108
|
+
|
|
109
|
+
existing_contributor_pk = self.instance.contributor.pk if self.instance.contributor else None
|
|
110
|
+
|
|
111
|
+
self.fields["questionnaires"].queryset = (
|
|
112
|
+
Questionnaire.objects.contributor_questionnaires()
|
|
113
|
+
.filter(Q(visibility=Questionnaire.Visibility.EDITORS) | Q(contributions__evaluation=self.evaluation))
|
|
114
|
+
.distinct()
|
|
115
|
+
.prefetch_related("questions")
|
|
116
|
+
)
|
|
117
|
+
self.fields["contributor"].queryset = UserProfile.objects.filter(
|
|
118
|
+
(Q(is_active=True) & Q(is_proxy_user=False)) | Q(pk=existing_contributor_pk)
|
|
119
|
+
)
|
|
120
|
+
|
|
121
|
+
|
|
122
|
+
class DelegateSelectionForm(forms.Form):
|
|
123
|
+
delegate_to = UserModelChoiceField(
|
|
124
|
+
label=_("Delegate to"), queryset=UserProfile.objects.exclude(is_active=False).exclude(is_proxy_user=True)
|
|
125
|
+
)
|
|
@@ -0,0 +1,154 @@
|
|
|
1
|
+
{% extends 'base.html' %}
|
|
2
|
+
|
|
3
|
+
{% load evaluation_filters %}
|
|
4
|
+
|
|
5
|
+
{% block title %}{% translate 'Your EvaP' %} - {{ block.super }}{% endblock %}
|
|
6
|
+
|
|
7
|
+
{% block breadcrumb_bar %}
|
|
8
|
+
<div class="breadcrumb-bar">
|
|
9
|
+
<ul class="breadcrumb">
|
|
10
|
+
<li class="breadcrumb-item">{{ evaluation.course.semester.name }}</li>
|
|
11
|
+
<li class="breadcrumb-item">{{ evaluation.full_name }}</li>
|
|
12
|
+
</ul>
|
|
13
|
+
</div>
|
|
14
|
+
{% endblock %}
|
|
15
|
+
|
|
16
|
+
{% block content %}
|
|
17
|
+
{{ block.super }}
|
|
18
|
+
|
|
19
|
+
<div class="callout callout-info small">
|
|
20
|
+
{% if editable %}
|
|
21
|
+
{% blocktranslate %}Please review the evaluation's details below, add all contributors and select suitable questionnaires. Once everything is okay, please approve the evaluation on the bottom of the page.{% endblocktranslate %}
|
|
22
|
+
{% else %}
|
|
23
|
+
{% blocktranslate %}You cannot edit this evaluation because it has already been approved.{% endblocktranslate %}
|
|
24
|
+
{% endif %}
|
|
25
|
+
</div>
|
|
26
|
+
<h3>
|
|
27
|
+
{{ evaluation.full_name }} ({{ evaluation.course.semester.name }})
|
|
28
|
+
</h3>
|
|
29
|
+
|
|
30
|
+
<form method="POST" class="form-horizontal multiselect-form tomselectform" id="evaluation-form">
|
|
31
|
+
{% csrf_token %}
|
|
32
|
+
<div class="card mb-3">
|
|
33
|
+
<div class="card-body">
|
|
34
|
+
<h5 class="card-title">{% translate 'Course data' %}</h5>
|
|
35
|
+
<div class="d-flex">
|
|
36
|
+
<label class="col-md-3 pe-4 form-label">{% translate 'Name (German)' %}</label>
|
|
37
|
+
<div class="col-md-7 form-static-text">{{ evaluation.course.name_de }}</div>
|
|
38
|
+
</div>
|
|
39
|
+
<div class="d-flex">
|
|
40
|
+
<label class="col-md-3 pe-4 form-label">{% translate 'Name (English)' %}</label>
|
|
41
|
+
<div class="col-md-7 form-static-text">{{ evaluation.course.name_en }}</div>
|
|
42
|
+
</div>
|
|
43
|
+
<div class="d-flex">
|
|
44
|
+
<label class="col-md-3 pe-4 form-label">{% translate 'Responsibles' %}</label>
|
|
45
|
+
<div class="col-md-7 form-static-text">{{ evaluation.course.responsibles_names }}</div>
|
|
46
|
+
</div>
|
|
47
|
+
<div class="d-flex">
|
|
48
|
+
<label class="col-md-3 pe-4 form-label">{% translate 'Programs' %}</label>
|
|
49
|
+
<div class="col-md-7 form-static-text">
|
|
50
|
+
{% for program in evaluation.course.programs.all %}
|
|
51
|
+
<span class="badge bg-primary">{{ program }}</span>
|
|
52
|
+
{% endfor %}
|
|
53
|
+
</div>
|
|
54
|
+
</div>
|
|
55
|
+
<div class="d-flex">
|
|
56
|
+
<label class="col-md-3 pe-4 form-label">{% translate 'Course type' %}</label>
|
|
57
|
+
<div class="col-md-7 form-static-text">
|
|
58
|
+
<span class="badge bg-secondary">{{ evaluation.course.type }}</span>
|
|
59
|
+
</div>
|
|
60
|
+
</div>
|
|
61
|
+
</div>
|
|
62
|
+
</div>
|
|
63
|
+
<div class="card mb-3">
|
|
64
|
+
<div class="card-body table-responsive">
|
|
65
|
+
<div class="d-flex">
|
|
66
|
+
<h5 class="card-title me-auto">{% translate 'Evaluation data' %}</h5>
|
|
67
|
+
{% if evaluation.allow_editors_to_edit %}
|
|
68
|
+
<div>
|
|
69
|
+
<button type="button" class="btn btn-sm btn-light mb-3 createAccountRequestModalShowButton">
|
|
70
|
+
{% translate 'Request creation of new account' %}
|
|
71
|
+
</button>
|
|
72
|
+
</div>
|
|
73
|
+
{% else %}
|
|
74
|
+
<div>
|
|
75
|
+
<button type="button" class="btn btn-sm btn-light changeEvaluationRequestModalShowButton">
|
|
76
|
+
{% translate 'Request changes' %}
|
|
77
|
+
</button>
|
|
78
|
+
</div>
|
|
79
|
+
{% endif %}
|
|
80
|
+
</div>
|
|
81
|
+
{% include 'evaluation_form_general_questionnaires.html' with evaluation_form=form %}
|
|
82
|
+
</div>
|
|
83
|
+
</div>
|
|
84
|
+
<div class="card mb-3">
|
|
85
|
+
<div class="card-body table-responsive">
|
|
86
|
+
{% include 'contribution_formset.html' with formset=formset staff=False editable=editable %}
|
|
87
|
+
</div>
|
|
88
|
+
</div>
|
|
89
|
+
|
|
90
|
+
<div class="card card-submit-area card-submit-area-3 text-center mb-3">
|
|
91
|
+
<div class="card-body">
|
|
92
|
+
{% if editable %}
|
|
93
|
+
<button name="operation" value="preview" type="submit" class="btn btn-light">{% translate 'Preview' %}</button>
|
|
94
|
+
<button name="operation" value="save" type="submit" class="btn btn-primary">{% translate 'Save' %}</button>
|
|
95
|
+
|
|
96
|
+
<confirmation-modal type="submit" name="operation" value="approve">
|
|
97
|
+
<span slot="title">{% translate 'Approve evaluation' %}</span>
|
|
98
|
+
<span slot="action-text">{% translate 'Approve evaluation' %}</span>
|
|
99
|
+
<span slot="question">
|
|
100
|
+
{% blocktranslate trimmed %}
|
|
101
|
+
Do you want to approve this evaluation? This will allow the evaluation team to proceed with the preparation, but you won't be able to make any further changes.
|
|
102
|
+
{% endblocktranslate %}
|
|
103
|
+
</span>
|
|
104
|
+
|
|
105
|
+
<button slot="show-button" type="button" class="btn btn-success">{% translate 'Save and approve' %}</button>
|
|
106
|
+
</confirmation-modal>
|
|
107
|
+
{% endif %}
|
|
108
|
+
<a href="{% url 'contributor:index' %}" class="btn btn-light">{% if edit %}{% translate 'Cancel' %}{% else %}{% translate 'Back' %}{% endif %}</a>
|
|
109
|
+
</div>
|
|
110
|
+
</div>
|
|
111
|
+
</form>
|
|
112
|
+
|
|
113
|
+
{% if preview_html %}
|
|
114
|
+
<div class="modal fade" id="previewModal" tabindex="-1" role="dialog" aria-labelledby="previewModalLabel" aria-hidden="true">
|
|
115
|
+
<div class="modal-dialog modal-xl" role="document">
|
|
116
|
+
<div class="modal-content">
|
|
117
|
+
<div class="modal-header">
|
|
118
|
+
<h5 class="modal-title" id="previewModalLabel">{% translate 'Preview' %}</h5>
|
|
119
|
+
<button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button>
|
|
120
|
+
</div>
|
|
121
|
+
<div class="modal-body">
|
|
122
|
+
{{ preview_html }}
|
|
123
|
+
</div>
|
|
124
|
+
<div class="modal-footer">
|
|
125
|
+
<button type="button" class="btn btn-light" data-bs-dismiss="modal">{% translate 'Close' %}</button>
|
|
126
|
+
</div>
|
|
127
|
+
</div>
|
|
128
|
+
</div>
|
|
129
|
+
</div>
|
|
130
|
+
{% endif %}
|
|
131
|
+
{% endblock %}
|
|
132
|
+
|
|
133
|
+
{% block modals %}
|
|
134
|
+
{{ block.super }}
|
|
135
|
+
|
|
136
|
+
{% blocktranslate asvar title with evaluation_name=evaluation.full_name %}Request account creation for {{ evaluation_name }}{% endblocktranslate %}
|
|
137
|
+
{% translate 'Please tell us which new account we should create. We need the name and email for all new accounts.' as teaser %}
|
|
138
|
+
{% include 'contact_modal.html' with modal_id='createAccountRequestModal' user=request.user title=title teaser=teaser %}
|
|
139
|
+
|
|
140
|
+
{% blocktranslate asvar title with evaluation_name=evaluation.full_name %}Request evaluation changes for {{ evaluation_name }}{% endblocktranslate %}
|
|
141
|
+
{% translate 'Please tell us what changes to the evaluation we should make.' as teaser %}
|
|
142
|
+
{% include 'contact_modal.html' with modal_id='changeEvaluationRequestModal' user=request.user title=title teaser=teaser %}
|
|
143
|
+
{% endblock %}
|
|
144
|
+
|
|
145
|
+
{% block additional_javascript %}
|
|
146
|
+
{% include 'evap_evaluation_edit_js.html' %}
|
|
147
|
+
|
|
148
|
+
{% if preview_html %}
|
|
149
|
+
<script type="text/javascript">
|
|
150
|
+
var previewModal = new bootstrap.Modal(document.getElementById('previewModal'));
|
|
151
|
+
previewModal.show();
|
|
152
|
+
</script>
|
|
153
|
+
{% endif %}
|
|
154
|
+
{% endblock %}
|