root/WebContent/WEB-INF/resources/templates/language.form.vm @ 688:e3ff242868e0

Revision 688:e3ff242868e0, 1.5 KB (checked in by tgambet, 4 years ago)

new template

RevLine 
[688]1#set ($title = "Unicorn - Translations")
2#set ($css = ['base_ucn.css'])
3#set ($js = ['mootools-1.2.3-core-nc.js', 'mootools-1.2.3.1-more.js', 'w3c_unicorn_languages.js'])
4#parse('head.vm')
5
6#if ($messages)
7#displayMessages($messages)
8#end
9
10<div id="translations">
11        <form method="post" action="./translations">
12                <!--<label for="">Name<input type="text" name="" value="" /></label>
13                <label for="">Email address<input type="text" name="" value="" /></label>
14                <label for="">Comments<textarea name="" value=""></textarea></label>-->
15               
16                <table style="width:100%">
17                        <thead>
18                                <tr>
19                                        <th scope="col" style="width:33%">$defaultProps.get("language") properties</th>
20                                        #set($percent = 100 * $math.div($prop.size(), $defaultProps.size()))
21                                        <th scope="col">$prop.get("language") $percent.intValue()%</th>
22                                </tr>
23                        </thead>
24                        <tbody>
25                                #foreach($key in $defaultProps.keySet())
26                                        #if ($key != "lang" && $key != "language")
27                                        <tr>
28                                                <th class="property_name" scope="row">$key <p>$!esc.html($defaultProps.get($key))</p></th>
29                                                #foreach($prop in $languageProps)
30                                                        <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>
31                                                #end
32                                        </tr>
33                                        #end
34                                #end
35                        </tbody>
36                </table>
37                <fieldset>
38                        <div class="submit">
39                                <input type="submit" value="Submit" />
40                        </div>
41                </fieldset>
42        </form>
43</div>
44
45#parse('footer.vm')
Note: See TracBrowser for help on using the browser.