##<!-- $Header: /cvs/sakai2/legacy/tools/src/webapp/vm/sitesetup/chef_site-addParticipant-confirm.vm,v 1.2 2005/05/28 03:04:36 ggolden.umich.edu Exp $ -->
## Confirming a participant to the site
<div class ="portletBody">
	<h3>
		$tlang.getString("addconf.confirming") $validator.escapeHtml($title)
	</h3>
	#if ($alertMessage)<div class="alertMessage">$tlang.getString("gen.alert") $validator.escapeHtml($alertMessage)</div>#end
	<p class="instruction">
		$tlang.getString("addconf.finish")<br />
		$tlang.getString("addconf.theywill") #if (!$notify) $tlang.getString("addconf.not") #end $tlang.getString("addconf.besent") 
	</p>
	<form action="#toolForm("SiteAction")" method="post">
		<table class ="listHier lines nolines" cellspacing="0" summary ="$tlang.getString("addconf.summary")">
			<tr>
				<th id="count">
					$tlang.getString("addconf.number")
				</th>
				<th id="name">
					<a href="#toolLinkParam("SiteAction" "doSort_roster" "criterion=participant_name")" title ="$tlang.getString('addconf.sortbyname')"> 
						$tlang.getString("addconf.name")
						#if ($currentSortedBy.equals("participant_name")) 
							#if ($currentSortAsc.equals("true")) 
								<img src = "#imageLink("sakai/sortascending.gif")" border="0" title ="$tlang.getString('addconf.snasc')" alt ="$tlang.getString('addconf.snasc')" /> 
							#else 
								<img src = "#imageLink("sakai/sortdescending.gif")" border="0" title ="$tlang.getString('addconf.sndesc')" alt ="$tlang.getString('addconf.sndesc')" /> 
							#end 
						#end 
					</a>
				</th>
				<th id="id">
					<a href="#toolLinkParam("SiteAction" "doSort_roster" "criterion=participant_uniqname")" title ="$tlang.getString('addconf.sortbyuniq')"> 
						$tlang.getString("addconf.userid")
						#if ($currentSortedBy.equals("participant_uniqname")) 
							#if ($currentSortAsc.equals("true")) 
								<img src = "#imageLink("sakai/sortascending.gif")" border="0" title ="$tlang.getString('addconf.suasc')" alt ="$tlang.getString('addconf.suasc')" /> 
							#else 
								<img src = "#imageLink("sakai/sortdescending.gif")" border="0" title ="$tlang.getString('addconf.sudesc')" alt ="$tlang.getString('addconf.sudesc')" /> 
							#end 
						#end 
					</a>
				</th>
				<th id="role">
					<a href="#toolLinkParam("SiteAction" "doSort_roster" "criterion=participant_role")" title ="$tlang.getString('addconf.sortbyrole')"> 
						$tlang.getString("addconf.role")
						#if ($currentSortedBy.equals("participant_role")) 
							#if ($currentSortAsc.equals("true")) 
								<img src = "#imageLink("sakai/sortascending.gif")" border="0" title ="$tlang.getString('addconf.srasc')" alt ="$tlang.getString('addconf.srasc')" /> 
							#else 
								<img src = "#imageLink("sakai/sortdescending.gif")" border="0" title ="$tlang.getString('addconf.srdesc')" alt ="$tlang.getString('addconf.srdesc')" /> 
							#end 
						#end 
					</a>
				</th>
			</tr>	
			#set($count = 1)
			#foreach ($participant in $participants)
				<tr>
					<td headers="count">
						$count
					</td>
					<td headers="id">
						<h4>
							$participant.getName()
						</h4>	
					</td>
					<td headers="role">
						$participant.getDisplayId()
					</td>
					<td>
						#if ($same_role)
							$selectedRole
						#else
							#foreach($role in $roles)
								#if($role.Id == $!selectedRoles.get($participant.getUniqname()))
									$role.Id
								#end
							#end
						#end
					</td>
				</tr>
				#set($count = $count + 1)
			#end
		</table>
		<input type="hidden" name="back" value="21" />
		<input type="hidden" name="template-index" value="22" />
		<p class ="act">
			<input type="submit" accesskey="s" class="active" name="eventSubmit_doAdd_participant" value="$tlang.getString('gen.finish')" />
			<input type="submit" accesskey="b" name="eventSubmit_doBack" value="$tlang.getString('gen.back')" />
			<input type="submit" accesskey="x" name="eventSubmit_doCancel" value="$tlang.getString('gen.cancel')" />
			
		</p>
	</form>
</div>
