create 'new issue' form

This commit is contained in:
Lexi / Zoe 2019-06-03 00:14:40 +02:00
parent a69e436da5
commit e9285e415d
Signed by: binaryDiv
GPG key ID: F8D4956E224DA232
7 changed files with 46 additions and 3 deletions

View file

@ -8,4 +8,6 @@
</ul>
{% else %}
<p>No issues.</p>
{% endif %}
{% endif %}
<p><a href="{% url 'issues:new' %}">Create new issue</a></p>

View file

@ -0,0 +1,15 @@
<h2>Create new issue</h2>
{% if error_message %}<p><strong>{{ error_message }}</strong></p>{% endif %}
<form action="{% url 'issues:new' %}" method="post">
{% csrf_token %}
<table>
{{ form.as_table }}
<tr>
<td colspan="2">
<input type="submit" value="Create issue" />
</td>
</tr>
</table>
</form>