Poprawienie requirements.txt (w tym podwyższenie wymaganej wersji Django do 1.1.1...
[redakcja.git] / project / templates / explorer / editor.html
1 {% extends "base.html" %}
2
3 {% block extrahead %}
4         <link rel="stylesheet" href="{{STATIC_URL}}css/jquery.modal.css" type="text/css" media="screen" charset="utf-8">
5         <link rel="stylesheet" href="{{STATIC_URL}}css/html.css" type="text/css" charset="utf-8">
6         <link rel="stylesheet" href="{{STATIC_URL}}css/toolbar.css" type="text/css" charset="utf-8">
7         <link rel="stylesheet" href="{{STATIC_URL}}css/autumn.css" type="text/css" media="screen" title="Autumn colors" charset="utf-8">
8         
9         <script type="text/javascript" charset="utf-8">
10                 var fileId = '{{ fileid }}';
11         </script>
12         
13         {# Libraries #}
14     <script src="{{STATIC_URL}}js/lib/codemirror/codemirror.js" type="text/javascript" charset="utf-8"></script>
15         <script src="{{STATIC_URL}}js/lib/jquery.modal.js" type="text/javascript" charset="utf-8"></script>
16         <script src="{{STATIC_URL}}js/lib/jquery.json.js" type="text/javascript" charset="utf-8"></script>
17         {# Scriptlets #}
18         <script src="{{STATIC_URL}}js/button_scripts.js" type="text/javascript" charset="utf-8"></script>
19         
20         {# App and views #}
21         <script src="{{STATIC_URL}}js/app.js" type="text/javascript" charset="utf-8"></script>
22         <script src="{{STATIC_URL}}js/messages.js" type="text/javascript" charset="utf-8"></script>
23         <script src="{{STATIC_URL}}js/views/view.js" type="text/javascript" charset="utf-8"></script>
24         <script src="{{STATIC_URL}}js/views/flash.js" type="text/javascript" charset="utf-8"></script>
25         <script src="{{STATIC_URL}}js/views/editor.js" type="text/javascript" charset="utf-8"></script>
26         <script src="{{STATIC_URL}}js/views/button_toolbar.js" type="text/javascript" charset="utf-8"></script>
27         <script src="{{STATIC_URL}}js/views/split.js" type="text/javascript" charset="utf-8"></script>
28         <script src="{{STATIC_URL}}js/views/xml.js" type="text/javascript" charset="utf-8"></script>
29         <script src="{{STATIC_URL}}js/views/html.js" type="text/javascript" charset="utf-8"></script>
30         <script src="{{STATIC_URL}}js/views/gallery.js" type="text/javascript" charset="utf-8"></script>
31         <script src="{{STATIC_URL}}js/views/panel_container.js" type="text/javascript" charset="utf-8"></script>
32         
33         <script src="{{STATIC_URL}}js/models.js" type="text/javascript" charset="utf-8"></script>
34         
35         {# JavaScript templates #}
36         <script type="text/html" charset="utf-8" id="panel-container-view-template">
37                 <div class="panel-main-toolbar">
38                 <p><select>
39                         <option value="empty" selected="selected"> ---- </option>
40                         <% for (panel in panels) { %>
41                         <option value="<%= panel %>"><%= panel %></option>
42                         <% }; %>
43                 </select> <button class="refresh">Odśwież panel</button></p>
44                 </div>
45                 <div class="content-view"></div>
46         </script>
47         
48         <script type="text/html" charset="utf-8" id="xml-view-template">
49                 <div class="xmlview-toolbar"></div>
50                 <div class="xmlview">
51                         
52                 </div>
53         </script>
54         
55         <script type="text/html" charset="utf-8" id="html-view-template">
56                 <div class="htmlview-toolbar">
57                     <a class="html-print-link" href="print" ui:baseref="{% url file_print fileid %}" target="_new">Wersja do druku</a>
58                 </div>
59                 
60                 <div class="htmlview">
61                 </div>
62         </script>       
63
64         <script type="text/html" charset="utf-8" id="flash-view-template">
65                 <div class="flashview">
66                 <% if (shownMessage) { %>
67                         <p style="margin: 0; padding: 0.2em 0.5em; line-height: 1.8em" class="<%= shownMessage.type %>"><%= shownMessage.text %></p>
68                 <% } %>
69                 </div>
70         </script>
71         
72     <script type="text/html" charset="utf-8" id="image-gallery-view-template">
73         <div class="image-gallery-view-template">
74
75         <div class="image-gallery-header">
76         <p>
77         <button type="button" class="image-gallery-prev-button">
78         <img alt="PPrevious" src="{{STATIC_URL}}/icons/go-previous.png" width="16" height="16" />
79         </button>
80
81         <input type="input" class="image-gallery-current-page"
82             size="5" value="<%= (currentPage + 1) %>" />
83
84
85         <button type="button" class="image-gallery-next-button">
86         <img alt="Next" src="{{STATIC_URL}}/icons/go-next.png" width="16" height="16" />
87         </button>
88
89         <button type="button" class="image-gallery-zoom-in">
90             <img alt="Zoom in" src="{{STATIC_URL}}/icons/zoom_in.png" width="16" height="16" />
91         </button>
92         <button type="button" class="image-gallery-zoom-out">
93             <img alt="Zoom out" src="{{STATIC_URL}}/icons/zoom_out.png" width="16" height="16" />
94         </button>
95         <button type="button" class="image-gallery-zoom-reset">
96             <img alt="Zoom reset" src="{{STATIC_URL}}/icons/zoom.png" width="16" height="16" />
97         </button>
98         </p>
99         </div>
100
101         <div class="image-gallery-page-list">
102             <% for(var i=0; i < model.data.length; i++) { %>
103                 <div class="image-gallery-page-container"
104                     ui:model="<%= model.data[i] %>"
105                     ui:width="480"
106                     ui:height="752"
107                 ></div>
108             <% }; %>
109         </div>
110         
111         </div>
112         </script>
113         
114         <script type="text/html" charset="utf-8" id="button-toolbar-view-template">
115                 <div class="buttontoolbarview panel-toolbar">
116                         <div class="buttontoolbarview-tabs toolbar-tabs-container toolbar-buttons-container">
117                         <% for (var i=0; i < buttons.length; i++) { %>
118                                 <button type="button" class="buttontoolbarview-tab" ui:groupindex="<%= i %>"><%= buttons[i].name %></button>
119                         <% }; %>
120                         </div>
121                         <div class="buttontoolbarview-groups ">
122                         <% for (var i=0; i < buttons.length; i++) { %>
123                                 <div class="buttontoolbarview-group toolbar-buttons-container" ui:groupIndex="<%= i %>" style="display: none">
124                                         <% for (var j=0; j < buttons[i].buttons.length; j++) { %>
125                                                 <% if (buttons[i].buttons[j].scriptlet_id) { %>
126                                                 <button type="button" class="buttontoolbarview-button"
127                                                     title="<%= buttons[i].buttons[j].tooltip %>"
128                                                     hotkey="<%= buttons[i].buttons[j].key %>"
129                                                     ui:hotkey_mod="<%= buttons[i].buttons[j].key_mod %>"
130                                                     ui:groupindex="<%= i %>" ui:buttonindex="<%= j %>">
131                                                         <%= buttons[i].buttons[j].label %>
132                                                 </button>
133                                                 <% } %>
134                                         <% } %>
135                                 </div>
136                         <% }; %>
137                         </div>
138                 </div>
139         </script>
140 {% endblock extrahead %}
141
142 {% block breadcrumbs %}<a href="{% url file_list %}">Platforma Redakcyjna</a> &gt; {{ fileid }}{% endblock breadcrumbs %}
143
144 {% block header-toolbar %}
145     <a href="http://stigma.nowoczesnapolska.org.pl/platforma-hg/ksiazki/log/tip/{{ fileid }}.xml" target="_new" >Historia</a>
146         <button id="action-merge">Merge</button>
147         <button id="action-update">Update</button>
148         <button id="action-commit">Commit</button>
149         <button id="action-quick-save">Quick Save</button>
150 {% endblock %}
151
152 {% block maincontent %}
153     <p style="display: none;" id="api-base-url">{% url document_list_view %}</p>
154     <p style="display: none;" id="api-toolbar-url">{% url toolbar_buttons %}</p>
155
156     <div id="splitview">
157         <div id="left-panel-container" class='panel-container'></div>
158         <div id="right-panel-container" class='panel-container'></div>
159     </div>
160
161     <div id="commit-dialog" class="jqmWindow" style="display:none">
162         <form action="" method="POST">
163             <label for="message">Commit message:</label>
164             <textarea cols="60" rows="10" name="message" id="commit-dialog-message"></textarea>
165             <p id="commit-dialog-error-empty-message">Wiadomość nie może być pusta.</p>                
166             <fieldset id="commit-dialog-related-issues" ui:ajax-src="{{REDMINE_URL}}/publications/issues/{{fileid}}">
167                 <legend>Related issues</legend>
168                 <div class="loading-box" style="display: none;">
169                     <p>Loading related issues...</p>
170                 </div>
171                 <div class="container-box">No related issues.</div>
172             </fieldset>
173             <p>
174                <input type="button" value="Save" id="commit-dialog-save-button" />
175                <input type="reset" value="Cancel" id="commit-dialog-cancel-button" />
176             </p>
177         </form>
178     </div>
179     
180     <div id="split-dialog" class="jqmWindow" style="display:none">
181         <div class="container-box"> </div>
182         <div class="loading-box" style="display: none;">
183             <p>Loading dialog contents...</p>
184             <!-- <p><button type="button" class="dialog-close-button">Close</button></p> -->
185         </div>
186         <div class="fatal-error-box" style="display: none;">
187             <p>Server error, while loading dialog :(</p>
188             <p><button type="button" class="dialog-close-button">Close</button></p>
189         </div>
190     </div>
191 {% endblock maincontent %}
192
193 {% block extrabody %}
194         <div style="position: absolute; left: 35%; right: 35%; top: 0; height: 20px; z-index: 0" id="flashview"></div>
195 {% endblock %}