11 |
|
|
12 |
extends 'App::RoomReservation'; |
extends 'App::RoomReservation'; |
13 |
|
|
14 |
|
with 'App::RoomReservation::Email'; |
15 |
|
|
16 |
use lib 'lib'; |
use lib 'lib'; |
17 |
use Frey::PPI; |
use Frey::PPI; |
18 |
|
|
137 |
my $sth = $self->dbh->prepare( $sql ); |
my $sth = $self->dbh->prepare( $sql ); |
138 |
$sth->execute( @vals ); |
$sth->execute( @vals ); |
139 |
|
|
140 |
|
my $url = $self->url_for( 'Confirmation/verify_as_markup?token=' . $self->token ); |
141 |
|
|
142 |
|
$self->send( $self->email, |
143 |
|
'Confirm your reservation for lecture', <<__EMAIL__ |
144 |
|
Please click following link to confirm your reservation for lecture |
145 |
|
and get seat assigned to you. |
146 |
|
|
147 |
|
$url |
148 |
|
__EMAIL__ |
149 |
|
); |
150 |
|
|
151 |
return |
return |
152 |
$self->ime . ' ' . $self->prezime |
$self->ime . ' ' . $self->prezime |
153 |
. qq| we have accepted your registration!| |
. qq| we have accepted your registration!| |
157 |
by clicking on link which should be in your e-mail INBOX shortly |
by clicking on link which should be in your e-mail INBOX shortly |
158 |
</div> |
</div> |
159 |
| |
| |
|
. qq|<a href="/App::RoomReservation::Confirmation/verify_as_markup?token=| |
|
|
. $self->token |
|
|
. qq|">verify</a>| |
|
|
. ' or ' |
|
|
. qq|<a href="/App::RoomReservation::Confirmation/cancel_as_markup?token=| |
|
|
. $self->token |
|
|
. qq|">cancel</a>| |
|
160 |
; |
; |
161 |
} |
} |
162 |
|
|