Improve calendar list, add the difference in days + tiers name
This commit is contained in:
parent
4b958c5272
commit
ff5dbdbaa4
2 changed files with 4 additions and 2 deletions
|
|
@ -303,7 +303,8 @@ class Calendar
|
|||
case when ag_remind_date < now() then 'R'
|
||||
when ag_remind_date = now() then 'N'
|
||||
else 'F'
|
||||
end as status
|
||||
end as status,
|
||||
coalesce (ag_remind_date::date,current_date) - current_date as delta_days
|
||||
from action_gestion
|
||||
left join vw_fiche_name on (f_id=f_id_dest)
|
||||
where
|
||||
|
|
|
|||
|
|
@ -46,6 +46,7 @@
|
|||
<td>
|
||||
<?php
|
||||
echo $a_status[$idx];
|
||||
if ($a_event[$i]['delta_days'] != 0 ) echo $a_event[$i]['delta_days']," "._('jours');
|
||||
?>
|
||||
</td>
|
||||
<td>
|
||||
|
|
@ -54,7 +55,7 @@
|
|||
<?php echo $a_event[$i]['ag_hour']; ?>
|
||||
</td>
|
||||
<td>
|
||||
<?php echo HtmlInput::detail_action($a_event[$i]["ag_id"],$a_event[$i]["ag_title"]);?>
|
||||
<?php echo HtmlInput::detail_action($a_event[$i]["ag_id"],$a_event[$i]["str_name"]);?>
|
||||
</td>
|
||||
<td>
|
||||
<?php echo h($a_event[$i]['ag_title']); ?>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue