source: trunk/templates/user.tmpl@ 858

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

/trunk

Le sigh. Move a small fragment of HTML from the header back to all the
individual pages that need it, so we can selectively load and use
Javascript, and do some initial tweaking with body.onload.

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