Dynastie/templates/edit_post.html

34 lines
1.3 KiB
HTML
Raw Normal View History

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>
<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 %}
<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-09-11 22:25:58 +02:00
<input type="submit" name="edit" value="Edit" /><input type="button" name="preview" value="Preview" onClick="previewPost();"/><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">
{% for comment_list in comments %}
{% for comment in comment_list %}
<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 %}
{% for comment in comment_list %}
</div>
{% endfor %}
</div>
{% endfor %}
2012-07-08 16:23:39 +02:00
{% endblock %}