##<!-- $Header: /cvs/sakai2/legacy/tools/src/webapp/vm/sitesetup/chef_site-newSiteCourseManual.vm,v 1.4 2005/06/03 14:08:16 gsilver.umich.edu Exp $ -->
<div class="portletBody">
	##if($menu)#toolbar($menu)#end<br/><br/>
		#if (!$!site)
			<h3>$tlang.getString("man.creat")</h3>
			<p class="step">
				$tlang.getString("nscourse.choose")
			</p>
		#else
			<h3>$tlang.getString("man.edit")</h3>
		#end
		#if ($alertMessage)
			<div class="alertMessage">$tlang.getString("gen.alert") $validator.escapeHtml($alertMessage)</div>
			<div class="clear"></div>
		#end
			#if ($!site)
				<p class="instruction">
				$tlang.getString("nscourse.already")
				</p>	
				#foreach($id in $!providerCourseList)
					<p class="indnt2">
						$id 
					</p>
				#end
				#foreach($id in $!manualCourseList)
					<p class="indnt2">
						$id <span class="highlight">$tlang.getString("man.requested")</span>
					</p>
				#end
			#end
			<form name = "requestCourseForm" method = "post" action="#toolForm("$action")">
				<input type="hidden" name="option" value="add" />
				<input type="hidden" name="eventSubmit_doManual_add_course" value="x" />
				<h4> 
					$tlang.getString("nscourse.acad")
					$term.Id
				</h4>
				#if ($!selectedProviderCourse)
				<p class="instruction">$tlang.getString("man.sofar") #if($!site) $tlang.getString("man.toaddto") #else $tlang.getString("java.for") #end $tlang.getString("man.this")</p> 
				<ul>
					#foreach ($item in $!selectedProviderCourse)
						<li>$item </li>
					#end
				</ul>

				#end
				<p class="instruction">
					#if (!$!isFutureTerm)
						$tlang.getString("man.enter")
					#else
						$tlang.getString("man.enter2")
					#end
					 <span class="reqStarInline">*</span> $tlang.getString("man.means")
				</p>
				<table  class="listHier lines nolines"  style="width:50%" border="0" cellpadding="0" cellspacing="0" summary="$tlang.getString("man.list.summary")">
					<tr>
						#set($bound = $!form_requiredFields.size())
						#set($bound = $bound - 1)
						<th id="rownNum">
							&nbsp;
						</th>
						#foreach ($fieldCount in [0..$!bound])
								#set($field = $!form_requiredFields.get($fieldCount))
									<th id="$!field">	
										<span class ="reqStarInline">*</span>$field
									</th>
						#end
					</tr>
					#set ($count = 1)
					#set ($rowcount = 1)
					#foreach ($k in [0..$listSize])
						#set($courseFieldValues = $!fieldValues.get($k))
						<tr>
							<td headers="rownNum">$rowcount</td>
							#foreach ($fieldCount in [0..$!bound])
								#set($field = $!form_requiredFields.get($fieldCount))
								#set($fieldSize = 8)
								#set($fieldSize = $!form_requiredFieldsSizes.get($fieldCount))
								
								<td headers="$field" class="shorttext">
									<label  for="id-$field$rowcount" class="skip">$field</label>
									<input type="text" name="$field$k"  tabindex="$count" size="$!fieldSize" maxlength="$!fieldSize" value="$!courseFieldValues.get($fieldCount)"  id="id-$field$rowcount" /> 
									#set ($count = $count + 1)

								</td>
							#end
						</tr>
										#set ($rowcount = $rowcount + 1)
						#end
					<tr>
						<td></td>
						<td colspan="3">
						<label for="number" class="skip">$tlang.getString("man.addmore.label")</label>
							<select name="number" id="number" onchange="document.requestCourseForm.option.value='change';javascript:document.requestCourseForm.submit();" tabindex = "$count">
								<option selected="selected">$tlang.getString("man.addmore")</option>
								#foreach ($j in [1..3])
									<option value="$j">$j $tlang.getString("enw.more")</option>
								#end
							</select>
						</td>
					</tr>
				</table>
				<div>
					#if ($!isFutureTerm)
						<h4>$tlang.getString("man.siteroster")</h4>
						<p class="instruction">$tlang.getString("man.notverifyfuture1")$!weeksAhead $tlang.getString("man.notverifyfuture2")</p>
					#else
						<h4>$tlang.getString("man.siteauth")</h4>
						<p class="instruction">$tlang.getString("man.notverify")</p>
					#end
				</div>
				#if (!$!isFutureTerm)
					<div class="shorttext required">
						<span class="reqStar">*</span>						
						<label for="uniqname">		
						   $tlang.getString("man.authoriz")
						</label>
						<input type="text" name="uniqname"  id="uniqname"   size="40" value="$!value_uniqname" />
					</div>
					<p class="labelindnt instruction">
					   $tlang.getString("man.email")
					</p>
					<div class="shorttext">
						<label for="additional" class="block">
							$tlang.getString("man.spec")
						</label>
						<textarea id="additional"   name="additional" rows="4" cols="40" wrap="virtual">$validator.escapeHtmlTextarea($form_additional)</textarea>
					</div>
					<p  class="instruction labelindnt">
						$tlang.getString("man.please")
					</p>

				#end
			#set ($count = $count + 1)
			<input type="hidden" name="back" value="$back" />
			<input type="hidden" name="template-index" value="37" />
			<input type="hidden" name="continue" value="4" />
			<p class="act">
				<input type="button" name="Add" 
						value="$tlang.getString('gen.continue')" 
						class="active" 
						accesskey="s" 
						onclick="document.requestCourseForm.option.value='add'; document.requestCourseForm.submit(); return false;" />
				<input type="button" name="Back" 
						value="$tlang.getString('gen.back')"
						accesskey="b"
						onclick="document.requestCourseForm.option.value='back'; document.requestCourseForm.submit(); return false;" />
				<input type="button" name="Cancel" 
						value="$tlang.getString('gen.cancel')"
						accesskey="x"
						onclick="document.requestCourseForm.option.value='cancel'; document.requestCourseForm.submit(); return false;" />
			</p>
		</form>
	</div>
