## $Header: /cvs/sakai2/legacy/tools/src/webapp/vm/admin/chef_realms_edit_user.vm,v 1.2 2005/05/24 20:22:20 gsilver.umich.edu Exp $ 

<script type="text/javascript" language="JavaScript">
  focus_path = ["id"];
</script>
<div class="portletBody">
#if($menu)
	#toolbar($menu)
#end
		<h3>
			$tlang.getString("realm.user.edit") $validator.escapeHtml($!realm.Id)
		</h3>
		#if ($alertMessage)<div class="alertMessage">$tlang.getString("realm.user.alert") $validator.escapeHtml($alertMessage)</div>#end
		<p class="instruction">$tlang.getString("realm.user.used") $validator.escapeHtml($!realm.Description)</p>
		
		<p class="instruction">
			$tlang.getString("realm.user.set")
		</p>
		<form name="$form-name" action="#toolForm("$action")" method="post">
			<h4>
				$tlang.getString("realm.user.user")
			</h4>	
			<p class="shorttext required">
				#if(!$user)<span class="reqStar">*</span>#end
				<label #if(!$user) for="eid" #end>
					 $tlang.getString("realm.user.id")
				</label>
					#if(!$user)<input type="text" name="eid" id="eid" />#else$validator.escapeHtml($user.Eid)#end
			</p>
			<h4>
				$tlang.getString("realm.user.role")
			</h4>	
			#foreach ($role in $allRoles)
				<p class="checkbox">
					<input type="radio" name="roles" id="role$velocityCount" value="$role.Id" #if($roles.Id==$role.Id)checked="checked"#end  />
					<label for="role$velocityCount">$role.Id</label>
				</p>	
			#end
				<h4>	
					$tlang.getString("realm.user.continue")
				</h4>	

					<div class="act">
						<input type="submit" name="eventSubmit_doDone_user" value="$tlang.getString("realm.user.done")" />
					</div>
				<h4>	
					$tlang.getString("realm.user.complete")
				</h4>	

					<div class="act">
						<input type="submit" class="active"  name="eventSubmit_doSave_user" value="$tlang.getString("realm.user.save")" accesskey="s" />
						<input type="submit" name="eventSubmit_doCancel" value="$tlang.getString("realm.user.cancel")" accesskey="x"/>
					</div>
		</form>
	</div>

