1 {% extends "base.html" %}
4 <link rel="stylesheet" href="{{STATIC_URL}}css/jquery.modal.css" type="text/css" media="screen" title="no title" charset="utf-8">
5 <link rel="stylesheet" href="{{STATIC_URL}}css/html.css" type="text/css" media="screen" title="no title" charset="utf-8">
7 <script type="text/javascript" charset="utf-8">
8 var fileId = '{{ fileid }}';
12 <script src="{{STATIC_URL}}js/lib/codemirror/codemirror.js" type="text/javascript" charset="utf-8"></script>
13 <script src="{{STATIC_URL}}js/lib/jquery.modal.js" type="text/javascript" charset="utf-8"></script>
15 <script src="http://localhost:8000/api/toolbar/scriptlets" type="text/javascript" charset="utf-8"></script>
18 <script src="{{STATIC_URL}}js/app.js" type="text/javascript" charset="utf-8"></script>
19 <script src="{{STATIC_URL}}js/views/view.js" type="text/javascript" charset="utf-8"></script>
20 <script src="{{STATIC_URL}}js/views/editor.js" type="text/javascript" charset="utf-8"></script>
21 <script src="{{STATIC_URL}}js/views/button_toolbar.js" type="text/javascript" charset="utf-8"></script>
22 <script src="{{STATIC_URL}}js/views/split.js" type="text/javascript" charset="utf-8"></script>
23 <script src="{{STATIC_URL}}js/views/xml.js" type="text/javascript" charset="utf-8"></script>
24 <script src="{{STATIC_URL}}js/views/html.js" type="text/javascript" charset="utf-8"></script>
25 <script src="{{STATIC_URL}}js/views/gallery.js" type="text/javascript" charset="utf-8"></script>
26 <script src="{{STATIC_URL}}js/views/panel_container.js" type="text/javascript" charset="utf-8"></script>
28 <script src="{{STATIC_URL}}js/models.js" type="text/javascript" charset="utf-8"></script>
30 {# JavaScript templates #}
31 <script type="text/html" charset="utf-8" id="panel-container-view-template">
33 <% for (panel in panels) { %>
34 <option value="<%= panel %>"><%= panel %></option>
37 <div class="content-view"></div>
40 <script type="text/html" charset="utf-8" id="xml-view-template">
41 <div class="xmlview-toolbar"></div>
47 <script type="text/html" charset="utf-8" id="html-view-template">
48 <div class="htmlview">
52 <script type="text/html" charset="utf-8" id="image-gallery-view-template">
53 <div class="image-gallery-view-template">
55 <div class="image-gallery-header">
57 <button type="button" class="image-gallery-prev-button">Previous</button>
58 <input type="input" class="image-gallery-current-page" />
59 <button type="button" class="image-gallery-next-button">Next</button>
64 <% for(var i=0; i < model.data.length; i++) { %>
65 <p class="image-gallery-page-container"><%= model.data[i] %></p>
72 <script type="text/html" charset="utf-8" id="button-toolbar-view-template">
73 <div class="buttontoolbarview">
74 <div class="buttontoolbarview-tabs">
75 <% for (var i=0; i < buttons.length; i++) { %>
76 <a href="#" class="buttontoolbarview-tab" ui:groupindex="<%= i %>"><%= buttons[i].name %></a>
79 <div class="buttontoolbarview-groups">
80 <% for (var i=0; i < buttons.length; i++) { %>
81 <div class="buttontoolbarview-group" ui:groupIndex="<%= i %>" style="display: none">
82 <% for (var j=0; j < buttons[i].buttons.length; j++) { %>
83 <% if (buttons[i].buttons[j].scriptlet_id) { %>
84 <a href="#" class="buttontoolbarview-button" ui:groupindex="<%= i %>" ui:buttonindex="<%= j %>">
85 <%= buttons[i].buttons[j].label %>
94 {% endblock extrahead %}
96 {% block breadcrumbs %}<a href="{% url file_list %}">Platforma Redakcyjna</a> > {{ fileid }}{% endblock breadcrumbs %}
98 {% block message-box %}
99 <div class="msg-info" id="save-waiting"><p>Zapisuję dane na serwerze.</p><p class="data"></p></div>
100 <div class="msg-success" id="save-successful"><p>Zapisano :)</p><p class="data"></p></div>
101 <div class="msg-warning" id="save-warn"><p>Zapisano. Uwagi: (</p><p class="data"></p></div>
102 <div class="msg-error" id="save-error"><p>Błąd przy zapisie.</p> <p class="data"></p></div>
104 <div class="msg-success" id="generic-yes"><p class="data"></p></div>
105 <div class="msg-info" id="generic-info"><p class="data"></p></div>
106 <div class="msg-error" id="generic-error"><p class="data"></p></div>
108 <div class="msg-warning" id="not-implemented"><p>Tej funkcji jeszcze nie ma :(</p><p class="data"></p></div>
112 {% block header-toolbar %}
113 <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>
116 {% block maincontent %}
118 <div id="left-panel-container" class='panel-container'></div>
119 <div id="right-panel-container" class='panel-container'></div>
123 <div id="commit-dialog" class="jqmWindow" style="display:none">
124 <form action="{% url file_commit fileid %}" method="POST">
125 <label for="message">Commit message:</label>
126 <textarea cols="60" rows="10" name="message" id="commit-dialog-message"></textarea>
127 <p id="commit-dialog-error-empty-message">Wiadomość nie może być pusta.</p>
128 <fieldset id="commit-dialog-related-issues"
129 ui:ajax-src="http://localhost:3000/publications/issues/{{fileid}}">
130 <legend>Related issues</legend>
131 <div class="loading-box" style="display: none;">
132 <p>Loading related issues...</p>
134 <div class="container-box">No related issues.</div>
137 <input type="button" value="Save" id="commit-dialog-save-button" />
138 <input type="reset" value="Cancel" id="commit-dialog-cancel-button" />
143 <div id="split-dialog" class="jqmWindow" style="display:none">
144 <div class="container-box"> </div>
145 <div class="loading-box" style="display: none;">
146 <p>Loading dialog contents...</p>
147 <!-- <p><button type="button" class="dialog-close-button">Close</button></p> -->
149 <div class="fatal-error-box" style="display: none;">
150 <p>Server error, while loading dialog :(</p>
151 <p><button type="button" class="dialog-close-button">Close</button></p>
154 {% endblock maincontent %}