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