<& /Elements/Header, Title => $title &> <& /Elements/Tabs &> <& /Elements/ListActions, actions => \@results &> <& /Elements/AwayModeEditor:show, UserObj => $user &> <& /Elements/Submit, Name => 'Update', Label => loc('Save Changes') &> <%INIT> my @results; my $title = loc('Away Mode'); my $user = $session{'CurrentUser'}->UserObj; if ($Update) { @results = $m->comp( '/Elements/AwayModeEditor:process', UserObj => $user, Enabled => $Enabled, StartDate => $StartDate, EndDate => $EndDate, ); } <%ARGS> $Enabled => 0 $StartDate => '' $EndDate => '' $Update => 0