Add Draft support
This commit is contained in:
@@ -32,7 +32,7 @@ Available tags:
|
||||
<textarea id="content" name="content" cols="100" rows="25"></textarea>
|
||||
{% endif %}
|
||||
<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" />
|
||||
<input type="submit" name="add" value="Add" /><input type="button" name="preview" value="Preview" onClick="previewPost({{ blog_id }});"/><input type="submit" name="draft" value="Save as draft" /><input type="submit" name="cancel" value="Cancel" />
|
||||
</form>
|
||||
{% if editor == "html" %}
|
||||
<div id="markdown_help" style="display:none">
|
||||
|
@@ -19,10 +19,20 @@
|
||||
{% csrf_token %}
|
||||
<input name="text"/><input type="submit" name="search" value="Search" />
|
||||
</form>
|
||||
{% if drafts|length != 0 %}
|
||||
<b>Drafts</b>
|
||||
<table>
|
||||
{% for draft in drafts %}
|
||||
<tr><td><a href="/draft/edit/{{ draft.id }}">{{ draft.id }}</a></td><td>{{ draft.title }}</td><td>{{ draft.creation_date }}</td><td>{{ draft.modification_date }}</td><td><a href="/draft/delete/{{ draft.id }}" onclick="return confirm('Do you really want to delete this item ?')">Delete</a></td></tr>
|
||||
{% endfor %}
|
||||
</table><br/>
|
||||
{% endif %}
|
||||
|
||||
{% if posts|length == 0 %}
|
||||
<br/><br/>
|
||||
<b>Any post available</b><br/><br/>
|
||||
{% else %}
|
||||
<b>Posts</b>
|
||||
<table>
|
||||
{% for post in posts %}
|
||||
{% with post.id as cur_id %}
|
||||
|
Reference in New Issue
Block a user