Dodanie automatycznego rozszerzania się textarea (jquery.elastic.js) i rusztowania...
[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="document-meta" style="display:none">
22         {% for k, v in document.meta.items %}
23             <div class="{{ k }}">{{ v}}</div>
24         {% endfor %}
25         </div>
26         <div id="header">
27             <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>
28             <h1>Platforma</h1>
29             <ol id="tabs">
30                 <li id="simple-view-tab"><span id="document-name">{{ document.name }}</span></li>
31                 <li id="source-view-tab" class="active">Kod źródłowy</li>
32             </ol>
33             <div style="clear: both"></div>
34         </div>
35         <div id="splitter">
36             <div id="editor">
37                 <div id="source-editor">
38                     {% toolbar %}
39                     <textarea name="text" id="id_text">{{ document.plain_text }}</textarea>
40                     <input type="hidden" name="name" value="{{ document.name }}" />
41                     <input type="hidden" name="author" value="annonymous" />
42                     <input type="hidden" name="comment" value="no comment" />
43                     <input type="hidden" name="revision" value="{{ document.revision }}" />
44                 </div>
45                 <div id="simple-editor" style="display: none">
46                     <div class="toolbar">
47                         <button id="insert-theme-button">Wstaw motyw</button> <button id="insert-annotation-button">Wstaw przypis</button>
48                         <div class="toolbar-end"> </div>
49                     </div>
50                     <div id="html-view" class="htmlview">
51                     </div>
52                 </div>
53             </div>
54             <div class="vsplitbar"> </div>
55             <div id="sidebar">
56                 <div class="toolbar">
57                     <button class="previous-page">⇽ Poprzednia</button>
58                     <input type="text" size="3" maxlength="3" value="1" class="page-number" />
59                     <button class="next-page">Następna ⇾</button>
60                     <button class="zoom-in">Powiększ</button>
61                     <button class="zoom-out">Pomniejsz</button>
62                     <button class="change-gallery">Zmień galerię</button>
63                     <div class="toolbar-end"> </div>
64                 </div>
65                 <div class="toolbar" id="change-gallery-toolbar">
66                     <input type="text" value="" class="chosen-gallery" />
67                     <button class="change-gallery-ok">Zmień galerię</button>
68                     <button class="change-gallery-cancel">Anuluj</button>
69                     <div class="toolbar-end"> </div>    
70                 </div>
71                 <div class="gallery-image">
72                     <img src="" />
73                 </div>
74             </div>
75         </div>
76         <div id="save-dialog" style="display: none; text-align: left">
77             <label for="komentarz" style="display: block">Opis zmian:</label>
78             <textarea name="komentarz" id="komentarz" style="display: block; width: 100%"></textarea>
79             <button id="save-ok">Zapisz</button> <button id="save-cancel">Anuluj</button>
80         </div>
81 {% endblock %}