Wiki source code of GroupSectionsSheet

Last modified by Eugen Colesnicov on 2013/03/24 06:00

Show last authors
1 {{velocity}}
2
3 {{html wiki="true"}}
4 #set($docextras = [])
5 #if ($context.action == "view")
6 $xwiki.ssx.use("etvcCorrespondence2Code.GroupSectionsSkin")
7 $xwiki.ssx.use("etvcCorrespondence2Code.GroupSectionsSkinList")
8 #if("$!{show}"=="")
9 #set($show=$request.getParameter('show'))
10 #end
11 #set($showActivity=$doc.getObject("etvcCorrespondence2Code.GroupSectionsClass").getProperty('UseHistory').getValue())
12 #if($doc.display('OtherContent')!="")
13 #set($showContent=1)
14 #else
15 #set($showContent=0)
16 #end
17 #set($docSpace=$doc.getSpace())
18 #set($class="etvcCorrespondence2Code.SectionsClass")
19 #set($template="etvcCorrespondence2Code.SectionsClassTemplate")
20 #set($xwlquery="from doc.object($class) as obj where doc.fullName <> '$template' and doc.space='$docSpace' order by obj.Index")
21 #set($list=$services.query.xwql($xwlquery).execute())
22 #set($arraySize=$list.size())
23 ## #if($arraySize==1)
24 ## {{display reference='$sDoc.getFullName()' /}}
25 ## #else
26 = $doc.getTitle(): =
27 #if($showActivity==1)
28 {{tabs idsToLabels="tabId01=$msg.get("corr.groupSections.caption.tab1"), tabId02=$msg.get("corr.groupSections.caption.tab2")"/}}
29 #else
30 {{tabs idsToLabels="tabId01=$msg.get("corr.groupSections.caption.tab1")"/}}
31 #end
32 (% id="tabId01" %)(((
33 {{container layoutStyle="columns"}}
34 (((
35
36 {{include document="etvcCorrespondence2Code.SectionsList"/}}
37 )))(((
38 #if($showContent==1)
39 == $msg.get("corr.groupSections.caption.other"): ==
40 $doc.display("OtherContent")
41 #end
42 )))
43 {{/container}}
44 #if($!{show})
45 ----
46 {{display reference='$xwiki.getDocument($show).getFullName()' /}}
47 #end
48 #if($showActivity==1)
49 )))(% id="tabId02" %)(((
50 {{activity spaces="$doc.space" /}}
51 #end
52 )))
53 ## #end
54
55 #else
56 $xwiki.ssx.use("etvcCorrespondence2Code.GroupSectionsSkinWithTitle")
57
58 #set($docTitle = $request.getParameter('title'))
59 #if("$!docTitle" == '')
60 #set($docTitle = $!tdoc.title)
61 #end
62
63 <div id="titleinput">
64 ; <label for="xwikidoctitleinput">$msg.get('core.editors.content.titleField.label')</label>
65 : <input type="text" id="xwikidoctitleinput" name="title" value="$escapetool.xml("$!docTitle")"/>
66 <br>
67 </div>
68
69 #set($class = $doc.getObject('etvcCorrespondence2Code.GroupSectionsClass').xWikiClass)
70 #foreach($prop in $class.properties)
71 ; $msg.get($prop.prettyName)
72 : $doc.display($prop.getName())
73 #end
74 <br><br>
75
76 #end
77 {{/html}}
78 {{/velocity}}