Usability: Added filterbutton 'Alle anzeigen, die auf Empfehlung von LektorIn warten'

The filterbutton was added to the STGLs Overview site.

Signed-off-by: cris-technikum <hainberg@technikum-wien.at>
This commit is contained in:
Cris
2021-03-30 17:02:15 +02:00
committed by cris-technikum
parent 9ee473d9bd
commit d53d91d7d1
3 changed files with 35 additions and 0 deletions
@@ -197,6 +197,11 @@ $this->load->view(
title="<?php echo $this->p->t('ui', 'alleInBearbeitungSTGL'); ?>">
<i class='fa fa-eye'></i>
</button>
<button id="show-inProgressLektor" class="btn btn-default btn-clearfilter" type="button"
data-toggle="tooltip" data-placement="left"
title="<?php echo $this->p->t('ui', 'alleInBearbeitungLektor'); ?>"><i
class='fa fa-clock-o'></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
@@ -170,6 +170,16 @@ $(function(){
);
});
// Show only rows that are in progress by lector
$("#show-inProgressLektor").click(function(){
$('#tableWidgetTabulator').tabulator('setFilter',
[
{field: 'status_kurzbz', type: '=', value: ANRECHNUNGSTATUS_PROGRESSED_BY_LEKTOR},
{field: 'empfehlung_anrechnung', type: '=', value: null}
]
);
});
// Show only rows with empfohlene + noch nicht genehmigte/abgelehnte anrechnungen
$("#show-recommended").click(function(){
$('#tableWidgetTabulator').tabulator('setFilter',
+20
View File
@@ -10250,6 +10250,26 @@ array(
)
)
),
array(
'app' => 'core',
'category' => 'ui',
'phrase' => 'alleInBearbeitungLektor',
'insertvon' => 'system',
'phrases' => array(
array(
'sprache' => 'German',
'text' => "Alle anzeigen, die auf Empfehlung von LektorIn warten.",
'description' => '',
'insertvon' => 'system'
),
array(
'sprache' => 'English',
'text' => "Show all that are waiting for recommendation.",
'description' => '',
'insertvon' => 'system'
)
)
),
array(
'app' => 'core',
'category' => 'global',