Added filter button to STGL Overview (filter: show all progressed by STGL)

Signed-off-by: cris-technikum <hainberg@technikum-wien.at>
This commit is contained in:
Cris
2021-02-16 18:04:27 +01:00
committed by cris-technikum
parent 1ca22970a9
commit 241fb34b23
3 changed files with 27 additions and 5 deletions
@@ -189,6 +189,11 @@ $this->load->view(
<div class="col-xs-3">
<div class="btn-toolbar" role="toolbar">
<div class="btn-group" role="group">
<button id="show-inProgressDP" class="btn btn-default btn-clearfilter" type="button"
data-toggle="tooltip" data-placement="left"
title="<?php echo $this->p->t('anrechnung', 'alleInBearbeitungSTGL'); ?>">
<i class='fa fa-eye'></i>
</button>
<button id="show-recommended" class="btn btn-default btn-clearfilter" type="button"
data-toggle="tooltip" data-placement="left"
title="<?php echo $this->p->t('ui', 'nurEmpfohleneAnzeigen'); ?>"><i
@@ -147,12 +147,11 @@ $(function(){
// Set status alert color
approveAnrechnung.setStatusAlertColor();
// Show only rows with empfohlene + noch nicht genehmigte/abgelehnte anrechnungen
$("#show-recommended").click(function(){
// Show only rows that are in progress by STGL
$("#show-inProgressDP").click(function(){
$('#tableWidgetTabulator').tabulator('setFilter',
[
{field: 'status_kurzbz', type: '=', value: ANRECHNUNGSTATUS_PROGRESSED_BY_STGL},
{field: 'empfehlung_anrechnung', type: '=', value: 'true'}
]
);
});
+20 -2
View File
@@ -10210,8 +10210,26 @@ array(
)
)
),
array(
'app' => 'core',
'category' => 'ui',
'phrase' => 'alleInBearbeitungSTGL',
'insertvon' => 'system',
'phrases' => array(
array(
'sprache' => 'German',
'text' => "Alle anzeigen, die durch die Studiengangsleitung bearbeitet werden.",
'description' => '',
'insertvon' => 'system'
),
array(
'sprache' => 'English',
'text' => "Show all that are processed by the study course director.",
'description' => '',
'insertvon' => 'system'
)
)
),
);