Wiki source code of EditForm
Version 1.1 by Thomas Coelho (local) on 2022/04/20 16:07
Show last authors
author | version | line-number | content |
---|---|---|---|
1 | {{template name="display_macros.vm" /}} | ||
2 | |||
3 | {{include reference="AnnotationCode.Macros" /}} | ||
4 | |||
5 | {{velocity output="false"}} | ||
6 | #if ("$!{request.reference}" != '') | ||
7 | #set($annotationReference = $services.model.resolveDocument($request.reference)) | ||
8 | #elseif("$!{request.wiki}" != '' && "$!{request.space}" != '' && "$!{request.page}" != '') | ||
9 | #set($annotationReference = $services.model.createDocumentReference("$!{request.wiki}", "$!{request.space}", "$!{request.page}")) | ||
10 | #end | ||
11 | {{/velocity}} | ||
12 | |||
13 | {{velocity filter="none"}} | ||
14 | {{html clean="false"}} | ||
15 | ## The annotation edit form is loaded asynchronously so we need to send back also the required JavaScript and CSS | ||
16 | ## resources (besides the form HTML). | ||
17 | #initRequiredSkinExtensions() | ||
18 | #displayEditBoxFromReference("$!{request.id}", $annotationReference) | ||
19 | #getRequiredSkinExtensions($requiredSkinExtensions) | ||
20 | #set ($discard = $response.setHeader('X-XWIKI-HTML-HEAD', $requiredSkinExtensions)) | ||
21 | {{/html}} | ||
22 | {{/velocity}} |