Changeset 147


Ignore:
Timestamp:
10/20/11 17:45:56 (13 years ago)
Author:
Kris Deugau
Message:

/trunk

UI consistency tweak - report group and domain deletions the
same way as user delete/update

Location:
trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/dns.cgi

    r145 r147  
    234234  }
    235235
     236  $page->param(resultmsg => $webvar{resultmsg}) if $webvar{resultmsg};
     237  $page->param(errmsg => $webvar{errmsg}) if $webvar{errmsg};
     238
    236239  $page->param(curpage => $webvar{page});
    237   $page->param(errmsg => $webvar{errmsg}) if $webvar{errmsg};
    238240#  if ($webvar{del_failed}) {
    239241#    $page->param(del_failed => 1);
     
    295297    } else {
    296298      logaction($webvar{id}, $session->param("username"), $pargroup, "Deleted domain $dom");
    297       changepage(page => "domlist");
     299      changepage(page => "domlist", resultmsg => "Deleted domain $dom");
    298300    }
    299301
     
    589591  $page->param(delgrp => $permissions{admin} || $permissions{group_delete});
    590592
     593  $page->param(resultmsg => $webvar{resultmsg}) if $webvar{resultmsg};
    591594  $page->param(errmsg => $webvar{errmsg}) if $webvar{errmsg};
    592595  $page->param(curpage => $webvar{page});
     
    655658      logaction(0, $session->param("username"), $webvar{curgroup}, "Deleted group $deleteme");
    656659      # success.  go back to the domain list, do not pass "GO"
    657       changepage(page => "grpman");
     660      changepage(page => "grpman", resultmsg => "Deleted group $deleteme");
    658661    }
    659662  } else {
  • trunk/templates/domlist.tmpl

    r139 r147  
    55<td align="center" valign="top">
    66
    7  <TMPL_IF errmsg>
    8   <div class='errmsg'><TMPL_VAR NAME=errmsg></div>
    9  </TMPL_IF>
     7<TMPL_IF resultmsg>
     8<div class="result"><TMPL_VAR NAME=resultmsg></div>
     9</TMPL_IF>
     10<TMPL_IF errmsg>
     11<div class='errmsg'><TMPL_VAR NAME=errmsg></div>
     12</TMPL_IF>
    1013
    1114<table width="98%">
  • trunk/templates/grpman.tmpl

    r140 r147  
    55<td align="center" valign="top">
    66
    7  <TMPL_IF errmsg>
    8   <div class='errmsg'><TMPL_VAR NAME=errmsg></div>
    9  </TMPL_IF>
     7<TMPL_IF resultmsg>
     8<div class="result"><TMPL_VAR NAME=resultmsg></div>
     9</TMPL_IF>
     10<TMPL_IF errmsg>
     11<div class='errmsg'><TMPL_VAR NAME=errmsg></div>
     12</TMPL_IF>
    1013
    1114<table width="98%">
Note: See TracChangeset for help on using the changeset viewer.