source: trunk/templates/newgrp.tmpl@ 359

Last change on this file since 359 was 207, checked in by Kris Deugau, 13 years ago

/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.

File size: 1.5 KB
RevLine 
[19]1<!-- <TMPL_VAR NAME=sid> -->
2<table class="wholepage"><tr>
3<TMPL_INCLUDE NAME="menu.tmpl">
4
[100]5<td align="center" valign="top">
[38]6
[19]7<form action="dns.cgi">
[38]8<fieldset>
[19]9
[38]10<input type="hidden" name="sid" value="<TMPL_VAR NAME=sid>" />
11<input type="hidden" name="page" value="newgrp" />
[207]12<input type="hidden" name="grpaction" value="add" />
[19]13
[38]14<table class="container" width="450">
[19]15<tr><td>
[38]16 <table border="0" cellspacing="2" cellpadding="2" width="100%">
[66]17<TMPL_IF add_failed> <tr><td class="errhead" colspan="4">Error adding group <TMPL_VAR NAME=newgroup>: <TMPL_VAR NAME=errmsg></td></tr></TMPL_IF>
18 <tr class="darkrowheader"><td colspan="4" align="center">Add Group</td></tr>
[19]19
[38]20 <tr class="datalinelight">
[66]21 <td colspan=2>Group Name:</td>
22 <td align="left" colspan=2><input type="text" name="newgroup" value="<TMPL_VAR NAME=newgroup>" /></td>
[19]23 </tr>
[38]24 <tr class="datalinelight">
[66]25 <td colspan=2>Add as subgroup of:</td>
26 <td colspan=2><select name="pargroup">
[38]27<TMPL_LOOP name=pargroup> <option value="<TMPL_VAR NAME=groupval>"<TMPL_IF groupactive> selected="selected"</TMPL_IF>><TMPL_VAR name=groupname></option>
[19]28</TMPL_LOOP>
29 </select></td>
30 </tr>
[66]31 <tr class="darkrowheader border">
32 <td colspan="4" align="center">Default permissions for users created in this group:</td>
33 </tr>
34<TMPL_INCLUDE name="permlist.tmpl">
35 <tr class="darkrowheader">
36 <td colspan="4" align="center"><input type="submit" value="Add group" /></td>
37 </tr>
[19]38 </table>
39 </td>
40</tr>
41</table>
42
[38]43</fieldset>
[19]44</form>
45
46</td></tr>
47</table>
Note: See TracBrowser for help on using the repository browser.