0 Votes

Changes for page PublicSubmission

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

From version 16.1
edited by Ryan C
on 2025/06/08 18:14
Change comment: There is no comment for this version
To version 17.1
edited by Ryan C
on 2025/06/08 18:17
Change comment: There is no comment for this version

Summary

Details

Page properties
Content
... ... @@ -1,35 +1,36 @@
1 1  {{html clean="false"}}
2 2  <h3>Submit an Incident</h3>
3 3  <form method="post" action="/bin/save/Help/Applications/Anti%20White%20Incidents/WebHome">
4 - <input type="hidden" name="xredirect" value="/bin/view/Help/Applications/Anti%20White%20Incidents/Code/PublicInterface">
5 - <input type="hidden" name="form_token" value="$services.csrf.token">
6 - <input type="hidden" name="className" value="Help.Applications.Anti White Incidents.Code.AntiWhiteIncidentsClass">
7 - <input type="hidden" name="classId" value="0">
4 + <!-- Redirect back to the public interface -->
5 + <input type="hidden" name="xredirect" value="/bin/view/Help/Applications/AntiWhiteIncidents/Code/PublicInterface">
8 8  
7 + <!-- Object class information -->
8 + <input type="hidden" name="objectPolicy" value="create">
9 + <input type="hidden" name="classname" value="Help.Applications.Anti White Incidents.Code.AntiWhiteIncidentsClass">
10 +
9 9   <div class="form-group">
10 10   <label>Headline</label>
11 - <input type="text" name="Help.Applications.Anti White Incidents.Code.AntiWhiteIncidentsClass_0_headline" class="form-control" required>
13 + <input type="text" name="AntiWhiteIncidents_0_headline" class="form-control" required>
12 12   </div>
13 13  
14 14   <div class="form-group">
15 15   <label>Description</label>
16 - <textarea name="Help.Applications.Anti White Incidents.Code.AntiWhiteIncidentsClass_0_description" class="form-control" rows="4" required></textarea>
18 + <textarea name="AntiWhiteIncidents_0_description" class="form-control" rows="4" required></textarea>
17 17   </div>
18 18  
19 19   <div class="form-group">
20 20   <label>Source URL</label>
21 - <input type="text" name="Help.Applications.Anti White Incidents.Code.AntiWhiteIncidentsClass_0_url" class="form-control">
23 + <input type="text" name="AntiWhiteIncidents_0_url" class="form-control">
22 22   </div>
23 23  
24 24   <div class="form-group">
25 25   <label>Image URL</label>
26 - <input type="text" name="Help.Applications.Anti White Incidents.Code.AntiWhiteIncidentsClass_0_image" class="form-control">
27 - <small class="form-text text-muted">Paste the full image URL</small>
28 + <input type="text" name="AntiWhiteIncidents_0_image" class="form-control">
28 28   </div>
29 29  
30 30   <div class="form-group">
31 31   <label>Date</label>
32 - <input type="date" name="Help.Applications.Anti White Incidents.Code.AntiWhiteIncidentsClass_0_date" class="form-control">
33 + <input type="date" name="AntiWhiteIncidents_0_date" class="form-control">
33 33   </div>
34 34  
35 35   <button type="submit" class="btn btn-primary">Submit Incident</button>