... |
... |
@@ -1,11 +1,16 @@ |
1 |
1 |
{{velocity}} |
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"/> |
|
2 |
+#set ($template = "Help.Applications.AntiWhiteIncidents.Code.TemplateProvider") |
|
3 |
+#set ($targetSpace = "Help.Applications.AntiWhiteIncidents") |
|
4 |
+#set ($title = "Report - $xcontext.date") ## optional default |
|
5 |
+#set ($redirect = $doc.getURL()) |
|
6 |
+ |
|
7 |
+<form action="$xwiki.getURL($template, 'createfromtemplate')"> |
|
8 |
+ <input type="hidden" name="space" value="$targetSpace"/> |
|
9 |
+ <input type="hidden" name="template" value="$template"/> |
5 |
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"/> |
|
11 |
+ <input type="hidden" name="title" value="$title"/> |
|
12 |
+ <input type="hidden" name="xredirect" value="$redirect"/> |
|
13 |
+ <input type="submit" value="Submit an Incident"/> |
9 |
9 |
</form> |
10 |
10 |
{{/velocity}} |
11 |
11 |
|