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