Widok do edycji dokumentów w aplikacji wiki.
[redakcja.git] / platforma / templates / wiki / document_details.html
1 {% extends "base.html" %}
2
3 {% block extrahead %}
4     <script src="{{STATIC_URL}}js/lib/codemirror/codemirror.js" type="text/javascript" charset="utf-8"></script>
5     <script type="text/javascript" charset="utf-8">
6         $(function() {
7             var editor = CodeMirror.fromTextArea('id_text', {
8                 parserfile: 'parsexml.js',
9                 path: "{{ STATIC_URL }}js/lib/codemirror/",
10                 stylesheet: "{{ STATIC_URL }}css/xmlcolors.css",
11                 parserConfig: {
12                     useHTMLKludges: false
13                 },
14                 textWrapping: true,
15                 tabMode: 'spaces',
16                 indentUnit: 0,
17             });
18         });
19     </script>
20 {% endblock %}
21
22 {% block maincontent %}
23     <form action="{% url wiki.views.document_detail document.name|urlencode %}" method="post" accept-charset="utf-8">
24         {{ form.as_p }}
25         <p><input type="submit" value="Continue &rarr;"></p>
26     </form>
27 {% endblock %}