##<!-- $Header: /cvs/sakai2/legacy/tools/src/webapp/vm/sitesetup/chef_site-siteInfo-import.vm,v 1.4 2005/06/06 20:06:02 htripath.indiana.edu Exp $ -->
<div class="portletBody">
	##if($menu)#toolbar($menu)#end<br/><br/>
	<h3>
		$tlang.getString("sitinfimp.reuse")
	</h3>
	#if ($alertMessage)
		<div class="alertMessage">$tlang.getString("sitinfimp.alert") $validator.escapeHtml($alertMessage)</div>
		<div class="clear"></div>
	#end
	<form name="featuresForm" action="#toolForm("$action")" method="post">
		## import is possible when use has maintain rights on at least one site other than the current one
		#if ($!sites && $sites.size()>1)
			<p class="step">
				$tlang.getString("sitinfimp.reuse")
			</p>
			<p class="instruction">
				$tlang.getString("sitinfimp.youcan")
			</p>
			#set ($siteIDCounter =0)
			#foreach($site in $sites)
			#set ($siteIDCounter = $siteIDCounter + 1)
				#if ($!currentSite && ($site.Id != $!currentSite.Id))
					<p class="checkbox indnt3">
					<input type="checkbox" name="importSites" id="site_$siteIDCounter" value="$site.getId()" 
						#if ($!importSiteList.containsKey($!site))
							checked="checked"
						#end
					 />
						<label for="site_$siteIDCounter">
							$validator.escapeHtml($site.getTitle())
						</label>
					</p>	
				#end
			#end
			<input type="hidden" name="back" value="12" />
			<input type="hidden" name="template-index" value="28" />
			<input type="hidden" name="continue" value="27" />
			<p class="act">
				<input type="submit" accesskey="s" class="active" name="eventSubmit_doContinue" value="$tlang.getString("sitinfimp.con")" />
				<input type="submit" accesskey="x" name="eventSubmit_doCancel" value="$tlang.getString("sitinfimp.can")" />
			</p>
		#else
			## show "no site available warning"
			<p class="instruction">
				$tlang.getString("import.noOtherSite")
			</p>
			<p class="act">
				<input type="submit" accesskey="x" name="eventSubmit_doCancel" value="$tlang.getString("sitinfimp.can")" />
			</p>
		#end
	</form>
</div>
