... |
... |
@@ -1,8 +1,8 @@ |
1 |
|
-{{velocity output="yes"}} |
|
1 |
+{{velocity}} |
2 |
2 |
#if($request.headline) |
3 |
3 |
## Processing form submission |
4 |
4 |
#set($appPage = $xwiki.getDocument("Help.Applications.AntiWhiteIncidents.WebHome")) |
5 |
|
- #set($className = "Help.Applications.AntiWhiteIncidents.Code.AntiWhiteIncidentsClass")) |
|
5 |
+ #set($className = "Help.Applications.AntiWhiteIncidents.Code.AntiWhiteIncidentsClass") |
6 |
6 |
#set($obj = $appPage.newObject($className)) |
7 |
7 |
$obj.set("headline", $request.headline) |
8 |
8 |
$obj.set("description", $request.description) |
... |
... |
@@ -12,13 +12,11 @@ |
12 |
12 |
$appPage.save("Added new incident from public form") |
13 |
13 |
|
14 |
14 |
<div class="alert alert-success"> |
15 |
|
- Thank you for your submission. |
|
15 |
+ Thank you for your submission. It has been added to our database. |
16 |
16 |
</div> |
17 |
17 |
#else |
18 |
18 |
<h3>Submit an Incident</h3> |
19 |
19 |
<form method="post" action="$doc.getURL()"> |
20 |
|
- <input type="hidden" name="form_token" value="$!services.csrf.getToken()" /> |
21 |
|
- |
22 |
22 |
<div class="form-group"> |
23 |
23 |
<label>Headline</label> |
24 |
24 |
<input type="text" name="headline" class="form-control" required> |