Created Anrechnungen STGL: GUI, Controller, Tabledata, Phrases

Signed-off-by: cris-technikum <[email protected]>
This commit is contained in:
Cris
2021-01-19 14:43:32 +01:00
committed by cris-technikum
parent f185c92db7
commit b5dd85f2a6
6 changed files with 561 additions and 1 deletions
+30
View File
@@ -39,4 +39,34 @@
.btn-select-col-selected
{
background-color: #e6e6e6;
}
.btn-w200
{
width: 200px;
}
.btn-mr5
{
margin-right: 10px;
}
.btn-mr10
{
margin-right: 10px;
}
.btn-mr20
{
margin-right: 20px;
}
.btn-mr40
{
margin-right: 40px;
}
.btn-mr50
{
margin-right: 50px;
}
@@ -0,0 +1,38 @@
const BASE_URL = FHC_JS_DATA_STORAGE_OBJECT.app_root + FHC_JS_DATA_STORAGE_OBJECT.ci_router;
const APPROVE_ANRECHNUNG_DETAIL_URI = "lehre/anrechnung/ApproveAnrechnungDetail";
// TABULATOR FUNCTIONS
// ---------------------------------------------------------------------------------------------------------------------
// Returns relative height (depending on screen size)
function func_height(table){
return $(window).height() * 0.50;
}
// Adds column details
function func_tableBuilt(table) {
table.addColumn(
{
title: "Details",
align: "center",
width: 100,
formatter: "link",
formatterParams:{
label:"Details",
url:function(cell){
return BASE_URL + "/" + APPROVE_ANRECHNUNG_DETAIL_URI + "?anrechnung_id=" + cell.getData().anrechnung_id
},
target:"_blank"
}
}, false, "status" // place column after status
);
}
// Formats null values to '-'
var format_nullToMinus = function(cell, formatterParams){
return (cell.getValue() == null) ? '-' : cell.getValue();
}
$(function(){
});