source: branches/stable/templates/user.tmpl@ 443

Last change on this file since 443 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: 3.6 KB
Line 
1<!-- <TMPL_VAR NAME=sid> -->
2<table class="wholepage"><tr>
3<TMPL_INCLUDE NAME="menu.tmpl">
4
5<td align="center" valign="top">
6
7<form action="dns.cgi" method="post">
8<fieldset>
9
10<input type="hidden" name="sid" value="<TMPL_VAR NAME=sid>" />
11<input type="hidden" name="page" value="user" />
12<input type="hidden" name="useraction" value="<TMPL_VAR NAME=action>" />
13<TMPL_IF uid><input type="hidden" name="uid" value="<TMPL_VAR NAME=uid>" /></TMPL_IF>
14<TMPL_IF gid><input type="hidden" name="gid" value="<TMPL_VAR NAME=gid>" /></TMPL_IF>
15
16<table border="0" cellspacing="2" cellpadding="2" width="450">
17<TMPL_IF add_failed> <tr>
18 <td class="errhead" colspan="2">Error <TMPL_IF add>adding<TMPL_ELSE>updating</TMPL_IF> user <TMPL_VAR NAME=uname>: <TMPL_VAR NAME=errmsg></td>
19 </tr></TMPL_IF>
20 <tr class="darkrowheader"><td colspan="2" align="center"><TMPL_IF add>Add<TMPL_ELSE>Edit</TMPL_IF> User</td></tr>
21
22 <tr class="datalinelight">
23 <td>Username:</td>
24 <td align="left"><input type="text" name="uname" value="<TMPL_VAR NAME=uname>" /></td>
25 </tr>
26 <tr class="datalinelight">
27 <td>First Name:</td>
28 <td align="left"><input type="text" name="fname" value="<TMPL_VAR NAME=fname>" /></td>
29 </tr>
30 <tr class="datalinelight">
31 <td>Last Name:</td>
32 <td align="left"><input type="text" name="lname" value="<TMPL_VAR NAME=lname>" /></td>
33 </tr>
34 <tr class="datalinelight">
35 <td>Password:</td>
36 <td align="left"><input type="password" name="pass1" value="<TMPL_VAR NAME=pass1>" /></td>
37 </tr>
38 <tr class="datalinelight">
39 <td>Confirm Password:</td>
40 <td align="left"><input type="password" name="pass2" value="<TMPL_VAR NAME=pass2>" /></td>
41 </tr>
42 <tr class="datalinelight">
43 <td>Account Type:</td>
44<TMPL_IF is_admin>
45 <td align="left"><select name="accttype">
46<TMPL_LOOP name=actypelist> <option value="<TMPL_VAR NAME=actypeval>"<TMPL_IF typesel> selected="selected"</TMPL_IF>><TMPL_VAR NAME=actypename></option>
47</TMPL_LOOP> </select></td>
48<TMPL_ELSE>
49 <td>User</td>
50</TMPL_IF>
51 </tr>
52 <tr class="datalinelight">
53 <td><TMPL_IF add>Create as active user<TMPL_ELSE>User is active</TMPL_IF></td>
54 <td><input type="checkbox" name="makeactive" checked="checked" /></td>
55 </tr>
56
57 <tr>
58 <td colspan="2">
59
60<table style="border: thin solid #000000;" border="0" cellspacing="5" cellpadding="0" width="100%">
61<tr class="tableheader">
62 <td align="center" colspan="5">
63 <input type="radio" name="perms_type" value="inherit" <TMPL_IF set_permgroup><TMPL_IF perm_inherit>checked="checked"</TMPL_IF><TMPL_ELSE>checked="checked"</TMPL_IF>/> Use permissions from group
64 </td>
65</tr>
66<TMPL_VAR NAME=grpperms>
67
68<TMPL_IF is_admin>
69<tr class="tableheader">
70 <td align="center" colspan="5">
71 <input type="radio" name="perms_type" value="clone" <TMPL_IF set_permgroup><TMPL_IF perm_clone> checked="checked"</TMPL_IF></TMPL_IF>/> Clone permissions from an existing user
72 </td>
73</tr>
74<tr>
75 <td align="center" colspan="5">
76 Note: Only users in the current group may be cloned<br>
77 <select name="clonesrc">
78 <option value="0">-</option>
79 <TMPL_LOOP name=clonesrc><option value="<TMPL_VAR NAME=uid>"<TMPL_IF selected> selected</TMPL_IF>><TMPL_VAR NAME=username></option>
80 </TMPL_LOOP></select>
81 </td>
82</tr>
83</TMPL_IF>
84
85<tr class="tableheader">
86 <td align="center" colspan="5">
87 <input type="radio" name="perms_type" value="custom" <TMPL_IF set_permgroup><TMPL_IF perm_custom> checked="checked"</TMPL_IF></TMPL_IF>/> Specify permissions
88 </td>
89</tr>
90<TMPL_INCLUDE name="permlist.tmpl">
91
92</table>
93
94 </td>
95 </tr>
96
97 <tr><td colspan="2" class="tblsubmit"><input type="submit" value="<TMPL_IF add>Add<TMPL_ELSE>Update</TMPL_IF> user" /></td></tr>
98
99 </table>
100
101</fieldset>
102</form>
103
104</td></tr>
105</table>
Note: See TracBrowser for help on using the repository browser.