1 {% extends "base.html" %}
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">
9 <script type="text/javascript" charset="utf-8">
10 var fileId = '{{ fileid }}';
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>
17 <script src="http://localhost:8000/api/toolbar/scriptlets" type="text/javascript" charset="utf-8"></script>
20 <script src="{{STATIC_URL}}js/app.js" type="text/javascript" charset="utf-8"></script>
21 <script src="{{STATIC_URL}}js/messages.js" type="text/javascript" charset="utf-8"></script>
22 <script src="{{STATIC_URL}}js/views/view.js" type="text/javascript" charset="utf-8"></script>
23 <script src="{{STATIC_URL}}js/views/flash.js" type="text/javascript" charset="utf-8"></script>
24 <script src="{{STATIC_URL}}js/views/editor.js" type="text/javascript" charset="utf-8"></script>
25 <script src="{{STATIC_URL}}js/views/button_toolbar.js" type="text/javascript" charset="utf-8"></script>
26 <script src="{{STATIC_URL}}js/views/split.js" type="text/javascript" charset="utf-8"></script>
27 <script src="{{STATIC_URL}}js/views/xml.js" type="text/javascript" charset="utf-8"></script>
28 <script src="{{STATIC_URL}}js/views/html.js" type="text/javascript" charset="utf-8"></script>
29 <script src="{{STATIC_URL}}js/views/gallery.js" type="text/javascript" charset="utf-8"></script>
30 <script src="{{STATIC_URL}}js/views/panel_container.js" type="text/javascript" charset="utf-8"></script>
32 <script src="{{STATIC_URL}}js/models.js" type="text/javascript" charset="utf-8"></script>
34 {# JavaScript templates #}
35 <script type="text/html" charset="utf-8" id="panel-container-view-template">
36 <div class="panel-main-toolbar">
38 <% for (panel in panels) { %>
39 <option value="<%= panel %>"><%= panel %></option>
41 </select> <button class="refresh">Odśwież panel</button></p>
43 <div class="content-view"></div>
46 <script type="text/html" charset="utf-8" id="xml-view-template">
47 <div class="xmlview-toolbar"></div>
53 <script type="text/html" charset="utf-8" id="html-view-template">
54 <div class="htmlview">
58 <script type="text/html" charset="utf-8" id="flash-view-template">
59 <div class="flashview">
60 <% if (shownMessage) { %>
61 <p style="margin: 0; padding: 0.2em 0.5em; line-height: 1.8em; background-color: yellow" class="<%= shownMessage.type %>"><%= shownMessage.text %></p>
66 <script type="text/html" charset="utf-8" id="image-gallery-view-template">
67 <div class="image-gallery-view-template">
69 <div class="image-gallery-header">
71 <button type="button" class="image-gallery-prev-button">
72 <img alt="PPrevious" src="{{STATIC_URL}}/icons/go-previous.png" width="16" height="16" />
75 <input type="input" class="image-gallery-current-page"
76 size="5" value="<%= (currentPage + 1) %>" />
79 <button type="button" class="image-gallery-next-button">
80 <img alt="Next" src="{{STATIC_URL}}/icons/go-next.png" width="16" height="16" />
83 <button type="button" class="image-gallery-zoom-in">
84 <img alt="Zoom in" src="{{STATIC_URL}}/icons/zoom_in.png" width="16" height="16" />
86 <button type="button" class="image-gallery-zoom-out">
87 <img alt="Zoom out" src="{{STATIC_URL}}/icons/zoom_out.png" width="16" height="16" />
89 <button type="button" class="image-gallery-zoom-reset">
90 <img alt="Zoom reset" src="{{STATIC_URL}}/icons/zoom.png" width="16" height="16" />
95 <div class="image-gallery-page-list">
96 <% for(var i=0; i < model.data.length; i++) { %>
97 <div class="image-gallery-page-container"
98 ui:model="<%= model.data[i] %>"
108 <script type="text/html" charset="utf-8" id="button-toolbar-view-template">
109 <div class="buttontoolbarview panel-toolbar">
110 <div class="buttontoolbarview-tabs toolbar-tabs-container toolbar-buttons-container">
111 <% for (var i=0; i < buttons.length; i++) { %>
112 <a href="#" class="buttontoolbarview-tab" ui:groupindex="<%= i %>"><%= buttons[i].name %></a>
115 <div class="buttontoolbarview-groups ">
116 <% for (var i=0; i < buttons.length; i++) { %>
117 <div class="buttontoolbarview-group toolbar-buttons-container" ui:groupIndex="<%= i %>" style="display: none">
118 <% for (var j=0; j < buttons[i].buttons.length; j++) { %>
119 <% if (buttons[i].buttons[j].scriptlet_id) { %>
120 <a href="#" class="buttontoolbarview-button" ui:groupindex="<%= i %>" ui:buttonindex="<%= j %>">
121 <%= buttons[i].buttons[j].label %>
130 {% endblock extrahead %}
132 {% block breadcrumbs %}<a href="{% url file_list %}">Platforma Redakcyjna</a> > {{ fileid }}{% endblock breadcrumbs %}
134 {% block header-toolbar %}
135 <button id="action-merge">Merge</button> <button id="action-update">Update</button> <button id="action-commit">Commit</button> <button id="action-quick-save">Quick Save</button>
138 {% block maincontent %}
140 <div id="left-panel-container" class='panel-container'></div>
141 <div id="right-panel-container" class='panel-container'></div>
145 <div id="commit-dialog" class="jqmWindow" style="display:none">
146 <form action="{% url file_commit fileid %}" method="POST">
147 <label for="message">Commit message:</label>
148 <textarea cols="60" rows="10" name="message" id="commit-dialog-message"></textarea>
149 <p id="commit-dialog-error-empty-message">Wiadomość nie może być pusta.</p>
150 <fieldset id="commit-dialog-related-issues"
151 ui:ajax-src="http://localhost:3000/publications/issues/{{fileid}}">
152 <legend>Related issues</legend>
153 <div class="loading-box" style="display: none;">
154 <p>Loading related issues...</p>
156 <div class="container-box">No related issues.</div>
159 <input type="button" value="Save" id="commit-dialog-save-button" />
160 <input type="reset" value="Cancel" id="commit-dialog-cancel-button" />
165 <div id="split-dialog" class="jqmWindow" style="display:none">
166 <div class="container-box"> </div>
167 <div class="loading-box" style="display: none;">
168 <p>Loading dialog contents...</p>
169 <!-- <p><button type="button" class="dialog-close-button">Close</button></p> -->
171 <div class="fatal-error-box" style="display: none;">
172 <p>Server error, while loading dialog :(</p>
173 <p><button type="button" class="dialog-close-button">Close</button></p>
176 {% endblock maincontent %}
178 {% block extrabody %}
179 <div style="position: absolute; left: 35%; right: 35%; top: 0; height: 20px; z-index: 1000" id="flashview"></div>