Adapted empfehlung to be human readable

ja/nein/- instead of boolean/null

Signed-off-by: cris-technikum <hainberg@technikum-wien.at>
This commit is contained in:
Cris
2021-01-21 11:08:57 +01:00
committed by cris-technikum
parent 47c8432faf
commit 99db4ec3ce
4 changed files with 50 additions and 4 deletions
@@ -33,6 +33,8 @@ $this->load->view(
'tabelleneinstellungen',
'keineDatenVorhanden',
'spaltenEinstellen',
'ja',
'nein'
),
'person' => array(
'student',
@@ -106,7 +106,7 @@ $filterWidgetArray = array(
url:function(cell){return "'. current_url() .'/download?dms_id=" + cell.getData().dms_id},
target:"_blank"
}},
empfehlung_anrechnung: {headerFilter:"input", align:"center", formatter: format_nullToMinus},
empfehlung_anrechnung: {headerFilter:"input", align:"center", formatter: format_empfehlung_anrechnung},
status_kurzbz: {visible: false},
status_bezeichnung: {headerFilter:"input"}
}', // col properties
@@ -50,9 +50,13 @@ function func_rowUpdated(row){
row.getElement().style["pointerEvents"] = "none";
}
// Formats null values to '-'
var format_nullToMinus = function(cell, formatterParams){
return (cell.getValue() == null) ? '-' : cell.getValue();
// Formats empfehlung_anrechnung
var format_empfehlung_anrechnung = function(cell, formatterParams){
return (cell.getValue() == null)
? '-'
: (cell.getValue() == 'true')
? FHC_PhrasesLib.t("ui", "ja")
: FHC_PhrasesLib.t("ui", "nein");
}
/*
+40
View File
@@ -8568,6 +8568,46 @@ Any unusual occurrences
'insertvon' => 'system'
)
)
),
array(
'app' => 'core',
'category' => 'ui',
'phrase' => 'ja',
'insertvon' => 'system',
'phrases' => array(
array(
'sprache' => 'German',
'text' => 'ja',
'description' => '',
'insertvon' => 'system'
),
array(
'sprache' => 'English',
'text' => 'yes',
'description' => '',
'insertvon' => 'system'
)
)
),
array(
'app' => 'core',
'category' => 'ui',
'phrase' => 'nein',
'insertvon' => 'system',
'phrases' => array(
array(
'sprache' => 'German',
'text' => 'nein',
'description' => '',
'insertvon' => 'system'
),
array(
'sprache' => 'English',
'text' => 'no',
'description' => '',
'insertvon' => 'system'
)
)
)
);