Wiki source code of CurriculumClassSheetIMC
Last modified by Eugen Colesnicov on 2013/03/20 13:56
Hide last authors
author | version | line-number | content |
---|---|---|---|
1.1 | 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=["DateSubmitted","Job","FirstName","LastName","Gender","DateOfBirth","EMail","PhoneNo","Comments"]) | ||
28 | |||
29 | <table> | ||
30 | #foreach($proptxt in $propsUse) | ||
31 | #set($prop=$class.get("$proptxt")) | ||
32 | <tr> | ||
33 | <td class="label"><label>$msg.get($proptxt):</label></td> | ||
34 | <td>$doc.display("$proptxt", $obj)</td> | ||
35 | |||
36 | #if(($context.action == 'inline') and ($prop.type == 'DateClass')) | ||
37 | <script type="text/javascript"> | ||
38 | var dpicker = new DatePicker({ | ||
39 | relative : "${class.name}_${class.number}_${prop.name}", | ||
40 | language : "$context.language", | ||
41 | dateFormat : [["dd","mm","yyyy"], "/"] | ||
42 | }); | ||
43 | </script> | ||
44 | #end | ||
45 | <tr> | ||
46 | #end | ||
47 | </table> | ||
48 | |||
49 | #set($showcomments = "no") | ||
50 | {{/html}} | ||
51 | {{/velocity}} |