Dołączenie skryptu /api/toolbar/scriptlets do editor.html.
[redakcja.git] / project / templates / explorer / editor.html
1 {% extends "base.html" %}
2
3 {% block extrahead %}
4         <script type="text/javascript" charset="utf-8">
5                 var fileId = '{{ fileid }}';
6         </script>
7     <script src="{{STATIC_URL}}js/lib/codemirror/codemirror.js" type="text/javascript" charset="utf-8"></script>
8         
9         {# Scriptlets #}
10         <script src="http://localhost:8000/api/toolbar/scriptlets" type="text/javascript" charset="utf-8"></script>
11         
12         {# App and views #}
13         <script src="{{STATIC_URL}}js/app.js" type="text/javascript" charset="utf-8"></script>
14         <script src="{{STATIC_URL}}js/views/view.js" type="text/javascript" charset="utf-8"></script>
15         <script src="{{STATIC_URL}}js/views/split.js" type="text/javascript" charset="utf-8"></script>
16         <script src="{{STATIC_URL}}js/views/xml.js" type="text/javascript" charset="utf-8"></script>
17         <script src="{{STATIC_URL}}js/views/html.js" type="text/javascript" charset="utf-8"></script>
18         <script src="{{STATIC_URL}}js/views/panel_container.js" type="text/javascript" charset="utf-8"></script>
19         
20         <script src="{{STATIC_URL}}js/models.js" type="text/javascript" charset="utf-8"></script>
21         
22         {# JavaScript templates #}
23         <script type="text/html" charset="utf-8" id="panel-container-view-template">
24                 <select>
25                         <% for (panel in panels) { %>
26                         <option value="<%= panel %>"><%= panel %></option>
27                         <% }; %>
28                 </select>
29                 <div class="content-view"></div>
30         </script>
31         
32         <script type="text/html" charset="utf-8" id="xml-view-template">
33                 <div class="xmlview">
34                 </div>
35         </script>
36         
37         <script type="text/html" charset="utf-8" id="html-view-template">
38                 <div class="htmlview">
39                 </div>
40         </script>
41 {% endblock extrahead %}
42
43 {% block breadcrumbs %}<a href="{% url file_list %}">Platforma Redakcyjna</a> &gt; {{ fileid }}{% endblock breadcrumbs %}
44
45 {% block message-box %}
46     <div class="msg-info" id="save-waiting"><p>Zapisuję dane na serwerze.</p><p class="data"></p></div>
47     <div class="msg-success" id="save-successful"><p>Zapisano :)</p><p class="data"></p></div>
48     <div class="msg-warning" id="save-warn"><p>Zapisano. Uwagi: (</p><p class="data"></p></div>
49     <div class="msg-error" id="save-error"><p>Błąd przy zapisie.</p> <p class="data"></p></div>
50
51     <div class="msg-success" id="generic-yes"><p class="data"></p></div>
52     <div class="msg-info" id="generic-info"><p class="data"></p></div>
53     <div class="msg-error" id="generic-error"><p class="data"></p></div>
54     
55     <div class="msg-warning" id="not-implemented"><p>Tej funkcji jeszcze nie ma :(</p><p class="data"></p></div>
56     
57 {% endblock %}
58
59 {% block maincontent %}
60         <div id="splitview">
61                 <div id="left-panel-container" class='panel-container'></div>
62             <div id="right-panel-container" class='panel-container'></div>
63     </div>
64
65
66     {# <div id="commit-dialog" class="jqmWindow"> #}
67     {#     <form action="{% url file_commit fileid %}" method="POST"> #}
68     {#         <label for="message">Commit message:</label> #}
69     {#         <textarea cols="60" rows="10" name="message" id="commit-dialog-message"></textarea> #}
70     {#         <p id="commit-dialog-error-empty-message">Wiadomość nie może być pusta.</p>                 #}
71     {#         <fieldset id="commit-dialog-related-issues"  #}
72     {#                   ui:ajax-src="http://localhost:3000/publications/issues/{{fileid}}"> #}
73     {#             <legend>Related issues</legend> #}
74     {#             <div class="loading-box" style="display: none;"> #}
75     {#                 <p>Loading related issues...</p> #}
76     {#             </div> #}
77     {#             <div class="container-box">No related issues.</div> #}
78     {#         </fieldset> #}
79     {#         <p> #}
80     {#            <input type="button" value="Save" id="commit-dialog-save-button" /> #}
81     {#            <input type="reset" value="Cancel" id="commit-dialog-cancel-button" /> #}
82     {#         </p> #}
83     {#     </form> #}
84     {# </div> #}
85     {#  #}
86     {# <div id="split-dialog" class="jqmWindow"> #}
87     {#     <div class="container-box"> </div> #}
88     {#     <div class="loading-box" style="display: none;"> #}
89     {#         <p>Loading dialog contents...</p> #}
90     {#         <!-- <p><button type="button" class="dialog-close-button">Close</button></p> --> #}
91     {#     </div> #}
92     {#     <div class="fatal-error-box" style="display: none;"> #}
93     {#         <p>Server error, while loading dialog :(</p> #}
94     {#         <p><button type="button" class="dialog-close-button">Close</button></p> #}
95     {#     </div> #}
96     {# </div> #}
97 {% endblock maincontent %}