create 'new issue' form
This commit is contained in:
parent
0013410ac1
commit
23f3d2a96f
7 changed files with 46 additions and 3 deletions
|
|
@ -8,4 +8,6 @@
|
|||
</ul>
|
||||
{% else %}
|
||||
<p>No issues.</p>
|
||||
{% endif %}
|
||||
{% endif %}
|
||||
|
||||
<p><a href="{% url 'issues:new' %}">Create new issue</a></p>
|
||||
|
|
|
|||
15
issues/templates/issues/new.html
Normal file
15
issues/templates/issues/new.html
Normal 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>
|
||||
Reference in a new issue