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