##<!-- $Header: /cvs/sakai2/legacy/tools/src/webapp/vm/sitesetup/chef_site-sitemanage-differentRoles.vm,v 1.2 2005/05/19 20:00:26 gsilver.umich.edu Exp $ -->
## Add participants to the worksite with different role
<div class ="portletBody">
	<h3>
 		$tlang.getString("sitegen.managerol.choose")
	</h3>
		#if ($alertMessage)<div class="alertMessage">$tlang.getString("sitegen.managerol.alert") $validator.escapeHtml($alertMessage)</div>#end
		<p class="instruction">
			$tlang.getString("sitegen.managerol.choose1") a <span class="reqStarInline"> *</span>. 
		</p>
		<br />
		<ul class="attachList indnt1">
			#foreach ($role in $roles)
				#set ($description = false)
				<li>
					$role.Id
						#set ($description = $roleDescription.get($role.Id))
						#if ($!description)
							<span class="indnt2" style="display:block">
								$!description
							</span>
						#end
				</li>
			#end
		</ul>
		<form action="#toolForm("SiteAction")" method="post">
		<table cellspacing="0" cellpadding="0" class ="listHier" summary ="" >
			<tr>
				<th>
					$tlang.getString("sitegen.managerol.username")
				</th>
				<th>
					$tlang.getString("sitegen.managerol.role")
				</th>
			</tr>
			#foreach ($participant in $participantList)
				#set($uniqname = $participant.getUniqname())
				<tr>
					<td>
						<label for="$uniqname">$uniqname</label>
					</td>
					<td  class="required">
						<span class="reqStar"> *</span><select name="role$uniqname" id="$uniqname">
							<option value="no_role_selected"
								#if ($!selectedRoles.get($uniqname) == "no_role_selected")
									selected="selected"
								#end
							>
								$tlang.getString("sitegen.managerol.please")
							</option>
							#foreach($role in $roles)
								<option value ="$role.Id"
									#if($role.Id == $!selectedRoles.get($uniqname))
										selected="selected"
									#end
								>
									$role.Id
								</option>
							#end
						</select>
					</td>
				</tr>
			#end
		</table>
		<input type="hidden" name="back" value="33" />
		<input type="hidden" name="template-index" value="35" />
		<p class ="act">
			<input type="submit" class="active" name="eventSubmit_doSitemanage_participants_save" value="$tlang.getString("sitegen.managerol.save")" />
			<input type="submit" name="eventSubmit_doCancel" value="$tlang.getString("sitegen.managerol.cancel")" />
		</p>
	</form>
</div>
