33 lines
671 B
Perl
33 lines
671 B
Perl
%#
|
|
%# $Id$
|
|
%#
|
|
% layout 'default';
|
|
% title 'Maacom';
|
|
|
|
% use Mojo::Util qw(dumper);
|
|
|
|
% my $u = $c->app->user;
|
|
|
|
% my $forwarded_id = $c->req->param('forwarded_id') || 0;
|
|
% my $profile = $u->forwarded_profile($forwarded_id);
|
|
|
|
% if ($profile) {
|
|
% my $name = $profile->{name};
|
|
% my $res = $u->forwarded_delete($forwarded_id);
|
|
|
|
% if ($res) {
|
|
<div class="callout success">Domain <%= $name %> has been deleted</div>
|
|
% }
|
|
|
|
% unless ($res) {
|
|
<div class="callout alert">Domain <%= $name %> was not deleted</div>
|
|
% }
|
|
% }
|
|
|
|
% unless ($profile) {
|
|
<div class="callout warning">Domain with id <%= $forwarded_id %> not exist</div>
|
|
% }
|
|
|
|
%#EOF
|
|
|