2
2
{% load pybb_extras %}
7
{% trans "New Topic" %}
10
{% trans "Edit Reply" %}
12
{% trans "New Reply" %}
18
{% block extra_head %}
20
<script type="text/javascript" src="{{MEDIA_URL}}/js/disableOnSubmit.js"></script>
21
<script type="text/javascript">
23
$('form').disableOnSubmit();
24
$('.post-form .preview-button').click(function() {
25
var raw_content = $.trim($('.post-form #id_body').val());
26
var markup = $('.post-form #id_markup').val();
28
args = {'content': raw_content, 'markup': markup}
29
$.post('{% url pybb_post_ajax_preview %}', args, function(data) {
33
$('.preview-box .content').html(data.content);
34
$('.preview-box').show();
6
{% include "django_messages/inlines/navigation.html" %}
9
<div class="box_item_model border">
10
{% include "pybb/inlines/add_post_form.html" %}
43
<form class="post-form" action="{{ form_url }}" method="post" enctype="multipart/form-data">
46
{% trans "New Topic" %}
49
{% trans "Edit Reply" %}
51
{% trans "New Reply" %}
55
<div class="blogEntry">
56
<a href="{% url pybb_index %}">Forums</a> »
58
<a href="{{ forum.category.get_absolute_url }}">{{ forum.category.name }}</a> »
61
{% pybb_link topic.forum.category %} »
62
<a href="{{ topic.forum.get_absolute_url }}">{{ topic.forum.name }}</a> »
66
<div class="preview-box" style="display: none">
68
{% trans "Preview" %}:<br />
69
<div class="content post">
75
<button type="submit">
76
<img src="{{MEDIA_URL}}/forum/img/send.png" alt ="" class="middle" />
77
<span class="middle">{% trans "Send" %}</span>
79
<button type="button" class="preview-button">
80
<img src="{{MEDIA_URL}}/forum/img/preview.png" alt ="" class="middle" />
81
<span class="middle">{% trans "Preview" %}</span>