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