Skip to content
Snippets Groups Projects
Commit 1716e9bf authored by Thomas Hackl's avatar Thomas Hackl
Browse files

Resolve "Mehrfachzuordnung der Studienbereiche hat keine Aktion/Selektion"

Closes #2955

Merge request studip/studip!1988
parent a88c414c
No related branches found
No related tags found
No related merge requests found
......@@ -486,6 +486,13 @@ class Admin_CoursesController extends AuthenticatedController
break;
case 20: //Notiz
break;
case 21: //Mehrfachzuordnung Studienbereiche
$data['buttons_top'] = '<label>' . _('Alle auswählen') .
'<input type="checkbox" data-proxyfor=".course-admin td:last-child :checkbox"></label>';
$data['buttons_bottom'] = (string) \Studip\Button::createAccept(
_('Mehrfachzuordnung von Studienbereichen'), 'batch_assign_semtree',
['formaction' => URLHelper::getURL('dispatch.php/admin/tree/batch_assign_semtree')]);
break;
default:
foreach (PluginManager::getInstance()->getPlugins('AdminCourseAction') as $plugin) {
if ($GLOBALS['user']->cfg->MY_COURSES_ACTION_AREA === get_class($plugin)) {
......@@ -722,6 +729,11 @@ class Admin_CoursesController extends AuthenticatedController
]
);
break;
case 21: //Mehrfachzuweisung Studienbereiche
$template = $tf->open('admin/courses/batch_assign_semtree');
$template->course = $course;
$d['action'] = $template->render();
break;
default:
foreach (PluginManager::getInstance()->getPlugins('AdminCourseAction') as $plugin) {
if ($GLOBALS['user']->cfg->MY_COURSES_ACTION_AREA === get_class($plugin)) {
......
......@@ -4,5 +4,7 @@
*/
?>
<label>
<input name="assign_semtree[]" type="checkbox" value="<?= htmlReady($course->id) ?>">
<input name="assign_semtree[]" type="checkbox" value="<?= htmlReady($course->id) ?>"
aria-label="<?= htmlReady(sprintf(_('Veranstaltung %s mehreren Studienbereichen zuordnen'),
$course->getFullName())) ?>">
</label>
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment