No Topic option now always appears
This commit is contained in:
parent
c71b06ac9b
commit
39bf44e109
1 changed files with 6 additions and 1 deletions
|
|
@ -19,7 +19,11 @@
|
|||
<label>
|
||||
Tags
|
||||
<input type="text" id="input_tags" name="tags"
|
||||
value="{% if post.tags == "Blog.Tag.None" %} {% else %}{{ blog.tags }}{% endif %}">
|
||||
value="{% if post.tags == "Blog.Tag.None" %} {% else %}
|
||||
{% for tag in blog.tags %}
|
||||
{{ tag }}
|
||||
{% endfor %}
|
||||
{% endif %}">
|
||||
</label>
|
||||
</div>
|
||||
<div class="input-field col s6">
|
||||
|
|
@ -28,6 +32,7 @@
|
|||
<option selected>No topic</option>
|
||||
{% else %}
|
||||
<option selected>{{ post.topic.name }}</option>
|
||||
<option>No topic</option>
|
||||
{% endif %}
|
||||
{% for topic in alltopics %}
|
||||
<option value="{{ topic.id }}">{{ topic.name }}</option>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue