aboutsummaryrefslogtreecommitdiff
path: root/app/templates/threads/new.html
blob: a586769f7d32b571ad6b1f9f2c66f257680968e2 (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
{% extends "base.html" %}

{% block title %}
	New Thread
{% endblock %}

{% block content %}

{% if package and current_user != package.author and not current_user.rank.atLeast(current_user.rank.EDITOR) and package.issueTracker %}
	<div class="alert alert-warning">
		Found a bug? Post on the <a href="{{ package.issueTracker }}">issue tracker</a> instead.<br />
		If the package shouldn't be on CDB - for example, if it doesn't work at all - then please let us know here.
	</div>
{% endif %}

{% from "macros/forms.html" import render_field, render_submit_field, render_checkbox_field %}
<form method="POST" action="" enctype="multipart/form-data">
	{{ form.hidden_tag() }}
	{{ render_field(form.title) }}

	<div class="row mt-0 mb-4 comments mx-0">
		<div class="col-md-1 p-1">
			<img class="img-responsive user-photo img-thumbnail img-thumbnail-1" src="{{ current_user.getProfilePicURL() }}">
		</div>
		<div class="col">
			<div class="card">
				<div class="card-header {{ current_user.rank.name }}">
					{{ current_user.display_name }}
					<a name="reply"></a>
				</div>
				<div class="card-body">
					{{ render_field(form.comment, label="", class_="m-0", fieldclass="form-control markdown") }}
				</div>
			</div>
		</div>
	</div>

	{{ render_checkbox_field(form.private, class_="my-3") }}
	<p>
		Only you, the package author, and users of Editor rank
		and above can read private threads.
	</p>

	{{ render_submit_field(form.submit) }}
</form>


{% endblock %}