summaryrefslogtreecommitdiff
path: root/templates/post_form.html
blob: 64451fb92c63cca03904f69cc69a2769778ad752 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
<form name="post" onsubmit="return dopost(this);" enctype="multipart/form-data" action="{{ config.post_url }}" method="post">
{{ antibot.html() }}
{% if id %}<input type="hidden" name="thread" value="{{ id }}">{% endif %}
{{ antibot.html() }}
<input type="hidden" name="board" value="{{ board.uri }}">
{{ antibot.html() }}
{% if mod %}<input type="hidden" name="mod" value="1">{% endif %}
	<table>
		{% if not config.field_disable_name or (mod and post.mod|hasPermission(config.mod.bypass_field_disable, board.uri)) %}<tr>
			<th>
				{% trans %}Name{% endtrans %}
				{{ antibot.html() }}
			</th>
			<td>
				<input type="text" name="name" size="25" maxlength="35" autocomplete="off">
				{{ antibot.html() }}
			</td>
		</tr>{% endif %}
		{% if not config.field_disable_email or (mod and post.mod|hasPermission(config.mod.bypass_field_disable, board.uri)) %}<tr>
			<th>
				{% trans %}Email{% endtrans %}
				{{ antibot.html() }}
			</th>
			<td>
				<input type="text" name="email" size="25" maxlength="40" autocomplete="off">
				{{ antibot.html() }}
				{% if not (not (config.field_disable_subject or (id and config.field_disable_reply_subject)) or (mod and post.mod|hasPermission(config.mod.bypass_field_disable, board.uri))) %}
				<input accesskey="s" style="margin-left:2px;" type="submit" name="post" value="{% if id %}{{ config.button_reply }}{% else %}{{ config.button_newtopic }}{% endif %}" />{% if config.spoiler_images %} <input id="spoiler" name="spoiler" type="checkbox"> <label for="spoiler">{% trans %}Spoiler Image{% endtrans %}</label>{% endif %}
				{% endif %}
			</td>
		</tr>{% endif %}
		{% if not (config.field_disable_subject or (id and config.field_disable_reply_subject)) or (mod and post.mod|hasPermission(config.mod.bypass_field_disable, board.uri)) %}<tr>
			<th>
				{% trans %}Subject{% endtrans %}
				{{ antibot.html() }}
			</th>
			<td>
				<input style="float:left;" type="text" name="subject" size="25" maxlength="100" autocomplete="off">
				<input accesskey="s" style="margin-left:2px;" type="submit" name="post" value="{% if id %}{{ config.button_reply }}{% else %}{{ config.button_newtopic }}{% endif %}" />{% if config.spoiler_images %} <input id="spoiler" name="spoiler" type="checkbox"> <label for="spoiler">{% trans %}Spoiler Image{% endtrans %}</label>{% endif %}
			</td>
		</tr>
		{% endif %}
		<tr>
			<th>
				{% trans %}Comment{% endtrans %}
				{{ antibot.html() }}
			</th>
			<td>
				<textarea name="body" id="body" rows="5" cols="35"></textarea>
				{{ antibot.html() }}
				{% if not (not (config.field_disable_subject or (id and config.field_disable_reply_subject)) or (mod and post.mod|hasPermission(config.mod.bypass_field_disable, board.uri))) %}
				{% if not (not config.field_disable_email or (mod and post.mod|hasPermission(config.mod.bypass_field_disable, board.uri))) %}
				<input accesskey="s" style="margin-left:2px;" type="submit" name="post" value="{% if id %}{{ config.button_reply }}{% else %}{{ config.button_newtopic }}{% endif %}" />{% if config.spoiler_images %} <input id="spoiler" name="spoiler" type="checkbox"> <label for="spoiler">{% trans %}Spoiler Image{% endtrans %}</label>{% endif %}
				{% endif %}
				{% endif %}
			</td>
		</tr>
		{% if config.recaptcha %}
		<tr>
			<th>
				{% trans %}Verification{% endtrans %}
				{{ antibot.html() }}
			</th>
			<td>
				<script type="text/javascript" src="//www.google.com/recaptcha/api/challenge?k={{ config.recaptcha_public }}"></script>
				{{ antibot.html() }}
			</td>
		</tr>
		{% endif %}
		{% if config.imgcaptcha %}
		<tr>
			<th>
				{% trans %}Verification{% endtrans %}
				{{ antibot.html() }}
			</th>
			<td>
				<input type="hidden" name="imgcaptcha_hash" id="imgcaptcha_hash" value="kucaj stad, kucu hakierze">
				<img src="{{ config.imgcaptcha_filler }}" width="{{ config.imgcaptcha_width }}px" height="{{ config.imgcaptcha_height }}px" id="imgcaptcha_img"></img><br>
				{{ config.imgcaptcha_question }} <input type="text" name="imgcaptcha_verify" id="imgcaptcha_verify" value=""></input><br>
				<a href="javascript:ic_odswiezKapcze()">Odswiez</a>
				{{ antibot.html() }}
			</td>
		</tr>
		{% endif %}
		<tr>
			<th>
				{% trans %}File{% endtrans %}
			</th>
			<td>
				<input type="file" name="file">
				{{ antibot.html() }}
			</td>
		</tr>
		{% if config.enable_embedding %}
		<tr>
			<th>
				{% trans %}Embed{% endtrans %}
				{{ antibot.html() }}
			</th>
			<td>
				<input type="text" name="embed" size="30" maxlength="120" autocomplete="off">
				{{ antibot.html() }}
			</td>
		</tr>
		{% endif %}
		{% if mod %}
		<tr>
			<th>
				{% trans %}Flags{% endtrans %}
			</th>
			<td>
				{% if not id and post.mod|hasPermission(config.mod.sticky, board.uri) %}<div>
					<label for="sticky">{% trans %}Sticky{% endtrans %}</label>
					<input title="{% trans %}Sticky{% endtrans %}" type="checkbox" name="sticky" id="sticky"><br>
				</div>{% endif %}
				{% if not id and post.mod|hasPermission(config.mod.lock, board.uri) %}<div>
					<label for="lock">{% trans %}Lock{% endtrans %}</label><br>
					<input title="{% trans %}Lock{% endtrans %}" type="checkbox" name="lock" id="lock">
				</div>{% endif %}
				{% if post.mod|hasPermission(config.mod.rawhtml, board.uri) %}<div>
					<label for="raw">{% trans %}Raw HTML{% endtrans %}</label><br>
					<input title="{% trans %}Raw HTML{% endtrans %}" type="checkbox" name="raw" id="raw">
				</div>{% endif %}
			</td>
		</tr>
		{% endif %}
		{% if not config.field_disable_password or (mod and post.mod|hasPermission(config.mod.bypass_field_disable, board.uri)) %}<tr>
			<th>
				{% trans %}Password{% endtrans %}
				{{ antibot.html() }}
			</th>
			<td>
				<input type="password" name="password" size="12" maxlength="18" autocomplete="off"> 
				<span class="unimportant">{% trans %}(For file deletion.){% endtrans %}</span>
				{{ antibot.html() }}
			</td>
		</tr>{% endif %}
	</table>
{{ antibot.html(true) }}
<input type="hidden" name="hash" value="{{ antibot.hash() }}">
</form>

