Wenn Benotung deaktiviert ist, dann wird der Gesamtnote Menüpunkt im CIS deaktiviert

This commit is contained in:
oesi
2017-03-22 13:21:36 +01:00
parent 09637ce159
commit d9afd486ce
3 changed files with 24 additions and 9 deletions
+22 -8
View File
@@ -457,14 +457,28 @@ function checkZeilenUmbruch()
//Gesamtnote
if($is_lector && ((!defined('CIS_LEHRVERANSTALTUNG_GESAMTNOTE_ANZEIGEN') || CIS_LEHRVERANSTALTUNG_GESAMTNOTE_ANZEIGEN) && $angemeldet))
{
$menu[]=array
(
'id'=>'core_menu_gesamtnote',
'position'=>'80',
'name'=>$p->t('lehre/gesamtnote'),
'icon'=>'../../../skin/images/button_endnote.png',
'link'=>'benotungstool/lvgesamtnoteverwalten.php?lvid='.urlencode($lvid).'&stsem='.urlencode($angezeigtes_stsem)
);
if($lv_obj->benotung)
{
$menu[]=array
(
'id'=>'core_menu_gesamtnote',
'position'=>'80',
'name'=>$p->t('lehre/gesamtnote'),
'icon'=>'../../../skin/images/button_endnote.png',
'link'=>'benotungstool/lvgesamtnoteverwalten.php?lvid='.urlencode($lvid).'&stsem='.urlencode($angezeigtes_stsem)
);
}
else
{
$menu[]=array
(
'id'=>'core_menu_gesamtnote',
'position'=>'80',
'name'=>$p->t('lehre/gesamtnote'),
'icon'=>'../../../skin/images/button_endnote.png',
'text'=>$p->t('lehre/noteneingabedeaktiviert')
);
}
}
// Studentenupload
+1
View File
@@ -44,4 +44,5 @@ $this->phrasen['lehre/nichtzugeteilt']='Sie sind nicht zu dieser Lehrveranstaltu
$this->phrasen['lehre/studienordnung']='Studienordnung';
$this->phrasen['lehre/studienplan']='Studienplan';
$this->phrasen['lehre/noteneingabedeaktiviert']='Noteneingabe deaktiviert';
?>
+1 -1
View File
@@ -34,5 +34,5 @@ $this->phrasen['lehre/mail']='E-Mail to students';
$this->phrasen['lehre/keinMailverteiler']='There is no e-mail distribution list for the group(s) %s! The students in these groups will not receive an e-mail.';
$this->phrasen['lehre/pinboard']='Pinboard';
$this->phrasen['lehre/noteneingabedeaktiviert']='Grades deactivated';
?>