Changeset 207 for trunk/templates


Ignore:
Timestamp:
12/19/11 17:20:54 (13 years ago)
Author:
Kris Deugau
Message:

/trunk

Fix overloaded-$webvar{action}-related buglet - changing the default
group can cause the page to mutate due to template/page overloading.
Reported by Reid Sutherland on the "Edit user" page, when clicking
a group to change the default group.

Group edit and bulk domain change pages tweaked although the impact
is limited to changing the starting data, not the page operation.

Location:
trunk/templates
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/templates/bulkdomain.tmpl

    r166 r207  
    2121                <td>Action:</td>
    2222                <td align="left">
    23 <TMPL_IF maymove>               <input type="radio" name="action" value="move" checked="checked" /> Move to group: <select name="destgroup">
     23<TMPL_IF maymove>               <input type="radio" name="bulkaction" value="move" checked="checked" /> Move to group: <select name="destgroup">
    2424<TMPL_LOOP name=grouplist>              <option value="<TMPL_VAR NAME=groupval>"<TMPL_IF groupactive> selected="selected"</TMPL_IF>><TMPL_VAR name=groupname></option>
    2525</TMPL_LOOP>
    2626                </select><br /></TMPL_IF>
    27 <TMPL_IF maystatus>             <input type="radio" name="action" value="deactivate" /> Deactivate<br />
    28                 <input type="radio" name="action" value="activate" /> Activate<br /></TMPL_IF>
    29 <TMPL_IF maydelete>             <input type="radio" name="action" value="delete" /> Delete<br /></TMPL_IF>
     27<TMPL_IF maystatus>             <input type="radio" name="bulkaction" value="deactivate" /> Deactivate<br />
     28                <input type="radio" name="bulkaction" value="activate" /> Activate<br /></TMPL_IF>
     29<TMPL_IF maydelete>             <input type="radio" name="bulkaction" value="delete" /> Delete<br /></TMPL_IF>
    3030                </td>
    3131        </tr>
  • trunk/templates/edgroup.tmpl

    r100 r207  
    99<input type="hidden" name="sid" value="<TMPL_VAR NAME=sid>" />
    1010<input type="hidden" name="page" value="edgroup" />
    11 <input type="hidden" name="action" value="updperms" />
     11<input type="hidden" name="grpaction" value="updperms" />
    1212<input type="hidden" name="gid" value="<TMPL_VAR NAME=gid>" />
    1313
  • trunk/templates/newgrp.tmpl

    r133 r207  
    1010<input type="hidden" name="sid" value="<TMPL_VAR NAME=sid>" />
    1111<input type="hidden" name="page" value="newgrp" />
    12 <input type="hidden" name="action" value="add" />
     12<input type="hidden" name="grpaction" value="add" />
    1313
    1414<table class="container" width="450">
  • trunk/templates/user.tmpl

    r143 r207  
    1010<input type="hidden" name="sid" value="<TMPL_VAR NAME=sid>" />
    1111<input type="hidden" name="page" value="user" />
    12 <input type="hidden" name="action" value="<TMPL_VAR NAME=action>" />
     12<input type="hidden" name="useraction" value="<TMPL_VAR NAME=action>" />
    1313<TMPL_IF uid><input type="hidden" name="uid" value="<TMPL_VAR NAME=uid>" /></TMPL_IF>
    1414<TMPL_IF gid><input type="hidden" name="gid" value="<TMPL_VAR NAME=gid>" /></TMPL_IF>
  • trunk/templates/useradmin.tmpl

    r144 r207  
    3737<TMPL_LOOP name=usertable>
    3838<tr class="row<TMPL_VAR name=bg>">
    39         <td align="left"><TMPL_IF eduser><a href="dns.cgi?sid=<TMPL_VAR NAME=sid>&amp;page=user&amp;action=edit&amp;user=<TMPL_VAR NAME=userid>"><TMPL_VAR NAME=username></a><TMPL_ELSE><TMPL_VAR NAME=username></TMPL_IF></td>
     39        <td align="left"><TMPL_IF eduser><a href="dns.cgi?sid=<TMPL_VAR NAME=sid>&amp;page=user&amp;useraction=edit&amp;user=<TMPL_VAR NAME=userid>"><TMPL_VAR NAME=username></a><TMPL_ELSE><TMPL_VAR NAME=username></TMPL_IF></td>
    4040        <td class="data_nowrap"><TMPL_VAR name=userfull></td>
    4141        <td><TMPL_VAR name=usertype></td>
Note: See TracChangeset for help on using the changeset viewer.