This commit is contained in:
@@ -0,0 +1,32 @@
|
||||
%#
|
||||
%# $Id$
|
||||
%#
|
||||
% layout 'default';
|
||||
% title 'Maacom';
|
||||
|
||||
% use Mojo::Util qw(dumper);
|
||||
|
||||
% my $u = $c->app->user;
|
||||
|
||||
% my $forward_id = $c->req->param('forward_id') || 0;
|
||||
% my $profile = $u->forward_profile($forward_id);
|
||||
|
||||
% if ($profile) {
|
||||
% my $name = $profile->{name};
|
||||
% my $res = $u->forward_delete($forward_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 <%= $forward_id %> not exist</div>
|
||||
% }
|
||||
|
||||
%#EOF
|
||||
|
||||
Reference in New Issue
Block a user