From 42b750e120013770c7fb300c0708493ed8f54e2d Mon Sep 17 00:00:00 2001 From: Harald Bamberger Date: Wed, 28 May 2025 17:31:24 +0200 Subject: [PATCH] add selectedcount add phrases for counts label --- .../Stv/Studentenverwaltung/List.js | 23 ++++++- system/phrasesupdate.php | 62 +++++++++++++++++++ 2 files changed, 83 insertions(+), 2 deletions(-) diff --git a/public/js/components/Stv/Studentenverwaltung/List.js b/public/js/components/Stv/Studentenverwaltung/List.js index c5e029b7a..ed81f8e91 100644 --- a/public/js/components/Stv/Studentenverwaltung/List.js +++ b/public/js/components/Stv/Studentenverwaltung/List.js @@ -154,7 +154,8 @@ export default { filterKontoCount0: undefined, filterKontoMissingCounter: undefined, count: 0, - filteredcount: 0 + filteredcount: 0, + selectedcount: 0 } }, methods: { @@ -165,6 +166,7 @@ export default { this.$refs.new.open(); }, rowSelectionChanged(data) { + this.selectedcount = data.length; this.lastSelected = this.selected; this.$emit('update:selected', data); }, @@ -279,6 +281,23 @@ export default { } } }, + computed: { + countsToHTML: function() { + return this.$p.t('global/anzahl') + + ' (' + + this.$p.t('global/ausgewaehlt') + + ' / ' + + this.$p.t('global/gefiltert') + + ' / ' + + this.$p.t('global/gesamt') + + '): ' + + '' + (this.selectedcount || 0) + '' + + ' / ' + + '' + (this.filteredcount || 0) + '' + + ' / ' + + '' + (this.count || 0) + ''; + } + }, // TODO(chris): focusin, focusout, keydown and tabindex should be in the filter component // TODO(chris): filter component column chooser has no accessibilty features template: ` @@ -286,7 +305,7 @@ export default {
'core', + 'category' => 'global', + 'phrase' => 'ausgewaehlt', + 'insertvon' => 'system', + 'phrases' => array( + array( + 'sprache' => 'German', + 'text' => 'ausgewählt', + 'description' => '', + 'insertvon' => 'system' + ), + array( + 'sprache' => 'English', + 'text' => 'selected', + 'description' => '', + 'insertvon' => 'system' + ) + ) + ), + array( + 'app' => 'core', + 'category' => 'global', + 'phrase' => 'gefiltert', + 'insertvon' => 'system', + 'phrases' => array( + array( + 'sprache' => 'German', + 'text' => 'gefiltert', + 'description' => '', + 'insertvon' => 'system' + ), + array( + 'sprache' => 'English', + 'text' => 'filtered', + 'description' => '', + 'insertvon' => 'system' + ) + ) + ), + array( + 'app' => 'core', + 'category' => 'global', + 'phrase' => 'gesamt', + 'insertvon' => 'system', + 'phrases' => array( + array( + 'sprache' => 'German', + 'text' => 'gesamt', + 'description' => '', + 'insertvon' => 'system' + ), + array( + 'sprache' => 'English', + 'text' => 'total', + 'description' => '', + 'insertvon' => 'system' + ) + ) + ), + // FHC4 STUDIERENDENVERWALTUNG ANZAHL ENDE --------------------------------------------------------------- );