2006/unicorn/WebContent/WEB-INF/resources/templates index.vm,1.1.2.5,1.1.2.6

Update of /sources/public/2006/unicorn/WebContent/WEB-INF/resources/templates
In directory hutz:/tmp/cvs-serv28928/WebContent/WEB-INF/resources/templates

Modified Files:
      Tag: dev2
	index.vm 
Log Message:
added ajax on index page

Index: index.vm
===================================================================
RCS file: /sources/public/2006/unicorn/WebContent/WEB-INF/resources/templates/Attic/index.vm,v
retrieving revision 1.1.2.5
retrieving revision 1.1.2.6
diff -u -d -r1.1.2.5 -r1.1.2.6
--- index.vm	20 Aug 2009 15:43:38 -0000	1.1.2.5
+++ index.vm	21 Aug 2009 07:04:45 -0000	1.1.2.6
@@ -1,16 +1,16 @@
 #set ($title = "Unicorn")
 #set ($css = ['base.css'])
-#set ($js = ['scripts/mootools.js', 'scripts/w3c-validator.js'])
+#set ($js = ['scripts/mootools-1.2.3-core-nc.js', 'scripts/mootools-1.2.3.1-more.js', 'scripts/w3c-validator.js'])
 #parse( 'includes/head.vm' )
 
 #macro (display_tasklist)
 				<form method="get" action="">
 					<p class="instructions">$select-a-task</p>
 					<p>
-						<label title="Address of page to Validate"><span>$task:</span>
+						<label><span>$task:</span>
 							<select name="${param_prefix}task" class="ucn_task">
 #foreach( $task in $tasklist )
-								<option value="$task.getID()" #if ($task == $current_task) selected="selected" #end>$task.getLongName("${lang}")</option>
+								<option value="$task.getID()" title="$task.getDescription($lang)" #if ($task == $current_task) selected="selected" #end>$task.getLongName("${lang}")</option>
 #end
 							</select>
 						</label>
@@ -18,15 +18,15 @@
 							<input type="hidden" name="${param_prefix}lang" value="$lang" />
 							<input type="submit" value="Ok" class="change_task" />
 						</label>
-						<span class="task_description">$current_task.getDescription("${lang}")</span>
+						<span class="task_description">$current_task.getDescription($lang)</span>
 					</p>
 				</form>
 #end
 
 #macro (submit_button)
 					<p class="submit_button">
-						<input type="hidden" name="${param_prefix}lang" value="$lang" />
-						<input type="hidden" name="${param_prefix}task" value="$current_task.getID()" />
+						<input type="hidden" name="${param_prefix}lang" value="$lang" class="lang" />
+						<input type="hidden" name="${param_prefix}task" value="$current_task.getID()" class="task" />
 						<label title="$submit_title">
 							<input type="submit" value="$submit" class="js" />
 						</label>
@@ -43,45 +43,51 @@
 			<fieldset id="validate-by-uri" class="tabset_content front">
 				<legend class="tabset_label">$legend-by-uri</legend>
 #display_tasklist()
-				<form method="get" action="observe">
+				<form method="get" action="observe"  class="ucn">
 					<p class="instructions">$instruction-by-uri</p>
 					<p>
 						<label title="$uri_title" for="${param_prefix}uri"><span>$uri:</span>
 							<input type="text" name="${param_prefix}uri" id="${param_prefix}uri" size="45" />
 						</label>
 					</p>
+					<div class="options_container">
 #set ($param_suffix="uri")
 #parse('includes/parameters.vm')
+					</div>
 #submit_button
 				</form>
 			</fieldset>
 			<fieldset id="validate-by-upload" class="tabset_content front">
 				<legend class="tabset_label">$legend-by-upload</legend>
 #display_tasklist()
-				<form method="post" enctype="multipart/form-data" action="observe">
+				<form method="post" enctype="multipart/form-data" action="observe" class="ucn">
 					<p class="instructions">$instruction-by-upload</p>
 					<p>
 						<label title="$instruction-by-upload" for="${param_prefix}file"><span>$local_file:</span>
 							<input type="file" id="${param_prefix}file" name="${param_prefix}file" size="30" />
 						</label>
 					</p>
+					<div class="options_container">
 #set ($param_suffix="upload")
 #parse('includes/parameters.vm')
+					</div>
 #submit_button
 				</form>
 			</fieldset>
 			<fieldset id="validate-by-input" class="tabset_content front">
 				<legend class="tabset_label">$legend-by-input</legend>
 #display_tasklist()
-				<form action="observe" method="get">
+				<form action="observe" method="get"  class="ucn">
 					<p class="instructions">$instruction-by-input</p>
 					<p>
 						<textarea name="${param_prefix}text" rows="12" cols="70"></textarea>
 						<span id="${param_prefix}text_mime"></span>
 						<input type="hidden" name="${param_prefix}lang" value="fr" />
 					</p>      
+					<div class="options_container">
 #set ($param_suffix="input")
 #parse( 'includes/parameters.vm' )
+					</div>
 #submit_button
 				</form>
 			</fieldset>
@@ -90,7 +96,7 @@
 	<div class="intro" id="don_program">
 		<script type="text/javascript" src="http://www.w3.org/QA/Tools/don_prog.js"></script>
 	</div>
-	<div id="ucn_news">
+	<!--<div id="ucn_news">
 		<h1>Latest News</h1>
 		<h2 id="news_200809">September 2008: public preview, phase 2</h2>
 		<p>The public preview of the Unicorn framework gets a massive update after two summers of code and spec improvements. All the changes, aimed at making the unicorn framework faster, more reliable and easier to integrate with validators and web observation tools, include:</p>
@@ -107,6 +113,6 @@
 		<p>Welcome to the public preview of the unicorn tool. To learn more about this tool
 		or how you can provide feedback for this preview, check the <a href="http://www.w3.org/QA/2006/09/unicorn_public_preview.html">W3C QA Weblog</a>.</p>
 		<p><strong>Note</strong>: You need to enable Javascript to be able to check documents.</p>
-	</div>
+	</div>-->
 
 #parse( 'includes/footer.vm' )
\ No newline at end of file

Received on Friday, 21 August 2009 07:04:57 UTC