From aa22011a9e61b47d368562f4314c87ee972762e2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michaela=20Br=C3=BCckner?= Date: Wed, 10 Jan 2024 12:44:53 +0100 Subject: initial commit, re #3616 --- app/views/course/wizard/step.php | 4 ++ .../course/wizard/steps/studygroups/index.php | 79 ++++++++++++++++++++++ .../coursewizardsteps/BasicDataWizardStep.php | 3 +- 3 files changed, 85 insertions(+), 1 deletion(-) create mode 100644 app/views/course/wizard/steps/studygroups/index.php diff --git a/app/views/course/wizard/step.php b/app/views/course/wizard/step.php index 0fe1dfc..c32a09b 100644 --- a/app/views/course/wizard/step.php +++ b/app/views/course/wizard/step.php @@ -23,11 +23,15 @@ !empty($dialog) ? ['data-dialog' => 'size=50%'] : [] ) ?> + 'size=50%'] : [] ) ?> + + + diff --git a/app/views/course/wizard/steps/studygroups/index.php b/app/views/course/wizard/steps/studygroups/index.php new file mode 100644 index 0000000..e270033 --- /dev/null +++ b/app/views/course/wizard/steps/studygroups/index.php @@ -0,0 +1,79 @@ + + + + + + + 1) : ?> + + + + + + + + + + + + + + + +have_perm('admin')) : ?> +

+ +

+ +STUDYGROUP_TERMS) ?> + + + + + + + $assigned) : ?> + + diff --git a/lib/classes/coursewizardsteps/BasicDataWizardStep.php b/lib/classes/coursewizardsteps/BasicDataWizardStep.php index 4f424e8..f169af9 100644 --- a/lib/classes/coursewizardsteps/BasicDataWizardStep.php +++ b/lib/classes/coursewizardsteps/BasicDataWizardStep.php @@ -29,8 +29,9 @@ class BasicDataWizardStep implements CourseWizardStep { // Load template from step template directory. $factory = new Flexi_TemplateFactory($GLOBALS['STUDIP_BASE_PATH'] . '/app/views/course/wizard/steps'); + if (!empty($values[__CLASS__]['studygroup'])) { - $tpl = $factory->open('basicdata/index_studygroup'); + $tpl = $factory->open('studygroups/index'); $values[__CLASS__]['lecturers'][$GLOBALS['user']->id] = 1; } else { $tpl = $factory->open('basicdata/index'); -- cgit v1.0