0c3e3a668a7a13b6d10d6db5f9be0494cd30ec46
[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/button_toolbar.js" type="text/javascript" charset="utf-8"></script>
16         <script src="{{STATIC_URL}}js/views/split.js" type="text/javascript" charset="utf-8"></script>
17         <script src="{{STATIC_URL}}js/views/xml.js" type="text/javascript" charset="utf-8"></script>
18         <script src="{{STATIC_URL}}js/views/html.js" type="text/javascript" charset="utf-8"></script>
19         <script src="{{STATIC_URL}}js/views/panel_container.js" type="text/javascript" charset="utf-8"></script>
20         
21         <script src="{{STATIC_URL}}js/models.js" type="text/javascript" charset="utf-8"></script>
22         
23         {# JavaScript templates #}
24         <script type="text/html" charset="utf-8" id="panel-container-view-template">
25                 <select>
26                         <% for (panel in panels) { %>
27                         <option value="<%= panel %>"><%= panel %></option>
28                         <% }; %>
29                 </select>
30                 <div class="content-view"></div>
31         </script>
32         
33         <script type="text/html" charset="utf-8" id="xml-view-template">
34                 <div class="xmlview-toolbar"></div>
35                 <div class="xmlview">
36                         
37                 </div>
38         </script>
39         
40         <script type="text/html" charset="utf-8" id="html-view-template">
41                 <div class="htmlview">
42                 </div>
43         </script>
44         
45         <script type="text/javascript" charset="utf-8" id="button-toolbar-view-template">
46                 <div class="buttontoolbarview">
47                         <div class="buttontoolbarview-tabs">
48                         <% for (var i=0; i < buttons.length; i++) { %>
49                                 <a href="#" class="buttontoolbarview-tab" ui:groupindex="<%= i %>"><%= buttons[i].name %></a>
50                         <% }; %>
51                         </div>
52                         <div class="buttontoolbarview-groups">
53                         <% for (var i=0; i < buttons.length; i++) { %>
54                                 <div class="buttontoolbarview-group" ui:groupIndex="<%= i %>" style="display: none">
55                                         <% for (var j=0; j < buttons[i].buttons.length; j++) { %>
56                                                 <% if (buttons[i].buttons[j].scriptlet_id) { %>
57                                                 <a href="#" class="buttontoolbarview-button" ui:groupindex="<%= i %>" ui:buttonindex="<%= j %>">
58                                                         <%= buttons[i].buttons[j].label %>
59                                                 </a>
60                                                 <% } %>
61                                         <% } %>
62                                 </div>
63                         <% }; %>
64                         </div>
65                 </div>
66         </script>
67 {% endblock extrahead %}
68
69 {% block breadcrumbs %}<a href="{% url file_list %}">Platforma Redakcyjna</a> &gt; {{ fileid }}{% endblock breadcrumbs %}
70
71 {% block message-box %}
72     <div class="msg-info" id="save-waiting"><p>Zapisuję dane na serwerze.</p><p class="data"></p></div>
73     <div class="msg-success" id="save-successful"><p>Zapisano :)</p><p class="data"></p></div>
74     <div class="msg-warning" id="save-warn"><p>Zapisano. Uwagi: (</p><p class="data"></p></div>
75     <div class="msg-error" id="save-error"><p>Błąd przy zapisie.</p> <p class="data"></p></div>
76
77     <div class="msg-success" id="generic-yes"><p class="data"></p></div>
78     <div class="msg-info" id="generic-info"><p class="data"></p></div>
79     <div class="msg-error" id="generic-error"><p class="data"></p></div>
80     
81     <div class="msg-warning" id="not-implemented"><p>Tej funkcji jeszcze nie ma :(</p><p class="data"></p></div>
82     
83 {% endblock %}
84
85 {% block maincontent %}
86         <div id="splitview">
87                 <div id="left-panel-container" class='panel-container'></div>
88             <div id="right-panel-container" class='panel-container'></div>
89     </div>
90
91
92     {# <div id="commit-dialog" class="jqmWindow"> #}
93     {#     <form action="{% url file_commit fileid %}" method="POST"> #}
94     {#         <label for="message">Commit message:</label> #}
95     {#         <textarea cols="60" rows="10" name="message" id="commit-dialog-message"></textarea> #}
96     {#         <p id="commit-dialog-error-empty-message">Wiadomość nie może być pusta.</p>                 #}
97     {#         <fieldset id="commit-dialog-related-issues"  #}
98     {#                   ui:ajax-src="http://localhost:3000/publications/issues/{{fileid}}"> #}
99     {#             <legend>Related issues</legend> #}
100     {#             <div class="loading-box" style="display: none;"> #}
101     {#                 <p>Loading related issues...</p> #}
102     {#             </div> #}
103     {#             <div class="container-box">No related issues.</div> #}
104     {#         </fieldset> #}
105     {#         <p> #}
106     {#            <input type="button" value="Save" id="commit-dialog-save-button" /> #}
107     {#            <input type="reset" value="Cancel" id="commit-dialog-cancel-button" /> #}
108     {#         </p> #}
109     {#     </form> #}
110     {# </div> #}
111     {#  #}
112     {# <div id="split-dialog" class="jqmWindow"> #}
113     {#     <div class="container-box"> </div> #}
114     {#     <div class="loading-box" style="display: none;"> #}
115     {#         <p>Loading dialog contents...</p> #}
116     {#         <!-- <p><button type="button" class="dialog-close-button">Close</button></p> --> #}
117     {#     </div> #}
118     {#     <div class="fatal-error-box" style="display: none;"> #}
119     {#         <p>Server error, while loading dialog :(</p> #}
120     {#         <p><button type="button" class="dialog-close-button">Close</button></p> #}
121     {#     </div> #}
122     {# </div> #}
123 {% endblock maincontent %}