... |
... |
@@ -1,7 +1,24 @@ |
1 |
1 |
{{velocity}} |
|
2 |
+#set ($hasEdit = $services.security.authorization.hasAccess('edit')) |
|
3 |
+#set ($canComment = $services.security.authorization.hasAccess('comment')) |
|
4 |
+ |
2 |
2 |
= Anti-White Incident Reports = |
3 |
3 |
|
|
7 |
+#if ($hasEdit) |
|
8 |
+ == Submit an Incident == |
|
9 |
+ {{html clean="false"}} |
|
10 |
+ <form action="#" method="post"> |
|
11 |
+ <input type="text" name="title" placeholder="Title" /> |
|
12 |
+ <br/> |
|
13 |
+ <textarea name="description" placeholder="Describe the incident"></textarea> |
|
14 |
+ <br/> |
|
15 |
+ <input type="submit" value="Submit" /> |
|
16 |
+ </form> |
|
17 |
+ {{/html}} |
|
18 |
+#end |
|
19 |
+ |
4 |
4 |
== Past Reports == |
5 |
|
-$services.sheet.display($xwiki.getDocument("Help.Applications.AntiWhiteIncidents.WebHome")) |
|
21 |
+{{include reference="Help.Applications.AntiWhiteIncidents.WebHome"/}} |
|
22 |
+ |
6 |
6 |
{{/velocity}} |
7 |
7 |
|