0 Votes

Changes for page PublicSubmission

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

From version 14.1
edited by Ryan C
on 2025/06/08 18:09
Change comment: There is no comment for this version
To version 12.1
edited by Ryan C
on 2025/06/08 18:06
Change comment: There is no comment for this version

Summary

Details

Page properties
Content
... ... @@ -1,35 +1,13 @@
1 -{{html clean="false"}}
2 -<h3>Submit an Incident</h3>
3 -<form method="post" action="/bin/save/Help/Applications/Anti%20White%20Incidents/WebHome">
4 - <input type="hidden" name="xpage" value="plain">
5 - <input type="hidden" name="className" value="Help.Applications.Anti White Incidents.Code.AntiWhiteIncidentsClass">
6 - <input type="hidden" name="classId" value="0">
7 -
8 - <div class="form-group">
1 +{{velocity output="yes"}}
2 +#if($request.headline)
3 + <div class="alert alert-success">Submitted: $request.headline</div>
4 +#else
5 + <form method="post" action="$doc.getURL()">
6 + <input type="hidden" name="form_token" value="$services.csrf.getToken()" />
9 9   <label>Headline</label>
10 - <input type="text" name="Help.Applications.Anti White Incidents.Code.AntiWhiteIncidentsClass_0_headline" class="form-control" required>
11 - </div>
12 -
13 - <div class="form-group">
14 - <label>Description</label>
15 - <textarea name="Help.Applications.Anti White Incidents.Code.AntiWhiteIncidentsClass_0_description" class="form-control" rows="4" required></textarea>
16 - </div>
17 -
18 - <div class="form-group">
19 - <label>Source URL</label>
20 - <input type="url" name="Help.Applications.Anti White Incidents.Code.AntiWhiteIncidentsClass_0_url" class="form-control">
21 - </div>
22 -
23 - <div class="form-group">
24 - <label>Image URL</label>
25 - <input type="url" name="Help.Applications.Anti White Incidents.Code.AntiWhiteIncidentsClass_0_image" class="form-control">
26 - </div>
27 -
28 - <div class="form-group">
29 - <label>Date</label>
30 - <input type="date" name="Help.Applications.Anti White Incidents.Code.AntiWhiteIncidentsClass_0_date" class="form-control">
31 - </div>
32 -
33 - <button type="submit" class="btn btn-primary">Submit Incident</button>
34 -</form>
35 -{{/html}}
8 + <input type="text" name="headline" />
9 + <button type="submit">Submit</button>
10 + </form>
11 +#end
12 +{{/velocity}}
13 +