Ignore:
Timestamp:
04/11/09 02:39:36 (15 years ago)
Author:
nanardon
Message:
  • ballot confirm now use template
Location:
trunk/lib/Vote/Controller
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/lib/Vote/Controller/Ballot.pm

    r180 r181  
    117117            $c->req->address, 
    118118        ); # TODO trap error 
    119         $vote->mail_ballot_confirm($mail, $id, { 
    120                 ballotid => $c->stash->{ballotid}, 
    121                 url => $c->uri_for('/vote', $id), 
    122         }); 
     119        $c->forward( 
     120            q'Vote::View::Mail', 'render', 
     121            [ 'ballot_confirm.tt', { 
     122                From => $mail, 
     123                To => $mail, 
     124                Subject => 'Confirmation de vote: ' . $vote->vote_info($id)->{label}, 
     125                mail => { 
     126                    ballotid => $c->stash->{ballotid}, 
     127                    voteid => $id, 
     128                } 
     129            } ] 
     130        ); 
     131 
    123132        $c->stash->{template} = 'ballot/done.tt'; 
    124133        $c->delete_session('Vote terminé'); 
  • trunk/lib/Vote/Controller/Newpoll.pm

    r180 r181  
    4646                    reqid => $reqid, 
    4747                } 
    48             } ]); 
     48            } ] 
     49        ); 
    4950 
    5051        $c->stash->{template} = 'newpoll/request.tt'; 
Note: See TracChangeset for help on using the changeset viewer.