0 Votes

Changes for page Incident Viewer

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

From version 10.1
edited by Ryan C
on 2025/06/08 18:58
Change comment: There is no comment for this version
To version 13.2
edited by Ryan C
on 2025/06/08 19:17
Change comment: Update document after refactoring.

Summary

Details

Page properties
Parent
... ... @@ -1,0 +1,1 @@
1 +Main Categories.WebHome
Content
... ... @@ -1,11 +1,7 @@
1 1  {{velocity output="yes"}}
2 +#set($objectIndex = $mathtool.random(100000,999999)) ## Any large number to avoid conflict
2 2  #set($timestamp = $datetool.format("yyyyMMddHHmmss", $datetool.now()))
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 +#set($url = "/bin/edit/Help/Applications/Anti%20White%20Incidents/%20/WebHome?editor=inline&form_token=$services.csrf.token&AntiWhiteIncidents_${objectIndex}_headline=Auto_$timestamp")
9 9  {{html clean="false"}}
10 10  <form action="$url" method="get" style="margin-bottom:20px;">
11 11   <button class="btn btn-primary" type="submit">
... ... @@ -15,7 +15,9 @@
15 15  {{/html}}
16 16  {{/velocity}}
17 17  
14 +
18 18  == Reported Incidents ==
19 19  
20 20  {{include reference="Help.Applications.Anti White Incidents.WebHome"/}}
21 21  
19 +