- From: Thomas Gambet via cvs-syncmail <cvsmail@w3.org>
- Date: Wed, 19 Aug 2009 18:47:07 +0000
- To: www-validator-cvs@w3.org
Update of /sources/public/2006/unicorn/WebContent/WEB-INF/resources/templates/includes In directory hutz:/tmp/cvs-serv24597/WebContent/WEB-INF/resources/templates/includes Modified Files: Tag: dev2 footer.vm Added Files: Tag: dev2 parameters.vm Log Message: new interface --- NEW FILE: parameters.vm --- #macro(createDropdown $param $multiple) #set($defaults = $param.getMapOfDefaultValue()) <label><span>$param.getLongName("en"):</span> <select name="$param.Name" class="option_select" #if($multiple) multiple="multiple" size="3" #end> #foreach ($value in $param.getMapOfValue()) <option value="$value.Name"#if($defaults.containsKey($value.getName())) selected="selected" #end>$value.getLongName("en")</option> #end </select> </label> #end #macro(createCheckboxList $param) #set($defaults = $param.getMapOfDefaultValue()) <label><span>$param.getLongName("en"):</span></label> #foreach ($value in $param.getMapOfValue()) <label>$value.getLongName("en") <input type="checkbox" name="$param.getName()" value="$value.getName()"#if($defaults.containsKey($value.getName())) checked="checked" #end/> </label> #end #end #macro(createParameter $param) #set($type = $param.getType()) #if($type == "CHECKBOXLIST") #createCheckboxList($param) #elseif($type == "DROPDOWN") #createDropdown($param, false) #elseif($type == "DROPDOWNLIST") #createDropdown($param, true) #end #end #set ($simple_parameters = $current_task.getMapOfParameter("simple")) #set ($advanced_parameters = $current_task.getMapOfParameter("advanced")) #if ($simple_parameters.size() > 0) <fieldset id="opt_$param_suffix" class="options"> <legend>Options</legend> <div> <ul> #foreach ($param in $simple_parameters) <li> #createParameter($param) </li> #end </ul> </div> </fieldset> #end #if ($advanced_parameters.size() > 0) <fieldset id="extra_opt_$param_suffix" class="moreoptions"> <legend class="toggletext" title="Show/Hide extra options">$extra_options</legend> <div class="options"> <ul> #foreach ($param in $advanced_parameters) <li> #createParameter($param) </li> #end </ul> </div> </fieldset> #end Index: footer.vm =================================================================== RCS file: /sources/public/2006/unicorn/WebContent/WEB-INF/resources/templates/includes/Attic/footer.vm,v retrieving revision 1.1.2.3 retrieving revision 1.1.2.4 diff -u -d -r1.1.2.3 -r1.1.2.4 --- footer.vm 19 Aug 2009 08:14:12 -0000 1.1.2.3 +++ footer.vm 19 Aug 2009 18:47:05 -0000 1.1.2.4 @@ -6,7 +6,7 @@ <ul id="lang_choice"> #foreach( $key in $languages.keySet() ) <li> - <a href="index.${key}.html" lang="$key" xml:lang="$key" hreflang="$key" rel="alternate">$languages.get($key)</a> + <a href="?ucn_lang=$key&ucn_task=$current_task.getID()" lang="$key" xml:lang="$key" hreflang="$key" rel="alternate">$languages.get($key)</a> </li> #end </ul>
Received on Wednesday, 19 August 2009 18:47:20 UTC