1 {% extends "base.html" %}
5 <link rel="stylesheet" href="{{STATIC_URL}}css/jquery.modal.css" type="text/css" media="screen" charset="utf-8">
6 <link rel="stylesheet" href="{{STATIC_URL}}css/html.css" type="text/css" charset="utf-8">
7 <link rel="stylesheet" href="{{STATIC_URL}}css/toolbar.css" type="text/css" charset="utf-8">
8 <link rel="stylesheet" href="{{STATIC_URL}}css/autumn.css" type="text/css" media="screen" title="Autumn colors" charset="utf-8">
10 <script type="text/javascript" charset="utf-8">
12 docID: '{{ fileid }}',
13 userID: '{{ euser }}',
14 docURL: '{% url document_view fileid %}{% if euser %}?user={{ euser|urlencode }}{% endif %}',
15 toolbarURL: '{% url toolbar_buttons %}',
16 renderURL: '{% url api.views.render %}',
17 staticURL: '{{ STATIC_URL }}'
23 <script src="{{STATIC_URL}}js/lib/codemirror/codemirror.js" type="text/javascript" charset="utf-8"></script>
24 <script src="{{STATIC_URL}}js/lib/jquery.modal.js" type="text/javascript" charset="utf-8"></script>
25 <script src="{{STATIC_URL}}js/lib/jquery.json.js" type="text/javascript" charset="utf-8"></script>
28 <script src="{{STATIC_URL}}js/button_scripts.js" type="text/javascript" charset="utf-8"></script>
31 <script src="{{STATIC_URL}}js/app.js" type="text/javascript" charset="utf-8"></script>
32 <script src="{{STATIC_URL}}js/messages.js" type="text/javascript" charset="utf-8"></script>
33 <script src="{{STATIC_URL}}js/views/view.js" type="text/javascript" charset="utf-8"></script>
34 <script src="{{STATIC_URL}}js/views/flash.js" type="text/javascript" charset="utf-8"></script>
35 <script src="{{STATIC_URL}}js/views/editor.js" type="text/javascript" charset="utf-8"></script>
36 <script src="{{STATIC_URL}}js/views/button_toolbar.js" type="text/javascript" charset="utf-8"></script>
37 <script src="{{STATIC_URL}}js/views/split.js" type="text/javascript" charset="utf-8"></script>
38 <script src="{{STATIC_URL}}js/views/xml.js" type="text/javascript" charset="utf-8"></script>
39 <script src="{{STATIC_URL}}js/views/html.js" type="text/javascript" charset="utf-8"></script>
40 <script src="{{STATIC_URL}}js/views/gallery.js" type="text/javascript" charset="utf-8"></script>
41 <script src="{{STATIC_URL}}js/views/panel_container.js" type="text/javascript" charset="utf-8"></script>
43 <script src="{{STATIC_URL}}js/models.js" type="text/javascript" charset="utf-8"></script>
45 {# JavaScript templates #}
46 <script type="text/html" charset="utf-8" id="panel-container-view-template">
47 <div class="panel-main-toolbar">
49 <option value="empty" selected="selected"> ---- </option>
50 <% for (panel in panels) { %>
51 <option value="<%= panel %>"><%= panel %></option>
53 </select> <button class="refresh">{% trans "Refresh panel" %}</button></p>
55 <div class="content-view"></div>
58 <script type="text/html" charset="utf-8" id="xml-view-template">
59 <div class="xmlview-toolbar"></div>
65 <script type="text/html" charset="utf-8" id="html-view-template">
66 <div class="htmlview-toolbar">
67 <a class="html-print-link" href="print" ui:baseref="{% url file_print fileid %}" target="_new">{% trans "Print version" %}</a>
68 <button class="html-add-motive" type="button">Dodaj motyw</button>
71 <div class="htmlview">
75 <script type="text/html" charset="utf-8" id="html-view-frag-menu-template">
76 <span class="default-menu context-menu">
77 <span class="edit-button">Edytuj</span>
79 <span class="edit-menu context-menu">
80 <span class="accept-button">OK</span>
81 <span class="reject-button">Anuluj</span>
87 <script type="text/html" charset="utf-8" id="flash-view-template">
88 <div class="flashview">
89 <% if (shownMessage) { %>
90 <p style="margin: 0; padding: 0.2em 0.5em; line-height: 1.8em" class="<%= shownMessage.type %>"><%= shownMessage.text %></p>
95 <script type="text/html" charset="utf-8" id="image-gallery-view-template">
96 <div class="image-gallery-view-template">
98 <div class="image-gallery-header">
100 <button type="button" class="image-gallery-prev-button">
101 <img alt="PPrevious" src="{{STATIC_URL}}/icons/go-previous.png" width="16" height="16" />
104 <input type="input" class="image-gallery-current-page"
105 size="5" value="<%= (currentPage + 1) %>" />
108 <button type="button" class="image-gallery-next-button">
109 <img alt="{% trans 'Next page' %}" src="{{STATIC_URL}}/icons/go-next.png" width="16" height="16" />
112 <button type="button" class="image-gallery-zoom-in">
113 <img alt="{% trans 'Zoom in' %}" src="{{STATIC_URL}}/icons/zoom_in.png" width="16" height="16" />
115 <button type="button" class="image-gallery-zoom-out">
116 <img alt="{% trans 'Zoom out' %}" src="{{STATIC_URL}}/icons/zoom_out.png" width="16" height="16" />
118 <button type="button" class="image-gallery-zoom-reset">
119 <img alt="{% trans 'Reset zoom' %}" src="{{STATIC_URL}}/icons/zoom.png" width="16" height="16" />
124 <div class="image-gallery-page-list">
125 <% for(var i=0; i < model.data.length; i++) { %>
126 <div class="image-gallery-page-container"
127 ui:model="<%= model.data[i] %>"
137 <script type="text/html" charset="utf-8" id="button-toolbar-view-template">
138 <div class="buttontoolbarview panel-toolbar">
139 <div class="buttontoolbarview-tabs toolbar-tabs-container toolbar-buttons-container">
140 <% for (var i=0; i < buttons.length; i++) { %>
141 <button type="button" class="buttontoolbarview-tab" ui:groupindex="<%= i %>"><%= buttons[i].name %></button>
144 <div class="buttontoolbarview-groups ">
145 <% for (var i=0; i < buttons.length; i++) { %>
146 <div class="buttontoolbarview-group toolbar-buttons-container" ui:groupIndex="<%= i %>" style="display: none">
147 <% for (var j=0; j < buttons[i].buttons.length; j++) { %>
148 <% if (buttons[i].buttons[j].scriptlet_id) { %>
149 <button type="button" class="buttontoolbarview-button"
150 title="<%= buttons[i].buttons[j].tooltip %>"
151 hotkey="<%= buttons[i].buttons[j].key %>"
152 ui:hotkey_mod="<%= buttons[i].buttons[j].key_mod %>"
153 ui:groupindex="<%= i %>" ui:buttonindex="<%= j %>">
154 <%= buttons[i].buttons[j].label %>
163 {% endblock extrahead %}
165 {% block breadcrumbs %}<a href="{% url file_list %}">Platforma</a> > {{euser}} > {{ fileid }}{% endblock breadcrumbs %}
167 {% block header-toolbar %}
168 <a href="http://stigma.nowoczesnapolska.org.pl/platforma-hg/ksiazki/log/tip/{{ fileid }}.xml" target="_new" >{% trans 'History' %}</a>
169 <button id="action-merge">{% trans 'Push' %}</button>
170 <button id="action-update">{% trans 'Pull' %}</button>
171 <button id="action-commit">{% trans 'Save' %}</button>
172 <button id="action-quick-save">{% trans 'Quick save' %}</button>
175 {% block maincontent %}
179 <div id="left-panel-container" class='panel-container'></div>
180 <div id="right-panel-container" class='panel-container'></div>
183 <div id="commit-dialog" class="jqmWindow" style="display:none">
184 <form action="" method="POST">
185 <label for="message">Commit message:</label>
186 <textarea cols="60" rows="10" name="message" id="commit-dialog-message"></textarea>
187 <p id="commit-dialog-error-empty-message">Wiadomość nie może być pusta.</p>
188 <fieldset id="commit-dialog-related-issues" ui:ajax-src="{{REDMINE_URL}}/publications/issues/{{fileid}}">
189 <legend>Related issues</legend>
190 <div class="loading-box" style="display: none;">
191 <p>Loading related issues...</p>
193 <div class="container-box">No related issues.</div>
196 <input type="button" value="Save" id="commit-dialog-save-button" />
197 <input type="reset" value="Cancel" id="commit-dialog-cancel-button" />
202 <div id="split-dialog" class="jqmWindow" style="display:none">
203 <div class="container-box"> </div>
204 <div class="loading-box" style="display: none;">
205 <p>Loading dialog contents...</p>
206 <!-- <p><button type="button" class="dialog-close-button">Close</button></p> -->
208 <div class="fatal-error-box" style="display: none;">
209 <p>Server error, while loading dialog :(</p>
210 <p><button type="button" class="dialog-close-button">Close</button></p>
213 {% endblock maincontent %}
215 {% block extrabody %}
216 <div style="position: absolute; left: 35%; right: 35%; top: 0; height: 20px; z-index: 0" id="flashview"></div>