Dynastie/templates/edit_post.html
Grégory Soutadé 85488e0838 Add tags support
Set slugify to be global
Update modification date only if text has been changed
Fix a bug in preview (post_id was passed instead of blog_id)
Add Home, Category and Tag links in blog area instead of global area (dynastie template)
Fix a bug in Have_I_right
2012-11-08 21:23:30 +01:00

29 lines
1.2 KiB
HTML

{% extends "templates/base.html" %}
{% block head %}
<script type="text/javascript" src="/static/js/tinymce/jscripts/tiny_mce/tiny_mce.js"></script>
<script type="text/javascript">
var external_list = "/tinyMCEExternalList/post/edit/{{ post_id }}";
</script>
<script type="text/javascript" src="/static/js/dynastie.js"></script>
{% endblock %}
{% block content %}
<form id="previewForm" action="/post/edit/{{ post_id }}" method="post">{% csrf_token %}
{{ form.as_p }}
<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>
<div class="comments">
{% for comment in comments %}
<div class="comment">
<div class="infos">
<a href="/comment/edit/{{ comment.id }}">#{{ comment.id }}</a> <span class="author">{{ comment.author }}</span> <span class="mail">{{ comment.email|default:"no mail" }}</span> <span class="date">{{ comment.date|date:"D d M Y" }}<span> <a href="/comment/delete/{{ comment.id }}">delete</a>
</div>
<div class="content">
{{ comment.the_comment }}
</div>
{% endfor %}
</div>
{% endblock %}