Wiki source code of CurriculumClassSheetLB

Version 8.1 by Eugen Colesnicov on 2013/03/24 14:09

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