2006/unicorn/WebContent/WEB-INF/resources/templates index.vm,1.6,1.7

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

Modified Files:
	index.vm 
Log Message:
input values are kept if an error is thrown

Index: index.vm
===================================================================
RCS file: /sources/public/2006/unicorn/WebContent/WEB-INF/resources/templates/index.vm,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -d -r1.6 -r1.7
--- index.vm	9 Sep 2009 14:34:20 -0000	1.6
+++ index.vm	10 Sep 2009 15:37:09 -0000	1.7
@@ -14,7 +14,7 @@
 		</ul>
 
 		<div id="fields">
-			<form method="get" action="">
+			<form method="get" action="./">
 				<fieldset>
 					<legend>$select-a-task</legend>
 					<div class="input">
@@ -40,7 +40,7 @@
 						<p class="instructions">$instruction-by-uri</p>
 						<p>
 							<label title="$uri_title" for="ucn_uri"><span>$uri:</span>
-								<input type="text" name="${param_prefix}uri" id="ucn_uri" size="45" />
+								<input type="text" name="${param_prefix}uri" id="ucn_uri" size="45" #if($param_uri)value="$param_uri" #end/>
 							</label>
 						</p>
 					</div>
@@ -69,10 +69,10 @@
 					<div class="input">
 						<p class="instructions">$instruction-by-input</p>
 						<p>
-							<textarea name="${param_prefix}text" rows="12" cols="70"></textarea>
+							<textarea name="${param_prefix}text" rows="12" cols="70">#if($param_text)$param_text #end</textarea>
 							<select id="ucn_text_mime" name="${param_prefix}text_mime">
 							#foreach($mime in $current_task.SupportedMimeTypes)  
-								<option value="$mime">$mime</option>
+								<option value="$mime" #if($param_text_mime && $param_text_mime == $mime)selected="selected"#end>$mime</option>
 							#end
 							</select>
 						</p> 

Received on Thursday, 10 September 2009 15:37:21 UTC