add Studienverlauf to AppMenue

This commit is contained in:
ma0068
2026-04-20 11:36:54 +02:00
parent df9edc36e0
commit 903f3b99b3
2 changed files with 54 additions and 11 deletions
+14 -11
View File
@@ -189,19 +189,16 @@ export default {
+ '&orgform=' + orgform,
description: 'stv/grade_report_html'
});
extraItems.push({
link: FHC_JS_DATA_STORAGE_OBJECT.app_root
+ 'index.ci.php/person/gradelist/index/'
+ '&student_uid=' + 'mb24b025',
description: 'Studienverlauf'
});
}
return extraItems;
},
/* linkGradeList(){
return FHC_JS_DATA_STORAGE_OBJECT.app_root + 'index.ci.php/person/gradelist/index/mb24b025');
}*/
selected_uid(){
return this.selected?.[this.selected.length - 1]?.uid ?? null;
},
linkGradeList(){
return FHC_JS_DATA_STORAGE_OBJECT.app_root + 'index.ci.php/person/gradelist/index/' + this.selected_uid
},
},
watch: {
'url_studiensemester_kurzbz': function (newVal, oldVal) {
@@ -440,6 +437,9 @@ export default {
},
deleteCustomFilter(){
this.$refs.stvList.resetFilter();
},
showAlertNoSelectedStudent(){
this.$fhcAlert.alertError(this.$p.t('ui', 'alert_chooseStudent'));
}
},
created() {
@@ -639,8 +639,11 @@ export default {
</ul>
</li>
<li>
<a :href="linkGradeList" target="_blank">
Studienverlauf
<a v-if="selected_uid" :href="linkGradeList" target="_blank">
{{ $p.t('stv/studienverlauf') }}
</a>
<a v-else href="#" @click.prevent="showAlertNoSelectedStudent">
{{ $p.t('stv/studienverlauf') }}
</a>
</li>
</app-menu>
+40
View File
@@ -58177,6 +58177,46 @@ I have been informed that I am under no obligation to consent to the transmissio
)
),
// ### Phrases Dashboard Admin END
array(
'app' => 'core',
'category' => 'ui',
'phrase' => 'alert_chooseStudent',
'insertvon' => 'system',
'phrases' => array(
array(
'sprache' => 'German',
'text' => 'Bitte eine/n Studierende/n markieren!',
'description' => '',
'insertvon' => 'system'
),
array(
'sprache' => 'English',
'text' => 'Please select a student!',
'description' => '',
'insertvon' => 'system'
)
)
),
array(
'app' => 'core',
'category' => 'stv',
'phrase' => 'studienverlauf',
'insertvon' => 'system',
'phrases' => array(
array(
'sprache' => 'German',
'text' => 'Studienverlauf',
'description' => '',
'insertvon' => 'system'
),
array(
'sprache' => 'English',
'text' => 'Gradelist',
'description' => '',
'insertvon' => 'system'
)
)
),
);