0 Votes

Changes for page PublicSubmission

Last modified by Ryan C on 2025/06/08 18:17

From version 7.1
edited by Ryan C
on 2025/06/08 17:59
Change comment: There is no comment for this version
To version 8.1
edited by Ryan C
on 2025/06/08 18:03
Change comment: There is no comment for this version

Summary

Details

Page properties
Content
... ... @@ -1,4 +1,4 @@
1 -{{velocity}}
1 +{{velocity output="yes"}}
2 2  #if($request.headline)
3 3   ## Processing form submission
4 4   #set($appPage = $xwiki.getDocument("Help.Applications.AntiWhiteIncidents.WebHome"))
... ... @@ -16,7 +16,9 @@
16 16   </div>
17 17  #else
18 18   <h3>Submit an Incident</h3>
19 - <form method="post" action="$doc.getURL()">
19 + <form method="post" action="$doc.getURL('save')">
20 + <input type="hidden" name="form_token" value="$!services.csrf.getToken()" />
21 +
20 20   <div class="form-group">
21 21   <label>Headline</label>
22 22   <input type="text" name="headline" class="form-control" required>