Fix a bug in edit_post template

This commit is contained in:
Grégory Soutadé 2012-10-11 19:00:26 +02:00
parent 505cb5e0c6
commit 6b8e1ad0a2

View File

@ -9,7 +9,7 @@
{% endblock %} {% endblock %}
{% block content %} {% block content %}
<form id="previewForm" action="/post/edit/{{ blog_id }}" method="post">{% csrf_token %} <form id="previewForm" action="/post/edit/{{ post_id }}" method="post">{% csrf_token %}
{{ form.as_p }} {{ form.as_p }}
<textarea name="content" class="mceAdvanced">{{ content }}</textarea> <textarea name="content" class="mceAdvanced">{{ content }}</textarea>
<input type="submit" name="edit" value="Edit" /><input type="button" name="preview" value="Preview" onClick="previewPost();"/><input type="submit" name="cancel" value="Cancel" /> <input type="submit" name="edit" value="Edit" /><input type="button" name="preview" value="Preview" onClick="previewPost();"/><input type="submit" name="cancel" value="Cancel" />