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

Last change on this file since 790 was 649, checked in by Kris Deugau, 10 years ago

/branches/stable

Subtle bugfix merge! All changes from /trunk r589 through r648 merged.

File size: 3.5 KB
RevLine 
[649]1<body>
2<div id="main">
3
[24]4<table class="wholepage"><tr>
5<TMPL_INCLUDE NAME="menu.tmpl">
6
[100]7<td align="center" valign="top">
[24]8
[548]9<form action="<TMPL_VAR NAME=script_self>" method="post">
[38]10<fieldset>
[24]11
[67]12<input type="hidden" name="page" value="user" />
[207]13<input type="hidden" name="useraction" value="<TMPL_VAR NAME=action>" />
[82]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>
[38]16
[65]17<table border="0" cellspacing="2" cellpadding="2" width="450">
18<TMPL_IF add_failed> <tr>
[545]19 <td class="errhead" colspan="2"><TMPL_VAR NAME=errmsg></td>
[65]20 </tr></TMPL_IF>
[82]21 <tr class="darkrowheader"><td colspan="2" align="center"><TMPL_IF add>Add<TMPL_ELSE>Edit</TMPL_IF> User</td></tr>
[24]22
[38]23 <tr class="datalinelight">
24 <td>Username:</td>
25 <td align="left"><input type="text" name="uname" value="<TMPL_VAR NAME=uname>" /></td>
[24]26 </tr>
[38]27 <tr class="datalinelight">
[24]28 <td>First Name:</td>
[38]29 <td align="left"><input type="text" name="fname" value="<TMPL_VAR NAME=fname>" /></td>
[24]30 </tr>
[38]31 <tr class="datalinelight">
[24]32 <td>Last Name:</td>
[38]33 <td align="left"><input type="text" name="lname" value="<TMPL_VAR NAME=lname>" /></td>
[24]34 </tr>
[38]35 <tr class="datalinelight">
[24]36 <td>Password:</td>
[38]37 <td align="left"><input type="password" name="pass1" value="<TMPL_VAR NAME=pass1>" /></td>
[24]38 </tr>
[38]39 <tr class="datalinelight">
[24]40 <td>Confirm Password:</td>
[38]41 <td align="left"><input type="password" name="pass2" value="<TMPL_VAR NAME=pass2>" /></td>
[24]42 </tr>
[38]43 <tr class="datalinelight">
[24]44 <td>Account Type:</td>
[67]45<TMPL_IF is_admin>
[38]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>
[24]48</TMPL_LOOP> </select></td>
[67]49<TMPL_ELSE>
50 <td>User</td>
51</TMPL_IF>
[24]52 </tr>
[38]53 <tr class="datalinelight">
[82]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>
[24]56 </tr>
[65]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">
[82]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]65 </td>
66</tr>
[67]67<TMPL_VAR NAME=grpperms>
[65]68
[67]69<TMPL_IF is_admin>
[65]70<tr class="tableheader">
71 <td align="center" colspan="5">
[82]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
[65]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">
[143]79 <option value="0">-</option>
[65]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>
[67]84</TMPL_IF>
85
[65]86<tr class="tableheader">
87 <td align="center" colspan="5">
[82]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
[65]89 </td>
90</tr>
[67]91<TMPL_INCLUDE name="permlist.tmpl">
[65]92
93</table>
94
95 </td>
96 </tr>
97
[82]98 <tr><td colspan="2" class="tblsubmit"><input type="submit" value="<TMPL_IF add>Add<TMPL_ELSE>Update</TMPL_IF> user" /></td></tr>
[65]99
[24]100 </table>
101
[38]102</fieldset>
[24]103</form>
104
105</td></tr>
106</table>
Note: See TracBrowser for help on using the repository browser.