2018-04-06 09:33:52 -07:00
|
|
|
{{define "postbox.html"}}
|
2022-01-27 21:02:37 -08:00
|
|
|
<div id="postbox-area">
|
2023-01-04 23:13:59 -08:00
|
|
|
<form id="postform" name="postform" action="{{webPath "/post"}}" method="POST" enctype="multipart/form-data">
|
2022-01-27 21:02:37 -08:00
|
|
|
{{- with .op}}
|
|
|
|
<input type="hidden" name="threadid" value="{{$.op.ID}}" />
|
|
|
|
{{- else -}}
|
|
|
|
<input type="hidden" name="threadid" value="0" />
|
|
|
|
{{- end}}
|
2022-12-24 23:58:43 -08:00
|
|
|
<input type="hidden" name="boardid" value="{{$.board.ID}}" />
|
2022-01-27 21:02:37 -08:00
|
|
|
<table id="postbox-static">
|
2022-12-24 23:58:43 -08:00
|
|
|
<tr><th class="postblock">Name</th><td><input type="text" name="postname" maxlength="100" size="25" /></td></tr>
|
|
|
|
<tr><th class="postblock">Email</th><td><input type="text" name="postemail" maxlength="100" size="25" /></td></tr>
|
|
|
|
<tr><th class="postblock">Subject</th><td><input type="text" name="postsubject" size="25" maxlength="100">
|
2022-01-27 21:02:37 -08:00
|
|
|
<input type="text" name="username" style="display:none"/>
|
|
|
|
<input type="submit" value="{{with .op}}Reply{{else}}Post{{end}}"/></td></tr>
|
2022-12-24 23:58:43 -08:00
|
|
|
<tr><th class="postblock">Message</th><td><textarea rows="5" cols="35" name="postmsg" id="postmsg"></textarea></td></tr>
|
2022-08-17 13:46:28 -07:00
|
|
|
<tr><th class="postblock">File</th><td><input name="imagefile" type="file" accept="image/jpeg,image/png,image/gif,video/webm,video/mp4"><input type="checkbox" id="spoiler" name="spoiler"/><label for="spoiler">Spoiler</label></td></tr>
|
2024-01-21 16:42:01 -08:00
|
|
|
{{- if or (customFlagsEnabled $.board.Dir) $.board.Config.EnableGeoIP -}}
|
|
|
|
<tr>
|
|
|
|
<th class="postblock">Flag</th>
|
|
|
|
<td>
|
2024-01-21 17:16:27 -08:00
|
|
|
<select name="post-flag" id="post-flag">
|
2024-01-21 16:42:01 -08:00
|
|
|
{{- if $.boardConfig.EnableGeoIP -}}
|
|
|
|
<option value="geoip">Local flag</option>
|
|
|
|
{{- end -}}
|
|
|
|
{{- if $.boardConfig.EnableNoFlag -}}
|
|
|
|
<option value="">No flag</option>
|
|
|
|
{{- end -}}
|
|
|
|
{{- range $_,$flag := $.boardConfig.CustomFlags -}}
|
|
|
|
<option value="{{$flag.Flag}}">{{$flag.Name}}</option>
|
|
|
|
{{- end -}}
|
|
|
|
</select>
|
|
|
|
<img class="flag-preview" src="{{webPath `/static/flags/blank.gif`}}">
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
{{- end -}}
|
2022-01-27 21:02:37 -08:00
|
|
|
<tr><th class="postblock">Password</th><td><input type="password" id="postpassword" name="postpassword" size="14" /> (for post/file deletion)</td></tr>
|
2022-12-20 13:13:08 -08:00
|
|
|
{{if .useCaptcha -}}
|
|
|
|
<tr><th class="postblock">CAPTCHA</th><td>
|
|
|
|
<div class="h-captcha" data-sitekey="{{.captcha.SiteKey}}"></div>
|
|
|
|
<script src="https://js.hcaptcha.com/1/api.js" async defer></script>
|
|
|
|
</td></tr>
|
|
|
|
{{- end}}
|
2022-01-27 21:02:37 -08:00
|
|
|
</table><input type="password" name="dummy2" style="display:none"/>
|
|
|
|
</form>
|
|
|
|
</div>{{end}}
|