diff --git a/public/js/components/Cis/Renderer/Lehreinheit/calendarEvent.js b/public/js/components/Cis/Renderer/Lehreinheit/calendarEvent.js
index 8bbaa5d0f..28cf54fc9 100644
--- a/public/js/components/Cis/Renderer/Lehreinheit/calendarEvent.js
+++ b/public/js/components/Cis/Renderer/Lehreinheit/calendarEvent.js
@@ -82,7 +82,7 @@ export default {
+ `&sem_kurzbz=${encodeURIComponent(d.sem_kurzbz)}`;
},
anwLinkTitle() {
- return this.$p.t('global/digitalesAnwManagement');
+ return this.$p.t('global/anwKontrolleOeffnen');
},
},
template: /*html*/`
diff --git a/public/js/components/Cis/Renderer/Lehreinheit/modalContent.js b/public/js/components/Cis/Renderer/Lehreinheit/modalContent.js
index 738c0c75c..80c32522c 100644
--- a/public/js/components/Cis/Renderer/Lehreinheit/modalContent.js
+++ b/public/js/components/Cis/Renderer/Lehreinheit/modalContent.js
@@ -49,6 +49,20 @@ export default {
return this.event.ende;
}
return numberPadding(this.event.ende.getHours()) + ":" + numberPadding(this.event.ende.getMinutes());
+ },
+ // Deep link into the attendance tool; only present when the anw extension wrote into digi_anw_data
+ anwLink: function () {
+ const d = this.event && this.event.digi_anw_data;
+ if (!d || !d.stg_kz || !d.lv_id || !d.sem_kurzbz)
+ return null;
+ const base = FHC_JS_DATA_STORAGE_OBJECT.app_root
+ + FHC_JS_DATA_STORAGE_OBJECT.ci_router
+ + '/extensions/FHC-Core-Anwesenheiten/';
+ return base
+ + `?stg_kz=${encodeURIComponent(d.stg_kz)}`
+ + `&sem=${encodeURIComponent(d.sem ?? '')}`
+ + `&lvid=${encodeURIComponent(d.lv_id)}`
+ + `&sem_kurzbz=${encodeURIComponent(d.sem_kurzbz)}`;
}
},
methods: {
@@ -140,6 +154,16 @@ export default {
}}
{{event.organisationseinheit}} |
+
+ | {{
+ $p.t('global','anwKontrolle')?
+ $p.t('global','anwKontrolle')+':'
+ :''
+ }} |
+
+
+ |
+
diff --git a/system/phrasesupdate.php b/system/phrasesupdate.php
index d70e539c7..0a97cd2f7 100644
--- a/system/phrasesupdate.php
+++ b/system/phrasesupdate.php
@@ -32774,6 +32774,86 @@ array(
)
)
),
+ array(
+ 'app' => 'anwesenheiten',
+ 'category' => 'global',
+ 'phrase' => 'anwKontrolle',
+ 'insertvon' => 'system',
+ 'phrases' => array(
+ array(
+ 'sprache' => 'German',
+ 'text' => 'Anwesenheitskontrolle',
+ 'description' => '',
+ 'insertvon' => 'system'
+ ),
+ array(
+ 'sprache' => 'English',
+ 'text' => 'Attendance check',
+ 'description' => '',
+ 'insertvon' => 'system'
+ )
+ )
+ ),
+ array(
+ 'app' => 'anwesenheiten',
+ 'category' => 'global',
+ 'phrase' => 'anwKontrolleOeffnen',
+ 'insertvon' => 'system',
+ 'phrases' => array(
+ array(
+ 'sprache' => 'German',
+ 'text' => 'Anwesenheitskontrolle öffnen',
+ 'description' => '',
+ 'insertvon' => 'system'
+ ),
+ array(
+ 'sprache' => 'English',
+ 'text' => 'Open attendance check',
+ 'description' => '',
+ 'insertvon' => 'system'
+ )
+ )
+ ),
+ array(
+ 'app' => 'anwesenheiten',
+ 'category' => 'global',
+ 'phrase' => 'anwKeinUnterricht',
+ 'insertvon' => 'system',
+ 'phrases' => array(
+ array(
+ 'sprache' => 'German',
+ 'text' => 'Kein Unterricht in diesem Zeitraum',
+ 'description' => '',
+ 'insertvon' => 'system'
+ ),
+ array(
+ 'sprache' => 'English',
+ 'text' => 'No lessons in this period',
+ 'description' => '',
+ 'insertvon' => 'system'
+ )
+ )
+ ),
+ array(
+ 'app' => 'anwesenheiten',
+ 'category' => 'global',
+ 'phrase' => 'anwJetzt',
+ 'insertvon' => 'system',
+ 'phrases' => array(
+ array(
+ 'sprache' => 'German',
+ 'text' => 'Jetzt',
+ 'description' => '',
+ 'insertvon' => 'system'
+ ),
+ array(
+ 'sprache' => 'English',
+ 'text' => 'Now',
+ 'description' => '',
+ 'insertvon' => 'system'
+ )
+ )
+ ),
array(
'app' => 'anwesenheiten',
'category' => 'global',