mirror of
https://github.com/FH-Complete/FHC-Core.git
synced 2026-10-12 06:54:04 +00:00
add legacy bis links to app menu and needed phrases, consistently use appMenuLvPlanungItems computed for LvPlanung app menu extra items
This commit is contained in:
@@ -218,6 +218,28 @@ export default {
|
||||
|
||||
return extraItems;
|
||||
},
|
||||
appMenuBisItems() {
|
||||
const extraItems = [];
|
||||
|
||||
if (this.studiengangKz !== undefined) {
|
||||
const studiengang_kz = String(this.studiengangKz);
|
||||
|
||||
extraItems.push({
|
||||
link: FHC_JS_DATA_STORAGE_OBJECT.app_root
|
||||
+ 'vilesci/bis/studentenmeldung.php?'
|
||||
+ 'stg_kz=' + studiengang_kz,
|
||||
description: 'stv/bis_stud_meldung'
|
||||
});
|
||||
extraItems.push({
|
||||
link: FHC_JS_DATA_STORAGE_OBJECT.app_root
|
||||
+ 'system/checkStudenten.php?'
|
||||
+ 'stg_kz=' + studiengang_kz,
|
||||
description: 'stv/bis_stud_plausicheck'
|
||||
});
|
||||
}
|
||||
|
||||
return extraItems;
|
||||
},
|
||||
linkRt(){
|
||||
return FHC_JS_DATA_STORAGE_OBJECT.app_root + '/vilesci/stammdaten/reihungstestverwaltung.php'
|
||||
},
|
||||
@@ -403,6 +425,9 @@ export default {
|
||||
showAlertNoGroupChosen(){
|
||||
this.$fhcAlert.alertError(this.$p.t('ui', 'alert_chooseGroupSem'));
|
||||
},
|
||||
showAlertNoDegreeProgramChosen(){
|
||||
this.$fhcAlert.alertError(this.$p.t('ui', 'alert_chooseDegreeProgram'));
|
||||
},
|
||||
showMenu(refName) {
|
||||
bootstrap.Dropdown.getOrCreateInstance(this.$refs[refName]).show();
|
||||
},
|
||||
@@ -615,13 +640,13 @@ export default {
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
<li :class="{ dropend: appMenuExtraItems.length }"
|
||||
@mouseenter="appMenuExtraItems.length && showMenu('lvPlanungToggle')"
|
||||
@mouseleave="appMenuExtraItems.length && hideMenu('lvPlanungToggle')"
|
||||
<li :class="{ dropend: appMenuLvPlanungItems.length }"
|
||||
@mouseenter="appMenuLvPlanungItems.length && showMenu('lvPlanungToggle')"
|
||||
@mouseleave="appMenuLvPlanungItems.length && hideMenu('lvPlanungToggle')"
|
||||
>
|
||||
<a
|
||||
ref="lvPlanungToggle"
|
||||
v-if="appMenuExtraItems.length"
|
||||
v-if="appMenuLvPlanungItems.length"
|
||||
class="dropdown-toggle"
|
||||
href="#"
|
||||
role="button"
|
||||
@@ -638,7 +663,7 @@ export default {
|
||||
>
|
||||
{{ $p.t('stv/lvplanung') }}
|
||||
</a>
|
||||
<ul v-if="appMenuExtraItems.length" class="dropdown-menu p-0">
|
||||
<ul v-if="appMenuLvPlanungItems.length" class="dropdown-menu p-0">
|
||||
<li
|
||||
v-for="(item, key) in appMenuLvPlanungItems"
|
||||
:key="key"
|
||||
@@ -665,6 +690,42 @@ export default {
|
||||
{{ $p.t('stv/studienverlauf') }}
|
||||
</a>
|
||||
</li>
|
||||
|
||||
<li :class="{ dropend: appMenuBisItems.length }"
|
||||
@mouseenter="appMenuBisItems.length && showMenu('bisToggle')"
|
||||
@mouseleave="appMenuBisItems.length && hideMenu('bisToggle')"
|
||||
>
|
||||
<a
|
||||
ref="bisToggle"
|
||||
v-if="appMenuBisItems.length"
|
||||
class="dropdown-toggle"
|
||||
href="#"
|
||||
role="button"
|
||||
data-bs-toggle="dropdown"
|
||||
aria-expanded="false"
|
||||
data-bs-popper-config='{"strategy":"fixed"}'
|
||||
>
|
||||
{{ $p.t('stv/bis_stud') }}
|
||||
</a>
|
||||
<a
|
||||
v-else
|
||||
href="#"
|
||||
@click.prevent="showAlertNoDegreeProgramChosen"
|
||||
>
|
||||
{{ $p.t('stv/bis_stud') }}
|
||||
</a>
|
||||
<ul v-if="appMenuBisItems.length" class="dropdown-menu p-0">
|
||||
<li
|
||||
v-for="(item, key) in appMenuBisItems"
|
||||
:key="key"
|
||||
>
|
||||
<a class="dropdown-item" :href="item.link" target="_blank">
|
||||
{{ $p.t(item.description) }}
|
||||
</a>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
|
||||
</app-menu>
|
||||
</div>
|
||||
</aside>
|
||||
|
||||
@@ -62183,6 +62183,88 @@ I have been informed that I am under no obligation to consent to the transmissio
|
||||
)
|
||||
)
|
||||
),
|
||||
// StudVw legacy Bis Links begin
|
||||
array(
|
||||
'app' => 'core',
|
||||
'category' => 'stv',
|
||||
'phrase' => 'bis_stud',
|
||||
'insertvon' => 'system',
|
||||
'phrases' => array(
|
||||
array(
|
||||
'sprache' => 'German',
|
||||
'text' => 'BIS (Studierende)',
|
||||
'description' => '',
|
||||
'insertvon' => 'system'
|
||||
),
|
||||
array(
|
||||
'sprache' => 'English',
|
||||
'text' => 'BIS (Students)',
|
||||
'description' => '',
|
||||
'insertvon' => 'system'
|
||||
)
|
||||
)
|
||||
),
|
||||
array(
|
||||
'app' => 'core',
|
||||
'category' => 'stv',
|
||||
'phrase' => 'bis_stud_meldung',
|
||||
'insertvon' => 'system',
|
||||
'phrases' => array(
|
||||
array(
|
||||
'sprache' => 'German',
|
||||
'text' => 'Meldung generieren (Studierende)',
|
||||
'description' => '',
|
||||
'insertvon' => 'system'
|
||||
),
|
||||
array(
|
||||
'sprache' => 'English',
|
||||
'text' => 'Generate Report (Students)',
|
||||
'description' => '',
|
||||
'insertvon' => 'system'
|
||||
)
|
||||
)
|
||||
),
|
||||
array(
|
||||
'app' => 'core',
|
||||
'category' => 'stv',
|
||||
'phrase' => 'bis_stud_plausicheck',
|
||||
'insertvon' => 'system',
|
||||
'phrases' => array(
|
||||
array(
|
||||
'sprache' => 'German',
|
||||
'text' => 'Plausibilitätsprüfung (Studierende)',
|
||||
'description' => '',
|
||||
'insertvon' => 'system'
|
||||
),
|
||||
array(
|
||||
'sprache' => 'English',
|
||||
'text' => 'Plausibility Check (Students)',
|
||||
'description' => '',
|
||||
'insertvon' => 'system'
|
||||
)
|
||||
)
|
||||
),
|
||||
array(
|
||||
'app' => 'core',
|
||||
'category' => 'ui',
|
||||
'phrase' => 'alert_chooseDegreeProgram',
|
||||
'insertvon' => 'system',
|
||||
'phrases' => array(
|
||||
array(
|
||||
'sprache' => 'German',
|
||||
'text' => 'Bitte einen Studiengang auswählen!',
|
||||
'description' => '',
|
||||
'insertvon' => 'system'
|
||||
),
|
||||
array(
|
||||
'sprache' => 'English',
|
||||
'text' => 'Please select a degree program!',
|
||||
'description' => '',
|
||||
'insertvon' => 'system'
|
||||
)
|
||||
)
|
||||
),
|
||||
// StudVw legacy Bis Links ende
|
||||
);
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user