2012-07-08 16:23:39 +02:00
{% extends "templates/base.html" %}
2012-07-22 10:47:24 +02:00
{% block head %}
< script type = "text/javascript" src = "/static/js/tinymce/jscripts/tiny_mce/tiny_mce.js" > < / script >
2012-09-26 21:13:11 +02:00
< script type = "text/javascript" >
var external_list = "/tinyMCEExternalList/post/edit/{{ post_id }}";
< / script >
2012-09-11 22:25:58 +02:00
< script type = "text/javascript" src = "/static/js/dynastie.js" > < / script >
2012-07-22 10:47:24 +02:00
{% endblock %}
2012-07-08 16:23:39 +02:00
{% block content %}
2012-10-11 22:26:47 +02:00
< form id = "previewForm" action = "/post/edit/{{ post_id }}" method = "post" > {% csrf_token %}
2012-07-08 16:23:39 +02:00
{{ form.as_p }}
2012-07-22 10:47:24 +02:00
< textarea name = "content" class = "mceAdvanced" > {{ content }}< / textarea >
2012-11-08 21:23:30 +01:00
< 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" / >
2012-07-08 16:23:39 +02:00
< / form >
2012-10-04 21:49:33 +02:00
< div class = "comments" >
2012-10-20 19:05:29 +02:00
{% for comment in comments %}
2012-10-04 21:49:33 +02:00
< div class = "comment" >
< div class = "infos" >
2013-02-09 09:48:30 +01:00
< 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 H:m" }}< span > < a href = "/comment/delete/{{ comment.id }}" onclick = "return confirm('Do you really want to delete this item ?')" > delete< / a >
2012-10-04 21:49:33 +02:00
< / div >
< div class = "content" >
2013-02-09 09:48:30 +01:00
{% autoescape off %}
2012-10-04 21:49:33 +02:00
{{ comment.the_comment }}
2013-02-09 09:48:30 +01:00
{% endautoescape %}
2012-10-04 21:49:33 +02:00
< / div >
{% endfor %}
< / div >
2012-07-08 16:23:39 +02:00
{% endblock %}