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