Zaktualizuj logikę wyświetlania zadań do przeglądu i zadań zbiorczych, popraw ustawienia e-mail oraz dostosuj style w widoku zadań

This commit is contained in:
2025-02-20 19:26:42 +01:00
parent c10650e888
commit 7769790e84
8 changed files with 109 additions and 26 deletions

View File

@@ -107,7 +107,7 @@
</ul>
</div>
<div class="column tasks_to_review">
<h2>Zadania do sprawdzenia</h2>
<h2>Zadania do sprawdzenia <? if ( $this -> show_tasks_to_review == 'hide' ):?><i class="fa fa-eye" title="Pokaż zadania do sprawdzenia"></i><? else:?><i class="fa fa-times" title="Ukryj zadania do sprawdzenia"></i><? endif;?></h2>
<ul>
<? foreach ( $this -> tasks_to_review as $task ):?>
<?
@@ -122,7 +122,7 @@
</ul>
</div>
<div class="column tasks_bulk">
<h2>Do rozliczenia</h2>
<h2>Do rozliczenia <? if ( $this -> show_tasks_bulk == 'hide' ):?><i class="fa fa-eye" title="Pokaż zadania do rozliczenia"></i><? else:?><i class="fa fa-times" title="Ukryj zadania do rozliczenia"></i><? endif;?></h2>
<ul>
<? foreach ( $this -> tasks_bulk as $task ):?>
<?
@@ -768,6 +768,26 @@
document.location.href = '/tasks/main_view/tasks_closed=show';
});
$( 'body' ).on( 'click', '.tasks_bulk i.fa-eye', function(e) {
e.preventDefault();
document.location.href = '/tasks/main_view/tasks_bulk=show';
});
$( 'body' ).on( 'click', '.tasks_bulk i.fa-times', function(e) {
e.preventDefault();
document.location.href = '/tasks/main_view/tasks_bulk=hide';
});
$( 'body' ).on( 'click', '.tasks_to_review i.fa-eye', function(e) {
e.preventDefault();
document.location.href = '/tasks/main_view/tasks_to_review=show';
});
$( 'body' ).on( 'click', '.tasks_to_review i.fa-times', function(e) {
e.preventDefault();
document.location.href = '/tasks/main_view/tasks_to_review=hide';
});
$( 'body' ).on( 'change', '.task_work_date_start', function()
{
var date_start = $( this ).val();