* Removed some unused JS.
[redakcja.git] / apps / wiki / 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     <link rel="stylesheet" href="{{STATIC_URL}}css/jquery.autocomplete.css" type="text/css" media="screen" title="no title" charset="utf-8">
8
9     <script type="text/javascript" charset="utf-8">
10         var STATIC_URL = '{{STATIC_URL}}';
11     </script>
12     
13     <script src="{{STATIC_URL}}js/lib/codemirror/codemirror.js" type="text/javascript" charset="utf-8"></script>
14     <script src="{{STATIC_URL}}js/jquery.blockui.js" type="text/javascript" charset="utf-8"></script>
15     <script src="{{STATIC_URL}}js/jquery.autocomplete.js" type="text/javascript" charset="utf-8"></script>
16     <script src="{{STATIC_URL}}js/jquery.elastic.js" type="text/javascript" charset="utf-8"></script>
17     <script src="{{STATIC_URL}}js/button_scripts.js" type="text/javascript" charset="utf-8"></script>
18     <script src="{{STATIC_URL}}js/xslt.js" type="text/javascript" charset="utf-8"></script>
19     <script src="{{STATIC_URL}}js/main.js" type="text/javascript" charset="utf-8"></script>
20 {% endblock %}
21
22 {% block maincontent %}
23         <div id="loading-overlay">
24             <div id="loading-message"><img src="{{STATIC_URL}}img/spinner.gif" /><p>Ładowanie</p></div>
25         </div>
26         <div id="document-meta" style="display:none">
27         {% for k, v in document.meta.items %}
28             <div class="{{ k }}">{{ v}}</div>
29         {% endfor %}
30         </div>
31         <div id="header">
32             <div id="tools" style="float: right;">
33                 {% include "registration/head_login.html" %}
34                 Wersja: <span id="document-revision">{{ document.revision }}</span> <button style="margin-left: 6px" id="save-button">Zapisz</button></div>
35             <h1><a href="{% url wiki.views.document_list %}">Platforma</a></h1>
36             <ol id="tabs">
37                 <li id="simple-view-tab"><span id="document-name">{{ document.name }}</span></li>
38                 <li id="source-view-tab" class="active">Kod źródłowy</li>
39             </ol>
40             <div style="clear: both"></div>
41         </div>
42         <div id="splitter">
43             <div id="editor">
44                 <div id="source-editor">
45                     {% toolbar %}
46                     <textarea name="text" id="id_text">{{ document.plain_text }}</textarea>
47                     <input type="hidden" name="name" value="{{ document.name }}" />
48                     <input type="hidden" name="author" value="annonymous" />
49                     <input type="hidden" name="comment" value="no comment" />
50                     <input type="hidden" name="revision" value="{{ document.revision }}" />
51                 </div>
52                 <div id="simple-editor" style="display: none">
53                     <div class="toolbar">
54                         <button id="insert-theme-button">Wstaw motyw</button> <button id="insert-annotation-button">Wstaw przypis</button>
55                         <div class="toolbar-end"> </div>
56                     </div>
57                     <div id="html-view" class="htmlview">
58                     </div>
59                 </div>
60             </div>
61             <div class="vsplitbar"> </div>
62             <div id="sidebar">
63                 <div class="toolbar">
64                     <button class="previous-page">
65                         <img src="{{STATIC_URL}}icons/go-previous.png" alt="Poprzednia" title="Poprzednia"/>
66                     </button>
67                     <input type="text" size="3" maxlength="3" value="1" class="page-number" />
68                     <button class="next-page">
69                         <img src="{{STATIC_URL}}icons/go-next.png" alt="Następna" title="Następna"/>
70                     </button>
71                     <button class="zoom-in">Powiększ</button>
72                     <button class="zoom-out">Pomniejsz</button>
73                                         {% if request.user.is_staff %}
74                     <button class="change-gallery">Opcje</button>
75                                         {% endif %}
76                     <div class="toolbar-end"> </div>
77                 </div>
78                                 {% if request.user.is_staff %}
79                 <div class="toolbar" id="change-gallery-toolbar">
80                     <input type="text" value="" class="chosen-gallery" />
81                     <button class="change-gallery-ok">Zmień galerię</button>
82                     <button class="change-gallery-cancel">Anuluj</button>
83                     <div class="toolbar-end"> </div>    
84                 </div>
85                                 {% endif %}
86                 <div class="gallery-image">
87                     <img src="" />
88                 </div>
89             </div>
90         </div>
91         <div id="save-dialog" style="display: none; text-align: left">
92             <label for="komentarz" style="display: block">Opis zmian:</label>
93             <textarea name="komentarz" id="komentarz" style="display: block; width: 100%"></textarea>
94             <button id="save-ok">Zapisz</button> <button id="save-cancel">Anuluj</button>
95         </div>
96 {% endblock %}