PageRenderTime 18ms CodeModel.GetById 16ms app.highlight 1ms RepoModel.GetById 0ms app.codeStats 0ms

/forum/templates/forum/new_topic.html

http://djforum.googlecode.com/
HTML | 43 lines | 32 code | 9 blank | 2 comment | 0 complexity | 23c4513946cb4c604aa8a0d3260fd822 MD5 | raw file
Possible License(s): GPL-2.0, GPL-3.0
 1{% extends "forum/base.html" %}
 2{% load customfilters %}
 3
 4{% block title %}
 5DjangoPower??
 6{% endblock %}
 7
 8{% block js %}
 9<!-- jQuery library is required, see http://jquery.com/ -->
10<script type="text/javascript" src="/site_media/js/wym/jquery/jquery.js"></script>
11<!-- WYMeditor main JS file, packed version -->
12<script type="text/javascript" src="/site_media/js/wym/wymeditor/jquery.wymeditor.pack.js"></script>
13
14<script type="text/javascript">
15
16/* Here we replace each element with class 'wymeditor'
17 * (typically textareas) by a WYMeditor instance.
18 * 
19 * We could use the 'html' option, to initialize the editor's content.
20 * If this option isn't set, the content is retrieved from
21 * the element being replaced.
22 */
23
24jQuery(function() {
25    jQuery('.wymeditor').wymeditor({
26        html: '',
27        lang: 'zh_cn',
28        stylesheet: 'styles.css'
29    });
30});
31
32</script>
33{% endblock %}
34
35{% block content %}
36<h2>????</h2>
37
38<form action="." method="post">
39    {{ form.as_p }}
40    <input class="wymupdate" name="commit" type="submit" value="??" />
41</form>
42
43{% endblock %}