0 Votes

Changes for page Incident Viewer

Last modified by Ryan C on 2025/06/08 19:28

From version 12.1
edited by Ryan C
on 2025/06/08 19:04
Change comment: There is no comment for this version
To version 10.1
edited by Ryan C
on 2025/06/08 18:58
Change comment: There is no comment for this version

Summary

Details

Page properties
Content
... ... @@ -1,6 +1,11 @@
1 1  {{velocity output="yes"}}
2 2  #set($timestamp = $datetool.format("yyyyMMddHHmmss", $datetool.now()))
3 -#set($url = "/bin/edit/Help/Applications/Anti%20White%20Incidents/%20/WebHome?template=Help.Applications.Anti%20White%20Incidents.Code.MoviesTemplate&title=Report_$timestamp&parent=Help.Applications.Anti%20White%20Incidents.WebHome&editor=inline&form_token=$services.csrf.token&objectPolicy=create")
3 +#set($url = $xwiki.getURL("Help.Applications.AntiWhiteIncidents.${timestamp}", "edit", {
4 + "template" : "Help.Applications.AntiWhiteIncidents.Code.MoviesTemplate",
5 + "parent" : "Help.Applications.AntiWhiteIncidents.WebHome",
6 + "editor" : "inline",
7 + "form_token" : $services.csrf.token
8 +}))
4 4  {{html clean="false"}}
5 5  <form action="$url" method="get" style="margin-bottom:20px;">
6 6   <button class="btn btn-primary" type="submit">
... ... @@ -14,4 +14,3 @@
14 14  
15 15  {{include reference="Help.Applications.Anti White Incidents.WebHome"/}}
16 16  
17 -