summaryrefslogtreecommitdiffstats
path: root/hyperkitty/templates/messages/reply_form.html
blob: b0a810ddf415f9ee3dad130a6dc3d88ff4f408f5 (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
{% load url from future %}

	<a class="reply{% if not user.is_authenticated %} disabled" title="You must be logged-in to reply.{% endif %}" href="#">Reply</a>
	<div class="reply-form dropdown">
		<form method="post"
			  action="{% url 'message_reply' mlist_fqdn=mlist_fqdn message_id_hash=message_id_hash %}">
			{% csrf_token %}
			<p class="reply-tools">
				<a class="btn btn-mini quote" href="#">Quote</a>
				<label>{{ reply_form.newthread }} Create a new thread</label>
			</p>
			{{ reply_form.non_field_errors }}
			{% for field in reply_form %}
				{% if field.html_name != "newthread" %}
					<p>{{ field }} {{ field.errors}}</p>
				{% endif %}
			{% endfor %}
			{# { reply_form.as_p } #}
			<p class="buttons">
				<button type="submit" class="submit btn btn-primary">Send</button>
				or <a class="cancel" href="#">cancel</a>
			</p>
		</form>
	</div>

{# vim: set noet: #}