W3C home > Mailing lists > Public > www-validator-cvs@w3.org > March 2010

2006/unicorn/WebContent/WEB-INF/resources/templates language.form.vm,1.10,1.11

From: Thomas Gambet via cvs-syncmail <cvsmail@w3.org>
Date: Fri, 05 Mar 2010 13:51:16 +0000
To: www-validator-cvs@w3.org
Message-Id: <E1NnXvw-0004RE-D5@lionel-hutz.w3.org>
Update of /sources/public/2006/unicorn/WebContent/WEB-INF/resources/templates
In directory hutz:/tmp/cvs-serv17046/WebContent/WEB-INF/resources/templates

Modified Files:
	language.form.vm 
Log Message:
added tasklist properties to the translation form

Index: language.form.vm
===================================================================
RCS file: /sources/public/2006/unicorn/WebContent/WEB-INF/resources/templates/language.form.vm,v
retrieving revision 1.10
retrieving revision 1.11
diff -u -d -r1.10 -r1.11
--- language.form.vm	22 Oct 2009 15:20:55 -0000	1.10
+++ language.form.vm	5 Mar 2010 13:51:14 -0000	1.11
@@ -30,7 +30,7 @@
 				<thead>
 					<tr>
 						<th scope="col" class="first_col">$defaultProps.get("language") properties</th>
-						#set($percent = 100 * $math.div($math.sub($prop.size(), 2), $math.sub($defaultProps.size(), 2)))
+						#set($percent = 100 * $math.div($math.sub($math.add($prop.size(), $metadatas.size()), 4), $math.sub($math.add($defaultProps.size(), $defaultMetadata.size()), 4)))
 						<th scope="col">$prop.get("language") $percent.intValue()%</th>
 					</tr>
 				</thead>
@@ -43,6 +43,15 @@
 						</tr>
 						#end
 					#end
+					#foreach($key in $defaultMetadata.keySet())
+						#if (!$metadatas.get($key) && $key != "lang" && $key != "language")
+						<tr>
+							<th class="property_name" scope="row">$key <p>$!esc.html($defaultMetadata.get($key))</p></th>
+							<td class="missing"><input type="text" name="metadata_$metadatas.get('lang')_$key" value="$!esc.html($!metadatas.get($key))" /></td>
+						</tr>
+						#end
+					#end
+					
 					#foreach($key in $defaultProps.keySet())
 						#if ($key != "lang" && $key != "language" && $prop.get($key))
 						<tr>
@@ -51,6 +60,14 @@
 						</tr>
 						#end
 					#end
+					#foreach($key in $defaultMetadata.keySet())
+						#if ($key != "lang" && $key != "language" && $metadatas.get($key))
+						<tr>
+							<th class="property_name" scope="row">$key <p>$!esc.html($defaultMetadata.get($key))</p></th>
+							<td #if(!$metadatas.get($key))class="missing"#end><input type="text" name="metadata_$metadatas.get('lang')_$key" value="$!esc.html($!metadatas.get($key))" /></td>
+						</tr>
+						#end
+					#end
 				</tbody>
 			</table>
 		
Received on Friday, 5 March 2010 13:51:17 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Thursday, 26 April 2012 12:55:19 GMT