* Readonly document view.
[redakcja.git] / apps / wiki / templates / wiki / tabs / source_editor.html
diff --git a/apps/wiki/templates/wiki/tabs/source_editor.html b/apps/wiki/templates/wiki/tabs/source_editor.html
new file mode 100644 (file)
index 0000000..10ca334
--- /dev/null
@@ -0,0 +1,10 @@
+{% load toolbar_tags %}
+<div id="source-editor" class="editor">
+    {% if not document_info.readonly %}{% toolbar %}{% endif %}
+    <textarea id="codemirror_placeholder">&lt;br/&gt;</textarea>
+    <!-- <input type="hidden" name="name" value="{{ document.name }}" />
+       <input type="hidden" name="author" value="annonymous" />
+       <input type="hidden" name="comment" value="no comment" />
+       <input type="hidden" name="revision" value="{{ document_info.revision }}" />
+       -->
+</div>
\ No newline at end of file