Display all tags in add_post and edit_post
Reverse post list in all_posts
This commit is contained in:
@@ -11,6 +11,12 @@
|
||||
{% block content %}
|
||||
<form id="previewForm" action="/post/add/{{ blog_id }}" method="post">{% csrf_token %}
|
||||
{{ form.as_p }}
|
||||
Available tags:
|
||||
<select id="available_tags" size=5>
|
||||
{% for tag in all_tags %}<option>{{ tag.name }}
|
||||
{% endfor %}
|
||||
</select>
|
||||
<input type="button" onclick="addTag();" value="Add Tag"/>
|
||||
<textarea name="content" class="mceAdvanced"></textarea><br/><br/>
|
||||
<input type="submit" name="add" value="Add" /><input type="button" name="preview" value="Preview" onClick="previewPost({{ blog_id }});"/><input type="submit" name="cancel" value="Cancel" />
|
||||
</form>
|
||||
|
@@ -11,6 +11,12 @@
|
||||
{% block content %}
|
||||
<form id="previewForm" action="/post/edit/{{ post_id }}" method="post">{% csrf_token %}
|
||||
{{ form.as_p }}
|
||||
Available tags:
|
||||
<select id="available_tags" size=5>
|
||||
{% for tag in all_tags %}<option>{{ tag.name }}
|
||||
{% endfor %}
|
||||
</select>
|
||||
<input type="button" onclick="addTag();" value="Add Tag"/>
|
||||
<textarea name="content" class="mceAdvanced">{{ content }}</textarea>
|
||||
<input type="submit" name="edit" value="Edit" /><input type="button" name="preview" value="Preview" onClick="previewPost({{ blog_id }});"/><input type="submit" name="cancel" value="Cancel" />
|
||||
</form>
|
||||
|
Reference in New Issue
Block a user