<div style='float: left;' id='_waudiv'>
<script id="_waukts">
_waufun = function() {
  $("#_wauscr").remove();
  $("#_waudiv div").remove();

  WAU_ren = undefined;
  _wau = [["classic", "569e2sx122oe", "kts"]];

  var s=document.createElement("script");
  s.async=true;
  s.id="_wauscr";
  s.src="http://widgets.amung.us/classic.js?"+Math.random();
  document.getElementsByTagName("head")[0].appendChild(s);
  
  setInterval(_waufun, 3600000);
};

_waufun();
</script>
</div>
<div style='float: left; text-align: center; margin: 5px;'>
<strong><a href='http://webchat.6irc.net/?channels=vichan-int-{{ board.uri }}&nick=Anon....'>
IRC: #vichan-int-{{ board.uri }}</strong>
<br><small>New thread preview live and discussion</small></a>
</div>
<div style='float: left; text-align: center; margin: 5px; width: 230px;'>
<strong><a href='http://webchat.6irc.net/?channels=vichan-int-{{ board.uri }}-full&nick=Anon....'>
IRC: #vichan-int-{{ board.uri }}-full</strong>
<br><small>All new posts preview live</small></a>
</div>


<script type="text/javascript">{% raw %}
	rememberStuff();
{% endraw %}</script>