Added back to list button to handler pages

This commit is contained in:
ziggi
2017-12-15 23:29:24 +02:00
parent c637d26eed
commit 09051e496a
21 changed files with 122 additions and 8 deletions

View File

@@ -28,4 +28,19 @@
<div class="callout alert">Alias <%= $alias_name %> was not added.</div>
% }
% }
% if ($domain_id) {
<a class="float-left button tiny" href="/alias/list?domain_id=<%= $domain_id %>">
<i class="fi-arrow-left"></i>
</a>
% }
% unless ($domain_id) {
<a class="float-left button tiny" href="/alias/list">
<i class="fi-arrow-left"></i>
</a>
% }
%#EOF

View File

@@ -14,6 +14,7 @@
% if ($profile) {
% my $name = $profile->{name};
% my $address = $profile->{address};
% my $domain_id = $profile->{domain_id};
% my $res = $u->alias_delete($alias_id);
@@ -24,10 +25,16 @@
% unless ($res) {
<div class="callout alert">Alias <%= $address %> was not deleted</div>
% }
<a class="float-left button tiny" href="/alias/list?domain_id=<%= $domain_id %>">
<i class="fi-arrow-left"></i>
</a>
% }
% unless ($profile) {
<div class="callout warning">Alias with id <%= $alias_id %> not exist</div>
<div class="callout warning">Alias with id <%= $alias_id %> not exist</div>
<a class="float-left button tiny" href="/alias/list">
<i class="fi-arrow-left"></i>
</a>
% }
%#EOF

View File

@@ -31,12 +31,17 @@
<div class="callout alert">Alias <%= $address %> was not updated.</div>
% }
% }
<a class="float-left button tiny" href="/alias/list?domain_id=<%= $domain_id %>">
<i class="fi-arrow-left"></i>
</a>
% }
% unless ($profile) {
<div class="callout warning">Alias with id <%= $alias_id %> not exist</div>
<div class="callout warning">Alias with id <%= $alias_id %> not exist</div>
<a class="float-left button tiny" href="/alias/list">
<i class="fi-arrow-left"></i>
</a>
% }
%#EOF

View File

@@ -31,10 +31,16 @@
% unless ($res) {
<div class="callout alert">Alias <%= $address %> was not updated.</div>
% }
<a class="float-left button tiny" href="/alias/list?domain_id=<%= $domain_id %>">
<i class="fi-arrow-left"></i>
</a>
% }
% unless ($profile) {
<div class="callout warning">Alias with id <%= $alias_id %> not exist</div>
<div class="callout warning">Alias with id <%= $alias_id %> not exist</div>
<a class="float-left button tiny" href="/alias/list">
<i class="fi-arrow-left"></i>
</a>
% }
%#EOF

View File

@@ -26,6 +26,10 @@
% }
% }
<a class="float-left button tiny" href="/domain/list">
<i class="fi-arrow-left"></i>
</a>
%#EOF

View File

@@ -28,5 +28,9 @@
<div class="callout warning">Domain with id <%= $domain_id %> not exist</div>
% }
<a class="float-left button tiny" href="/domain/list">
<i class="fi-arrow-left"></i>
</a>
%#EOF

View File

@@ -35,6 +35,10 @@
<div class="callout warning">Domain with id <%= $domain_id %> not exist</div>
% }
<a class="float-left button tiny" href="/domain/list">
<i class="fi-arrow-left"></i>
</a>
%#EOF

View File

@@ -28,6 +28,9 @@
<div class="callout warning">Domain with id <%= $domain_id %> not exist</div>
% }
<a class="float-left button tiny" href="/domain/list">
<i class="fi-arrow-left"></i>
</a>
%#EOF

View File

@@ -25,6 +25,9 @@
% }
% }
<a class="float-left button tiny" href="/forwarded/list">
<i class="fi-arrow-left"></i>
</a>
%#EOF

View File

@@ -28,5 +28,9 @@
<div class="callout warning">Domain with id <%= $forwarded_id %> not exist</div>
% }
<a class="float-left button tiny" href="/forwarded/list">
<i class="fi-arrow-left"></i>
</a>
%#EOF

