Wiki source code of CurriculumClassSheetBerger
Last modified by Eugen Colesnicov on 2013/03/20 13:56
Show last authors
author | version | line-number | content |
---|---|---|---|
1 | {{velocity}} | ||
2 | {{html wiki="true"}} | ||
3 | |||
4 | $xwiki.jsfx.use("js/scriptaculous/scriptaculous.js") | ||
5 | $xwiki.jsx.use("XWiki.DatePickerExtension", {'defer':false}) | ||
6 | $xwiki.ssx.use("XWiki.DatePickerExtension") | ||
7 | |||
8 | ## You can modify this page to customize the presentation of your object. | ||
9 | ## At first you should keep the default presentation and just save the document. | ||
10 | |||
11 | #set ($Parent = $doc.getParent()) | ||
12 | #set ($FullParent = $xwiki.getDocument($Parent).getFullName()) | ||
13 | #set ($ShortParent = $xwiki.getDocument($Parent).getName()) | ||
14 | |||
15 | #if ($context.action == "view") | ||
16 | ## #set ($par = $xwiki.getDocument($doc.getParent()).getFullName()) | ||
17 | ## $response.sendRedirect($xwiki.getURL($par)) | ||
18 | #end | ||
19 | |||
20 | #set($class = $doc.getObject('etvcCVcode.CurriculumClass').xWikiClass) | ||
21 | |||
22 | #set($obj = "") | ||
23 | #set($obj = $doc.getObject("etvcCVcode.CurriculumClass")) | ||
24 | #set($class = $obj.xWikiClass) | ||
25 | #set($suff=":") | ||
26 | |||
27 | #set($propsUse = ["SubmissionCountry", "DateSubmitted", "SpecificProject", "FirstName", "LastName", "Gender", "DateOfBirth", "Citizenships", "CountryOfResidence", "CityOfResidence", "Address", "EMail", "PhoneNo", "HighestDegreeObtained", "TotalYearsOfExperience", "CountriesOfExperience", "BackgroundExperience", "Languages", "Comments"]) | ||
28 | |||
29 | <table> | ||
30 | #foreach($proptxt in $propsUse) | ||
31 | #set($prop=$class.get("$proptxt")) | ||
32 | <tr> | ||
33 | <td class="label"><label>$prop.prettyName:</label></td> | ||
34 | |||
35 | <td>$doc.display("$proptxt", $obj)</td> | ||
36 | |||
37 | #if(($context.action == 'inline') and ($prop.type == 'DateClass')) | ||
38 | <script type="text/javascript"> | ||
39 | var dpicker = new DatePicker({ | ||
40 | relative : "${class.name}_${class.number}_${prop.name}", | ||
41 | language : "$context.language", | ||
42 | dateFormat : [["dd","mm","yyyy"], "/"] | ||
43 | }); | ||
44 | </script> | ||
45 | #end | ||
46 | <tr> | ||
47 | #end | ||
48 | </table> | ||
49 | |||
50 | #set($showcomments = "no") | ||
51 | {{/html}} | ||
52 | {{/velocity}} |