mirror of
https://github.com/FH-Complete/FHC-Core.git
synced 2026-07-25 00:24:35 +00:00
Created Anrechnungen STGL: GUI, Controller, Tabledata, Phrases
Signed-off-by: cris-technikum <[email protected]>
This commit is contained in:
@@ -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(){
|
||||
|
||||
});
|
||||
Reference in New Issue
Block a user