head	1.5;
access;
symbols
	TIGRIS_0_9_0:1.4.0.8
	TIGRIS_0_8_4:1.4.0.6
	TIGRIS_NOV_12_2000:1.4
	OLDHELM:1.4.0.4
	TIGRIS_NOV_11_2000:1.4
	TIGRIS_SEP_13_2000:1.4.0.2
	TIGRIS_BASELINE:1.4;
locks; strict;
comment	@# @;


1.5
date	2001.01.02.18.13.27;	author leonardr;	state dead;
branches;
next	1.4;

1.4
date	2000.08.29.22.15.18;	author jrobbins;	state Exp;
branches;
next	1.3;

1.3
date	2000.05.02.03.09.41;	author jrobbins;	state Exp;
branches;
next	1.2;

1.2
date	2000.05.02.01.21.59;	author jrobbins;	state Exp;
branches;
next	1.1;

1.1
date	2000.02.02.05.22.43;	author jrobbins;	state Exp;
branches;
next	;


desc
@@


1.5
log
@/admin templates no longer used.
@
text
@<h1>Edit User $user </h1>


<ul>
#if ($changed) {
<font color="green">
    <li>Updated information for $user</li>
</font>
}
<font color=red>
#foreach $field in $validationErrors {
    <li>Invalid format for <strong>$field</strong></li>
}
#if ($passwordMismatch) {
    <li>Passwords do not match</li>
}
</font>
</ul>

<hr>

<h2>Edit User Information</h2>

#if ( $UserPermissions.accessAllowed("User - Change")  || $loginLoginName.equals($user)) {

<form method=POST action="$servletName">
<input type=hidden name=user value="$user">

<table border>
<tr><th>Real name</th>
<td><input type=text name=real_name value="$real_name" size=40></td></tr>
<tr><th>Email address</th>
<td><input type=text name=email value="$email" size=40></td></tr>
</table>

<p>
<input type=submit name="Button" value="Change Name And Email">
<input type=reset NAME="Button" value="Reset">
<input type=submit name="Button" value="Cancel">
</p>

</form>

} #else {
## base permission is User - View

<table border>
<tr><th>Real name</th>
<td>$real_name</td></tr>
<tr><th>Email Address</th>
<td>$email</td></tr>
</table>

}

<hr>

#if ( $UserPermissions.accessAllowed("User - Change")  || $loginLoginName.equals($user)) {

<h2>Change Password</h2>

<form method=POST>  
<input type=hidden name=user value="$user">

<table border>
<tr><th>Password</th>
<td><input type=password name=password1 size=40></td></tr>
<tr><th>Enter again</th>
<td><input type=password name=password2 size=40></td></tr>
</table>

<p>
<input type=submit name="Button" value="Change Password">
</p>

</form>

<hr>
}

<h2>Domain Privileges</h2>

#if ( $UserPermissions.accessAllowed("User - Change") ) {

<form method=POST action="$servletName">
<input type=hidden name=user value="$user">

<table border>
#foreach $priv in $privList {
    #if ($priv.Value) {
        #set $checked = " checked"
    } #else {
        #set $checked = ""
    }
    <tr><td><input type=checkbox name="$priv.Name"
             value=true$checked>$priv.Text</td></tr>
}

<tr>
<td valign=top>Admin Role:<br>
#foreach $r in $roles {
    #if ($r == $role) {
        #set $checked = " checked"
    } #else {
        #set $checked = ""
    }
&nbsp;&nbsp;&nbsp;<input type=radio name="role" value="$r" $checked> $r<br>
}

</td>
</tr>

</table>

</p>
<input type=submit name="Button" value="Change Privileges">
<input type=reset NAME="Button" value="Reset">
<input type=submit name="Button" value="Cancel">
</p>

</form>

} #else {
## base permission is User - View

<table border>
#foreach $priv in $privList {
    #if ($priv.Value) {
        #set $checked = "Yes"
    } #else {
        #set $checked = "No"
    }
    <tr><td>$checked</td> <td>$priv.Text</td></tr>
}

</table>


}


<hr>

<h2>Project Privileges</h2>

<p>User $user has listed privileges for the following projects:

<ul>
#foreach $project in $projects {
<li>
[<a href="ProjectUserEdit?project=$project.Project&user=$user">Edit</a>]
$project.Project ($project.LongName)
</li>
}
</ul>

#if ( $UserPermissions.accessAllowed("ProjectUser - Add") ) {
<ul>
<li>
To add project privileges, use the <a
href="ProjectList">edit project page</a>.
</li>
</ul>
}

#if ( $UserPermissions.accessAllowed("User - Delete") ) {

<h2>Other Operations</h2>

<ul>
<li><a href="UserDelete?user=$user">Delete User</a>
</ul>

}@


1.4
log
@now status messages are in green
@
text
@@


1.3
log
@changed loginUserName to loginLoginName, confusing huh?
@
text
@d6 1
d8 1
d32 1
a32 1
<tr><th>Email Address</th>
@


1.2
log
@now users can edit their own preferences
@
text
@d22 1
a22 1
#if ( $UserPermissions.accessAllowed("User - Change")  || $loginUserName.equals($user)) {
d56 1
a56 1
#if ( $UserPermissions.accessAllowed("User - Change")  || $loginUserName.equals($user)) {
@


1.1
log
@iniital checkin
@
text
@d22 1
a22 1
#if ( $UserPermissions.accessAllowed("User - Change") ) {
d56 1
a56 1
#if ( $UserPermissions.accessAllowed("User - Change") ) {
@

