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

Last change on this file since 623 was 548, checked in by Kris Deugau, 11 years ago

/branches/stable

Merge reverse DNS work and object conversion from /trunk, part 5

Includes changes through r543 with a few more minor conflicts.

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