{% load toolbar_tags i18n %}
<div id="source-editor" class="editor">
- {% if not document_info.readonly %}{% toolbar %}{% endif %}
+ {% if not readonly %}{% toolbar %}{% endif %}
<textarea id="codemirror_placeholder"><br/></textarea>
- <!-- <input type="hidden" name="name" value="{{ document.name }}" />
+ <!-- <input type="hidden" name="name" value="{{ book.slug }}" />
<input type="hidden" name="author" value="annonymous" />
<input type="hidden" name="comment" value="no comment" />
- <input type="hidden" name="revision" value="{{ document_info.revision }}" />
+ <input type="hidden" name="revision" value="{{ book.doc.revision }}" />
-->
-</div>
\ No newline at end of file
+</div>