Add templates management
This commit is contained in:
@@ -29,7 +29,7 @@
|
||||
<div class="form_add">
|
||||
<form action="/note/add" method="post">{% csrf_token %}
|
||||
{{ note_form.as_p }}
|
||||
Category <input name="category" list=all_categories>
|
||||
Category <input name="category" list=all_categories {% if category != None %} value="{{ category }}" {% endif %}>
|
||||
<datalist id="all_categories">
|
||||
{% for category in categories %}
|
||||
<option value="{{ category.name }}"></option>
|
||||
|
||||
Reference in New Issue
Block a user