mirror of
https://github.com/Eggbertx/gochan.git
synced 2025-09-04 10:06:24 -07:00
forgot to add postbox.html
This commit is contained in:
parent
ce303c086e
commit
8f41692526
1 changed files with 18 additions and 0 deletions
18
templates/postbox.html
Normal file
18
templates/postbox.html
Normal file
|
@ -0,0 +1,18 @@
|
|||
{{define "postbox.html"}}
|
||||
<div id="postbox-area">
|
||||
<form name="postform" action="/post" method="POST" enctype="multipart/form-data">
|
||||
{{with .op}}<input type="hidden" name="threadid" value="{{$.op.ID}}" />
|
||||
<input type="hidden" name="boardid" value="{{$.board.ID}}" />
|
||||
{{else}}<input type="hidden" name="threadid" value="0" />
|
||||
<input type="hidden" name="boardid" value="{{$.board.ID}}" />{{end}}
|
||||
<input type="text" name="username" style="display:none" />
|
||||
<table id="postbox-static">
|
||||
<tr><th class="postblock">Name</th><td><input type="text" id="postname" name="postname" maxlength="50" size="28" {{/* value="Name" onFocus="if(this.value=='Name') {this,value= ''}" onBlur="if(this.value == '') {this.value = 'Name'}"*/}}/></td></tr>
|
||||
<tr><th class="postblock">Email</th><td><input type="text" id="postemail" name="postemail" maxlength="50" size="28" /></td></tr>
|
||||
<tr><th class="postblock">Subject</th><td><input type="text" name="postsubject" maxlength="100" size="30" /><input type="submit" value="{{with .op}}Reply{{else}}Post{{end}}"/></td></tr>
|
||||
<tr><th class="postblock">Message</th><td><textarea rows="4" cols="48" name="postmsg" id="postmsg"></textarea></td></tr>
|
||||
<tr><th class="postblock">File</th><td><input name="imagefile" type="file"><input type="checkbox" id="spoiler" name="spoiler"/><label for="spoiler">Spoiler</label></td></tr>
|
||||
<tr><th class="postblock">Password</th><td><input type="password" id="postpassword" name="postpassword" size="14" /> (for post/file deletion)</td></tr>
|
||||
</table>
|
||||
</form>
|
||||
</div>{{end}}
|
Loading…
Add table
Add a link
Reference in a new issue