- From: Thomas Gambet via cvs-syncmail <cvsmail@w3.org>
- Date: Wed, 07 Oct 2009 15:01:06 +0000
- To: www-validator-cvs@w3.org
Update of /sources/public/2006/unicorn/WebContent/WEB-INF/resources/templates In directory hutz:/tmp/cvs-serv29097/WebContent/WEB-INF/resources/templates Modified Files: language.vm language.form.vm Log Message: updated Index: language.vm =================================================================== RCS file: /sources/public/2006/unicorn/WebContent/WEB-INF/resources/templates/language.vm,v retrieving revision 1.10 retrieving revision 1.11 diff -u -d -r1.10 -r1.11 --- language.vm 6 Oct 2009 16:14:19 -0000 1.10 +++ language.vm 7 Oct 2009 15:01:03 -0000 1.11 @@ -35,7 +35,7 @@ <tr> <th scope="col">Property</th> #foreach($prop in $languageProps) - #set($percent = 100 * $math.div($prop.size(), $defaultProps.size())) + #set($percent = 100 * $math.div($math.sub($prop.size(), 1), $math.sub($defaultProps.size(), 1))) <th scope="col">$prop.get("language")<br />$percent.intValue()%</th> #end </tr> Index: language.form.vm =================================================================== RCS file: /sources/public/2006/unicorn/WebContent/WEB-INF/resources/templates/language.form.vm,v retrieving revision 1.1 retrieving revision 1.2 diff -u -d -r1.1 -r1.2 --- language.form.vm 6 Oct 2009 16:31:51 -0000 1.1 +++ language.form.vm 7 Oct 2009 15:01:04 -0000 1.2 @@ -9,33 +9,40 @@ <div id="translations"> <form method="post" action="./translations"> - <!--<label for="">Name<input type="text" name="" value="" /></label> - <label for="">Email address<input type="text" name="" value="" /></label> - <label for="">Comments<textarea name="" value=""></textarea></label>--> - <table style="width:100%"> - <thead> - <tr> - <th scope="col" style="width:33%">$defaultProps.get("language") properties</th> - #set($percent = 100 * $math.div($prop.size(), $defaultProps.size())) - <th scope="col">$prop.get("language") $percent.intValue()%</th> - </tr> - </thead> - <tbody> - #foreach($key in $defaultProps.keySet()) - #if ($key != "lang" && $key != "language") + <fieldset> + <legend>About you</legend> + <label for="translator_name"><span style="min-width:7em; text-align:right;">Name</span><input type="text" name="translator_name" /></label><br /> + <label for="translator_mail"><span style="min-width:7em; text-align:right;">Email address</span><input type="text" name="translator_mail" /></label><br /> + <label for="translator_comments"><span style="min-width:7em; text-align:right;">Comments</span><textarea name="translator_comments" style="vertical-align:top" rows="5" cols="20"></textarea></label> + </fieldset> + + <fieldset> + <legend>Translation</legend> + + + <table style="width:100%"> + <thead> <tr> - <th class="property_name" scope="row">$key <p>$!esc.html($defaultProps.get($key))</p></th> - #foreach($prop in $languageProps) - <td #if(!$prop.get($key))class="missing"#end><input style="padding:0.3em; width:98%" type="text" name="$key" value="$!esc.html($!prop.get($key))" /></td> - #end + <th scope="col" style="width:33%">$defaultProps.get("language") properties</th> + #set($percent = 100 * $math.div($math.sub($prop.size(), 1), $math.sub($defaultProps.size(), 1))) + <th scope="col">$prop.get("language") $percent.intValue()%</th> </tr> + </thead> + <tbody> + #foreach($key in $defaultProps.keySet()) + #if ($key != "lang" && $key != "language") + <tr> + <th class="property_name" scope="row">$key <p>$!esc.html($defaultProps.get($key))</p></th> + <td #if(!$prop.get($key))class="missing"#end><input style="padding:0.3em; width:98%" type="text" name="$prop.get('lang')_$key" value="$!esc.html($!prop.get($key))" /></td> + </tr> + #end #end - #end - </tbody> - </table> - <fieldset> + </tbody> + </table> + <div class="submit"> + <input type="hidden" name="translation_language" value="$prop.get('lang')" /> <input type="submit" value="Submit" /> </div> </fieldset>
Received on Wednesday, 7 October 2009 15:01:10 UTC