0 Votes

Changes for page SubmitForm

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

From version 5.1
edited by Ryan C
on 2025/06/08 17:13
Change comment: There is no comment for this version
To version 2.1
edited by Ryan C
on 2025/06/08 17:06
Change comment: There is no comment for this version

Summary

Details

Page properties
Content
... ... @@ -1,12 +1,14 @@
1 1  {{velocity}}
2 +#set($class = 'Help.Applications.Anti White Incidents.Code.Class')
3 +#set($doc = $xwiki.getDocument($class))
4 +$doc.display('image', 'edit')
5 +$doc.display('headline', 'edit')
6 +$doc.display('description', 'edit')
7 +$doc.display('url', 'edit')
8 +$doc.display('tags', 'edit')
2 2  {{html clean="false"}}
3 -<form action="$xwiki.getURL('Help.Applications.AntiWhiteIncidents.Code.TemplateProvider', 'createfromtemplate')">
4 - <input type="hidden" name="space" value="Help.Applications.AntiWhiteIncidents"/>
5 - <input type="hidden" name="template" value="Help.Applications.AntiWhiteIncidents.Code.TemplateProvider"/>
6 - <input type="hidden" name="parent" value="$doc.fullName"/>
7 - <input type="hidden" name="title" value="Report - $xcontext.date"/>
8 - <input type="hidden" name="xredirect" value="$doc.getURL()"/>
9 - <input type="submit" value="Submit a Report"/>
10 +<form method="post" action="$xwiki.getURL('Help.Applications.Anti White Incidents.WebHome', 'save')">
11 + <input type="submit" value="Submit Report"/>
10 10  </form>
11 11  {{/html}}
12 12  {{/velocity}}