5aac2e69b47715323b93f855761262f87790c582
[redakcja.git] / platforma / templates / wiki / document_details.html
1 {% extends "base.html" %}
2 {% load toolbar_tags %}
3
4 {% block extrahead %}
5     <link rel="stylesheet" href="{{STATIC_URL}}css/master.css" type="text/css" media="screen" charset="utf-8" />
6     <link rel="stylesheet" href="{{STATIC_URL}}css/html.css" type="text/css" media="screen" charset="utf-8" />
7     <script src="{{STATIC_URL}}js/lib/codemirror/codemirror.js" type="text/javascript" charset="utf-8"></script>
8     <script src="{{STATIC_URL}}js/jquery.blockui.js" type="text/javascript" charset="utf-8"></script>
9     <script src="{{STATIC_URL}}js/button_scripts.js" type="text/javascript" charset="utf-8"></script>
10     <script src="{{STATIC_URL}}js/xslt.js" type="text/javascript" charset="utf-8"></script>
11     <script src="{{STATIC_URL}}js/main.js" type="text/javascript" charset="utf-8"></script>
12 {% endblock %}
13
14 {% block maincontent %}
15         <div id="document-meta" style="display:none">
16         {% for k, v in document.meta.items %}
17             <div class="{{ k }}">{{ v}}</div>
18         {% endfor %}
19         </div>
20         <div id="header">
21             <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>
22             <h1>Platforma</h1>
23             <ol id="tabs">
24                 <li id="simple-view-tab"><span id="document-name">{{ document.name }}</span></li>
25                 <li id="source-view-tab" class="active">Kod źródłowy</li>
26             </ol>
27             <div style="clear: both"></div>
28         </div>
29         <div id="splitter">
30             <div id="editor">
31                 <div id="source-editor">
32                     {% toolbar %}
33                     <textarea name="text" id="id_text">{{ document.plain_text }}</textarea>
34                     <input type="hidden" name="name" value="{{ document.name }}" />
35                     <input type="hidden" name="author" value="annonymous" />
36                     <input type="hidden" name="comment" value="no comment" />
37                     <input type="hidden" name="revision" value="{{ document.revision }}" />
38                 </div>
39                 <div id="simple-editor" style="display: none">
40                     <div class="toolbar">
41                         <button>Wstaw motyw</button> <button>Wstaw przypis</button>
42                         <div class="toolbar-end"> </div>
43                     </div>
44                     <div id="html-view" class="htmlview">
45                     </div>
46                 </div>
47             </div>
48             <div class="vsplitbar"> </div>
49             <div id="sidebar">
50                 <div class="toolbar">
51                     <button class="previous-page">⇽ Poprzednia</button>
52                     <input type="text" size="3" maxlength="3" value="1" class="page-number" />
53                     <button class="next-page">Następna ⇾</button>
54                     <button class="zoom-in">Powiększ</button>
55                     <button class="zoom-out">Pomniejsz</button>
56                     <button class="change-gallery">Zmień galerię</button>
57                     <div class="toolbar-end"> </div>
58                 </div>
59                 <div class="toolbar" id="change-gallery-toolbar">
60                     <input type="text" value="" class="chosen-gallery" />
61                     <button class="change-gallery-ok">Zmień galerię</button>
62                     <button class="change-gallery-ok">Anuluj</button>
63                     <div class="toolbar-end"> </div>    
64                 </div>
65                 <div class="gallery-image">
66                     <img src="" />
67                 </div>
68             </div>
69         </div>
70         <div id="save-dialog" style="display: none; text-align: left">
71             <label for="komentarz" style="display: block">Opis zmian:</label>
72             <textarea name="komentarz" id="komentarz" style="display: block; width: 100%"></textarea>
73             <button id="save-ok">Zapisz</button> <button id="save-cancel">Anuluj</button>
74         </div>
75 {% endblock %}