Wiki source code of PanelSheet
Last modified by superadmin on 2019/11/08 17:52
Show last authors
author | version | line-number | content |
---|---|---|---|
1 | {{velocity output="false"}} | ||
2 | #macro(displayPanelProperty $obj $propName) | ||
3 | ; <label#if ($xcontext.action == 'edit' || $xcontext.action == 'inline') for="${class.getName()}_${obj.number}_${propName}"#end>$services.localization.render("${class.getName()}_${propName}")</label> | ||
4 | : $doc.display($propName, $obj) | ||
5 | #end | ||
6 | |||
7 | #set ($paneldoc = $doc) | ||
8 | {{/velocity}} | ||
9 | |||
10 | {{velocity}} | ||
11 | #set ($obj = $doc.getObject('Panels.PanelClass')) | ||
12 | #if ($obj) | ||
13 | #set($class = $obj.xWikiClass) | ||
14 | {{html wiki="true"}} | ||
15 | (% class="xform" %) | ||
16 | ((( | ||
17 | #displayPanelProperty($obj 'name') | ||
18 | #displayPanelProperty($obj 'type') | ||
19 | #displayPanelProperty($obj 'category') | ||
20 | #displayPanelProperty($obj 'description') | ||
21 | #displayPanelProperty($obj 'content') | ||
22 | #displayPanelProperty($obj 'async_enabled') | ||
23 | #displayPanelProperty($obj 'async_cached') | ||
24 | #displayPanelProperty($obj 'async_context') | ||
25 | ))) | ||
26 | {{/html}} | ||
27 | #end | ||
28 | {{/velocity}} |