Minor GUI optimizations

. Changed status icon on header row
. No mousepointer on unselectable geanderte LA in LA akzeptieren
This commit is contained in:
Cris
2019-10-24 14:19:05 +02:00
committed by hainberg
parent 746f082121
commit 5936476dd5
3 changed files with 6 additions and 9 deletions
@@ -189,6 +189,7 @@ $this->load->view(
if (bestellt != null && (betrag != vertrag_betrag))
{
cell.getElement().classList.add('bg-warning'); // geaenderte
row.getElement().style["pointerEvents"] = "none";
}
else if(bestellt != null && erteilt != null && akzeptiert == null)
{
@@ -222,7 +223,7 @@ $this->load->view(
// Add status column to table
table.addColumn(
{
title: "Status",
title: "<i class='fa fa-user-o'></i>",
field: "status",
width:40,
align:"center",
@@ -268,7 +268,7 @@ $this->load->view(
// Add status column to table
table.addColumn(
{
title: "Status",
title: "<i class='fa fa-user-o'></i>",
field: "status",
width:40,
align:"center",
@@ -602,10 +602,6 @@ $(function() {
}
});
$("#download-cvs").click(function(){
$('#filterTabulator').tabulator("download", "csv", "data.csv");
});
// Approve Lehrauftraege
$("#approve-lehrauftraege").click(function(){
@@ -272,7 +272,7 @@ $this->load->view(
// Add status column to table
table.addColumn(
{
title: "Status",
title: "<i class='fa fa-user-o'></i>",
field: "status",
width:40,
align:"center",
@@ -574,7 +574,7 @@ $(function() {
);
});
// Show only rows with ordered lehrauftraege
// Show only rows with akzeptierte lehrauftraege
$("#show-accepted").click(function(){
$('#filterTabulator').tabulator('setFilter',
[
@@ -585,7 +585,7 @@ $(function() {
);
});
// Show only rows with dummy lectors
// Show only rows with geaenderte lectors
$("#show-changed").click(function(){
// needs custom filter to compare fields betrag and vertrag_betrag
$('#filterTabulator').tabulator('setFilter', filter_showChanged);