/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

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