source: trunk/templates/user.tmpl@ 74

Last change on this file since 74 was 67, checked in by Kris Deugau, 14 years ago

/trunk

checkpoint
Add user ACL handling nearing function
Add user/edit user pages merged; they're next to identical anyway
Group list images tweaked with proper "alpha channel", CSS fiddled again

  • final arrangement will probably be a couple of small triangles; pointing right for an expandable group, down for an expanded one

Option to add user to a different group removed

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