Dynastie/templates/add_post.html

24 lines
934 B
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/add/{{ blog_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-09-11 22:25:58 +02:00
<form id="previewForm" action="/post/add/{{ blog_id }}" method="post">{% csrf_token %}
2012-07-08 16:23:39 +02:00
{{ form.as_p }}
Available tags:
<select id="available_tags" size=5>
{% for tag in all_tags %}<option>{{ tag.name }}
{% endfor %}
</select>
<input type="button" onclick="addTag();" value="Add Tag"/>
2012-07-22 10:47:24 +02:00
<textarea name="content" class="mceAdvanced"></textarea><br/><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" />
2012-07-08 16:23:39 +02:00
</form>
{% endblock %}