0 Votes

Changes for page Incident Viewer

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

From version 7.1
edited by Ryan C
on 2025/06/08 18:47
Change comment: There is no comment for this version
To version 13.1
edited by Ryan C
on 2025/06/08 19:15
Change comment: There is no comment for this version

Summary

Details

Page properties
Content
... ... @@ -1,12 +1,19 @@
1 1  {{velocity output="yes"}}
2 -## Load the working public interface page
3 -#set($interfaceDoc = $xwiki.getDocument("Help.Applications.AntiWhiteIncidents.Code.PublicInterface"))
2 +#set($objectIndex = $mathtool.random(100000,999999)) ## Any large number to avoid conflict
3 +#set($timestamp = $datetool.format("yyyyMMddHHmmss", $datetool.now()))
4 +#set($url = "/bin/edit/Help/Applications/Anti%20White%20Incidents/%20/WebHome?editor=inline&form_token=$services.csrf.token&AntiWhiteIncidents_${objectIndex}_headline=Auto_$timestamp")
5 +{{html clean="false"}}
6 +<form action="$url" method="get" style="margin-bottom:20px;">
7 + <button class="btn btn-primary" type="submit">
8 + 📝 Submit an Incident
9 + </button>
10 +</form>
11 +{{/html}}
12 +{{/velocity}}
4 4  
5 -## Disable sheets, extra panels
6 -#set($hasSheet = false)
7 -#set($displayDocExtra = false)
8 8  
9 -## Output the content of the real PublicInterface page
10 -$interfaceDoc.getRenderedContent()
11 -{{/velocity}}
15 +== Reported Incidents ==
12 12  
17 +{{include reference="Help.Applications.Anti White Incidents.WebHome"/}}
18 +
19 +