<script src="{{STATIC_URL}}js/lib/codemirror/codemirror.js" type="text/javascript" charset="utf-8"></script>
<script src="{{STATIC_URL}}js/jquery.blockui.js" type="text/javascript" charset="utf-8"></script>
<script src="{{STATIC_URL}}js/button_scripts.js" type="text/javascript" charset="utf-8"></script>
+ <script src="{{STATIC_URL}}js/xslt.js" type="text/javascript" charset="utf-8"></script>
<script src="{{STATIC_URL}}js/main.js" type="text/javascript" charset="utf-8"></script>
{% endblock %}
{% block maincontent %}
+ <div id="document-meta" style="display:none">
+ {% for k, v in document.meta.items %}
+ <div class="{{ k }}">{{ v}}</div>
+ {% endfor %}
+ </div>
<div id="header">
<div id="tools" style="float: right;">Wersja: <span id="document-revision">{{ document.revision }}</span> <button style="margin-left: 6px" id="save-button">Zapisz</button></div>
<h1>Platforma</h1>
<div id="editor">
<div id="source-editor">
{% toolbar %}
- {{ form.text }}
+ <textarea name="text" id="id_text">{{ document.plain_text }}</textarea>
<input type="hidden" name="name" value="{{ document.name }}" />
<input type="hidden" name="author" value="annonymous" />
<input type="hidden" name="comment" value="no comment" />
</div>
</div>
</div>
- <div id="save-dialog" style="display: none">
- <label for="komentarz">Komentarz</label><input type="text" name="komentarz" value="" id="komentarz" />
- <button id="save-ok">Zapisz</button>
- <button id="save-cancel">Anuluj</button>
+ <div id="save-dialog" style="display: none; text-align: left">
+ <label for="komentarz" style="display: block">Opis zmian:</label>
+ <textarea name="komentarz" id="komentarz" style="display: block; width: 100%"></textarea>
+ <button id="save-ok">Zapisz</button> <button id="save-cancel">Anuluj</button>
</div>
{% endblock %}
\ No newline at end of file