Poprawienie README.rst. Dodanie sekcji "Wdrożenie".
[redakcja.git] / project / templates / explorer / editor.html
1 {% extends "base.html" %}
2
3 {% block extrahead %}
4         <link rel="stylesheet" href="{{STATIC_URL}}css/jquery.modal.css" type="text/css" media="screen" charset="utf-8">
5         <link rel="stylesheet" href="{{STATIC_URL}}css/html.css" type="text/css" charset="utf-8">
6         <link rel="stylesheet" href="{{STATIC_URL}}css/toolbar.css" type="text/css" charset="utf-8">
7         <link rel="stylesheet" href="{{STATIC_URL}}css/autumn.css" type="text/css" media="screen" title="Autumn colors" charset="utf-8">
8         
9         <script type="text/javascript" charset="utf-8">
10                 var fileId = '{{ fileid }}';
11         </script>
12         
13         {# Libraries #}
14     <script src="{{STATIC_URL}}js/lib/codemirror/codemirror.js" type="text/javascript" charset="utf-8"></script>
15         <script src="{{STATIC_URL}}js/lib/jquery.modal.js" type="text/javascript" charset="utf-8"></script>
16         {# Scriptlets #}
17         <script src="{{STATIC_URL}}js/button_scripts.js" type="text/javascript" charset="utf-8"></script>
18         
19         {# App and views #}
20         <script src="{{STATIC_URL}}js/app.js" type="text/javascript" charset="utf-8"></script>
21         <script src="{{STATIC_URL}}js/messages.js" type="text/javascript" charset="utf-8"></script>
22         <script src="{{STATIC_URL}}js/views/view.js" type="text/javascript" charset="utf-8"></script>
23         <script src="{{STATIC_URL}}js/views/flash.js" type="text/javascript" charset="utf-8"></script>
24         <script src="{{STATIC_URL}}js/views/editor.js" type="text/javascript" charset="utf-8"></script>
25         <script src="{{STATIC_URL}}js/views/button_toolbar.js" type="text/javascript" charset="utf-8"></script>
26         <script src="{{STATIC_URL}}js/views/split.js" type="text/javascript" charset="utf-8"></script>
27         <script src="{{STATIC_URL}}js/views/xml.js" type="text/javascript" charset="utf-8"></script>
28         <script src="{{STATIC_URL}}js/views/html.js" type="text/javascript" charset="utf-8"></script>
29         <script src="{{STATIC_URL}}js/views/gallery.js" type="text/javascript" charset="utf-8"></script>
30         <script src="{{STATIC_URL}}js/views/panel_container.js" type="text/javascript" charset="utf-8"></script>
31         
32         <script src="{{STATIC_URL}}js/models.js" type="text/javascript" charset="utf-8"></script>
33         
34         {# JavaScript templates #}
35         <script type="text/html" charset="utf-8" id="panel-container-view-template">
36                 <div class="panel-main-toolbar">
37                 <p><select>
38                         <option value="empty" selected="selected"> ---- </option>
39                         <% for (panel in panels) { %>
40                         <option value="<%= panel %>"><%= panel %></option>
41                         <% }; %>
42                 </select> <button class="refresh">Odśwież panel</button></p>
43                 </div>
44                 <div class="content-view"></div>
45         </script>
46         
47         <script type="text/html" charset="utf-8" id="xml-view-template">
48                 <div class="xmlview-toolbar"></div>
49                 <div class="xmlview">
50                         
51                 </div>
52         </script>
53         
54         <script type="text/html" charset="utf-8" id="html-view-template">
55                 <div class="htmlview-toolbar">
56                     <a class="html-print-link" href="print" ui:baseref="{% url file_print fileid %}" target="_new">Wersja do druku</a>
57                 </div>
58                 
59                 <div class="htmlview">
60                 </div>
61         </script>
62
63         <script type="text/html" charset="utf-8" id="flash-view-template">
64                 <div class="flashview">
65                 <% if (shownMessage) { %>
66                         <p style="margin: 0; padding: 0.2em 0.5em; line-height: 1.8em; background-color: yellow" class="<%= shownMessage.type %>"><%= shownMessage.text %></p>
67                 <% } %>
68                 </div>
69         </script>
70         
71     <script type="text/html" charset="utf-8" id="image-gallery-view-template">
72         <div class="image-gallery-view-template">
73
74         <div class="image-gallery-header">
75         <p>
76         <button type="button" class="image-gallery-prev-button">
77         <img alt="PPrevious" src="{{STATIC_URL}}/icons/go-previous.png" width="16" height="16" />
78         </button>
79
80         <input type="input" class="image-gallery-current-page"
81             size="5" value="<%= (currentPage + 1) %>" />
82
83
84         <button type="button" class="image-gallery-next-button">
85         <img alt="Next" src="{{STATIC_URL}}/icons/go-next.png" width="16" height="16" />
86         </button>
87
88         <button type="button" class="image-gallery-zoom-in">
89             <img alt="Zoom in" src="{{STATIC_URL}}/icons/zoom_in.png" width="16" height="16" />
90         </button>
91         <button type="button" class="image-gallery-zoom-out">
92             <img alt="Zoom out" src="{{STATIC_URL}}/icons/zoom_out.png" width="16" height="16" />
93         </button>
94         <button type="button" class="image-gallery-zoom-reset">
95             <img alt="Zoom reset" src="{{STATIC_URL}}/icons/zoom.png" width="16" height="16" />
96         </button>
97         </p>
98         </div>
99
100         <div class="image-gallery-page-list">
101             <% for(var i=0; i < model.data.length; i++) { %>
102                 <div class="image-gallery-page-container"
103                     ui:model="<%= model.data[i] %>"
104                     ui:width="480"
105                     ui:height="752"
106                 ></div>
107             <% }; %>
108         </div>
109         
110         </div>
111         </script>
112         
113         <script type="text/html" charset="utf-8" id="button-toolbar-view-template">
114                 <div class="buttontoolbarview panel-toolbar">
115                         <div class="buttontoolbarview-tabs toolbar-tabs-container toolbar-buttons-container">
116                         <% for (var i=0; i < buttons.length; i++) { %>
117                                 <button type="button" class="buttontoolbarview-tab" ui:groupindex="<%= i %>"><%= buttons[i].name %></button>
118                         <% }; %>
119                         </div>
120                         <div class="buttontoolbarview-groups ">
121                         <% for (var i=0; i < buttons.length; i++) { %>
122                                 <div class="buttontoolbarview-group toolbar-buttons-container" ui:groupIndex="<%= i %>" style="display: none">
123                                         <% for (var j=0; j < buttons[i].buttons.length; j++) { %>
124                                                 <% if (buttons[i].buttons[j].scriptlet_id) { %>
125                                                 <button type="button" class="buttontoolbarview-button" ui:groupindex="<%= i %>" ui:buttonindex="<%= j %>">
126                                                         <%= buttons[i].buttons[j].label %>
127                                                 </button>
128                                                 <% } %>
129                                         <% } %>
130                                 </div>
131                         <% }; %>
132                         </div>
133                 </div>
134         </script>
135 {% endblock extrahead %}
136
137 {% block breadcrumbs %}<a href="{% url file_list %}">Platforma Redakcyjna</a> &gt; {{ fileid }}{% endblock breadcrumbs %}
138
139 {% block header-toolbar %}
140         <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>
141 {% endblock %}
142
143 {% block maincontent %}
144     <p style="display: none;" id="api-base-url">{% url document_list_view %}</p>
145     <p style="display: none;" id="api-toolbar-url">{% url toolbar_buttons %}</p>
146
147     <div id="splitview">
148         <div id="left-panel-container" class='panel-container'></div>
149         <div id="right-panel-container" class='panel-container'></div>
150     </div>
151
152     <div id="commit-dialog" class="jqmWindow" style="display:none">
153         <form action="" method="POST">
154             <label for="message">Commit message:</label>
155             <textarea cols="60" rows="10" name="message" id="commit-dialog-message"></textarea>
156             <p id="commit-dialog-error-empty-message">Wiadomość nie może być pusta.</p>                
157             <fieldset id="commit-dialog-related-issues" 
158                       ui:ajax-src="http://localhost:3000/publications/issues/{{fileid}}">
159                 <legend>Related issues</legend>
160                 <div class="loading-box" style="display: none;">
161                     <p>Loading related issues...</p>
162                 </div>
163                 <div class="container-box">No related issues.</div>
164             </fieldset>
165             <p>
166                <input type="button" value="Save" id="commit-dialog-save-button" />
167                <input type="reset" value="Cancel" id="commit-dialog-cancel-button" />
168             </p>
169         </form>
170     </div>
171     
172     <div id="split-dialog" class="jqmWindow" style="display:none">
173         <div class="container-box"> </div>
174         <div class="loading-box" style="display: none;">
175             <p>Loading dialog contents...</p>
176             <!-- <p><button type="button" class="dialog-close-button">Close</button></p> -->
177         </div>
178         <div class="fatal-error-box" style="display: none;">
179             <p>Server error, while loading dialog :(</p>
180             <p><button type="button" class="dialog-close-button">Close</button></p>
181         </div>
182     </div>
183 {% endblock maincontent %}
184
185 {% block extrabody %}
186         <div style="position: absolute; left: 35%; right: 35%; top: 0; height: 20px; z-index: 1000" id="flashview"></div>
187 {% endblock %}