View File

@@ -34,6 +34,9 @@
<div class="callout warning">Domain with id <%= $forwarded_id %> not exist</div>
% }
<a class="float-left button tiny" href="/forwarded/list">
<i class="fi-arrow-left"></i>
</a>
%#EOF

View File

@@ -25,6 +25,10 @@
% }
% }
<a class="float-left button tiny" href="/trusted/list">
<i class="fi-arrow-left"></i>
</a>
%#EOF

View File

@@ -28,5 +28,9 @@
<div class="callout warning">Host with id <%= $trusted_id %> not exist</div>
% }
<a class="float-left button tiny" href="/trusted/list">
<i class="fi-arrow-left"></i>
</a>
%#EOF

View File

@@ -34,6 +34,10 @@
<div class="callout warning">Host with id <%= $trusted_id %> not exist</div>
% }
<a class="float-left button tiny" href="/trusted/list">
<i class="fi-arrow-left"></i>
</a>
%#EOF

View File

@@ -25,6 +25,10 @@
% }
% }
<a class="float-left button tiny" href="/unwanted/list">
<i class="fi-arrow-left"></i>
</a>
%#EOF

View File

@@ -28,5 +28,9 @@
<div class="callout warning">Host with id <%= $unwanted_id %> not exist</div>
% }
<a class="float-left button tiny" href="/unwanted/list">
<i class="fi-arrow-left"></i>
</a>
%#EOF

View File

@@ -34,6 +34,10 @@
<div class="callout warning">Host with id <%= $unwanted_id %> not exist</div>
% }
<a class="float-left button tiny" href="/unwanted/list">
<i class="fi-arrow-left"></i>
</a>
%#EOF

View File

@@ -30,6 +30,20 @@
<div class="callout alert">User <%= $user_name %> was not added.</div>
% }
% }
% if ($domain_id) {
<a class="float-left button tiny" href="/user/list?domain_id=<%= $domain_id %>">
<i class="fi-arrow-left"></i>
</a>
% }
% unless ($domain_id) {
<a class="float-left button tiny" href="/user/list">
<i class="fi-arrow-left"></i>
</a>
% }
%#EOF

View File

@@ -14,6 +14,7 @@
% if ($profile) {
% my $name = $profile->{name};
% my $address = $profile->{address};
% my $domain_id = $profile->{domain_id};
% my $res = $u->user_delete($user_id);
@@ -24,11 +25,16 @@
% unless ($res) {
<div class="callout alert">User <%= $address %> was not deleted</div>
% }
<a class="float-left button tiny" href="/user/list?domain_id=<%= $domain_id %>">
<i class="fi-arrow-left"></i>
</a>
% }
% unless ($profile) {
<div class="callout warning">User with id <%= $user_id %> not exist</div>
<div class="callout warning">User with id <%= $user_id %> not exist</div>
<a class="float-left button tiny" href="/user/list">
<i class="fi-arrow-left"></i>
</a>
% }
%#EOF

View File

@@ -32,10 +32,16 @@
<div class="callout alert">User <%= $address %> was not updated.</div>
% }
% }
<a class="float-left button tiny" href="/user/list?domain_id=<%= $domain_id %>">
<i class="fi-arrow-left"></i>
</a>
% }
% unless ($profile) {
<div class="callout warning">User with id <%= $user_id %> not exist</div>
<div class="callout warning">User with id <%= $user_id %> not exist</div>
<a class="float-left button tiny" href="/user/list">
<i class="fi-arrow-left"></i>
</a>
% }
%#EOF

View File

@@ -27,10 +27,16 @@
% unless ($res) {
<div class="callout alert">User <%= $address %> was not updated.</div>
% }
<a class="float-left button tiny" href="/user/list?domain_id=<%= $domain_id %>">
<i class="fi-arrow-left"></i>
</a>
% }
% unless ($profile) {
<div class="callout warning">User with id <%= $user_id %> not exist</div>
<div class="callout warning">User with id <%= $user_id %> not exist</div>
<a class="float-left button tiny" href="/user/list">
<i class="fi-arrow-left"></i>
</a>
% }
%#EOF