Added tooltip for unselectable Anrechnungen

Signed-off-by: cris-technikum <hainberg@technikum-wien.at>
This commit is contained in:
Cris
2021-01-25 18:18:13 +01:00
committed by cris-technikum
parent 1b00ae78b4
commit aefd0842db
7 changed files with 46 additions and 2 deletions
@@ -34,7 +34,8 @@ $this->load->view(
'keineDatenVorhanden',
'spaltenEinstellen',
'ja',
'nein'
'nein',
'nichtSelektierbarAufgrundVon'
),
'person' => array(
'student',
@@ -93,6 +93,9 @@ $filterWidgetArray = array(
rowUpdated:function(row){
func_rowUpdated(row);
},
tooltips: function(cell){
return func_tooltips(cell);
}
}', // tabulator properties
'datasetRepFieldsDefs' => '{
anrechnung_id: {visible: false},
@@ -34,7 +34,8 @@ $this->load->view(
'keineDatenVorhanden',
'spaltenEinstellen',
'ja',
'nein'
'nein',
'nichtSelektierbarAufgrundVon'
),
'person' => array(
'student',
@@ -96,6 +96,9 @@ $filterWidgetArray = array(
},
rowUpdated:function(row){
func_rowUpdated(row);
},
tooltips: function(cell){
return func_tooltips(cell);
}
}', // tabulator properties
'datasetRepFieldsDefs' => '{
@@ -68,6 +68,14 @@ function func_rowUpdated(row){
row.getElement().style["pointerEvents"] = "none";
}
// Returns tooltip
function func_tooltips(cell) {
// Return tooltip if row is unselectable
if (!func_selectableCheck(cell.getRow())){
return FHC_PhrasesLib.t("ui", "nichtSelektierbarAufgrundVon") + 'Status';
}
}
// Formats empfehlung_anrechnung
var format_empfehlung_anrechnung = function(cell, formatterParams){
return (cell.getValue() == null)
@@ -66,6 +66,14 @@ function func_rowUpdated(row){
row.getElement().style["pointerEvents"] = "none";
}
// Returns tooltip
function func_tooltips(cell) {
// Return tooltip if row is unselectable
if (!func_selectableCheck(cell.getRow())){
return FHC_PhrasesLib.t("ui", "nichtSelektierbarAufgrundVon") + 'Status';
}
}
// Formats empfehlung_anrechnung
var format_empfehlung_anrechnung = function(cell, formatterParams){
return (cell.getValue() == null)
+20
View File
@@ -8668,6 +8668,26 @@ Any unusual occurrences
'insertvon' => 'system'
)
)
),
array(
'app' => 'core',
'category' => 'ui',
'phrase' => 'nichtSelektierbarAufgrundVon',
'insertvon' => 'system',
'phrases' => array(
array(
'sprache' => 'German',
'text' => 'Nicht selektierbar aufgrund von: ',
'description' => '',
'insertvon' => 'system'
),
array(
'sprache' => 'English',
'text' => 'Not selectable because of: ',
'description' => '',
'insertvon' => 'system'
)
)
)
);