Ignore:
Timestamp:
01/22/16 06:25:19 (8 years ago)
Author:
nanardon
Message:

Update timeline

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/LATMOS-Accounts-Web/lib/LATMOS/Accounts/Web/Controller/Json/Timeline.pm

    r1622 r1651  
    9797                name => $c->loc('Expire'), 
    9898                date => $expire, 
     99                options => { 
     100                    type => 'alarm', 
     101                } 
     102        }); 
     103    } 
     104    if (my $endcircuit = $ouser->get_attributes('endcircuit')) { 
     105        push(@{$var->{employments}{events}}, { 
     106                name => $c->loc('End of entrance'), 
     107                date => $endcircuit, 
     108                options => { 
     109                    type => 'alarm', 
     110                } 
     111        }); 
     112    } 
     113    if (my $date = $ouser->get_attributes('startEmployment')) { 
     114        push(@{$var->{employments}{events}}, { 
     115                name => $c->loc('Activity start'), 
     116                date => $date, 
     117                options => { 
     118                    type => 'employment', 
     119                    showdate => 1, 
     120                } 
     121        }); 
     122    } 
     123    if (my $date = $ouser->get_attributes('endEmployment')) { 
     124        push(@{$var->{employments}{events}}, { 
     125                name => $c->loc('Activity end'), 
     126                date => $date, 
     127                options => { 
     128                    type => 'employment', 
     129                    showdate => 1, 
     130                } 
    99131        }); 
    100132    } 
Note: See TracChangeset for help on using the changeset viewer.