0 Votes

Changes for page SubmitForm

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

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

Summary

Details

Page properties
Content
... ... @@ -1,15 +1,11 @@
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')
9 -{{html clean="false"}}
10 -<form method="post" action="$xwiki.getURL('Help.Applications.Anti White Incidents.WebHome', 'save')">
11 - <input type="submit" value="Submit Report"/>
2 +<form action="$xwiki.getURL('Help.Applications.AntiWhiteIncidents.Code.TemplateProvider', 'createfromtemplate')">
3 + <input type="hidden" name="space" value="Help.Applications.AntiWhiteIncidents"/>
4 + <input type="hidden" name="template" value="Help.Applications.AntiWhiteIncidents.Code.TemplateProvider"/>
5 + <input type="hidden" name="parent" value="$doc.fullName"/>
6 + <input type="hidden" name="title" value="Report - $xcontext.date"/>
7 + <input type="hidden" name="xredirect" value="$doc.getURL()"/>
8 + <input type="submit" value="Submit a Report"/>
12 12  </form>
13 -{{/html}}
14 14  {{/velocity}}
15 15