Changeset 126 for trunk


Ignore:
Timestamp:
09/20/11 17:22:24 (13 years ago)
Author:
Kris Deugau
Message:

/trunk

UI cleanup: Remove dropdown group list from sidebar now that
the nifty collapsing group tree works

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/dns.cgi

    r125 r126  
    236236        unless ($permissions{admin} || $permissions{domain_create});
    237237
    238   # hmm.  nothing to do here?
    239   # - group list is filled by the same bit that fills the group list in the menu
     238  fill_grouplist("grouplist");
     239
    240240  if ($webvar{add_failed}) {
    241241    $page->param(add_failed => 1);
     
    664664  changepage(page => "domlist", errmsg => "You are not permitted to make bulk domain changes")
    665665        unless ($permissions{admin} || $permissions{domain_edit} || $permissions{domain_create} || $permissions{domain_delete});
     666
     667  fill_grouplist("grouplist");
    666668
    667669##fixme
     
    11201122
    11211123  # don't need this while we've got the dropdown in the menu.  hmm.
    1122   #fill_grouplist;
     1124  fill_grouplist("grouplist");
    11231125
    11241126  $page->param(ifrom => $webvar{ifrom}) if $webvar{ifrom};
     
    12481250  $page->param(subs => ($tmpgrplist ? 1 : 0));  # probably not useful to pass gobs of data in for a boolean
    12491251  $page->param(inlogingrp => $curgroup == $logingroup);
    1250 
    1251   # stuff for menu group change.  nb: this is icky.
    1252   fill_grouplist("grouplist");
    12531252
    12541253# fill in the URL-to-self
  • trunk/templates/menu.tmpl

    r117 r126  
    99<TMPL_IF mayimport><a href="dns.cgi?sid=<TMPL_VAR NAME=sid>&amp;page=axfr">AXFR Import</a><br /></TMPL_IF>
    1010<TMPL_IF maybulk><a href="dns.cgi?sid=<TMPL_VAR NAME=sid>&amp;page=bulkdomain">Bulk Domain Operations</a><br /></TMPL_IF>
    11 <hr />
    12 Current group:
    13 <form action="<TMPL_VAR NAME=whereami>" method="post">
    14 <fieldset>
    15 <select name="group">
    16         <TMPL_LOOP NAME=grouplist><option value="<TMPL_VAR NAME=groupval>"<TMPL_IF NAME=groupactive> selected="selected"</TMPL_IF>><TMPL_VAR NAME=groupname></option>
    17         </TMPL_LOOP>
    18 </select>
    19 <input type="hidden" name="action" value="chgroup" />
    20 <input type="submit" value="Change group" />
    21 </fieldset>
    22 </form>
    2311<hr />
    2412<a href="dns.cgi?sid=<TMPL_VAR NAME=sid>&amp;page=grpman">Manage groups</a><br />
Note: See TracChangeset for help on using the changeset viewer.